RenderSettings

Qualified name: algan.settings.render\_settings.RenderSettings

class RenderSettings(resolution, frames_per_second=30, anti_alias_level=2, audio_frames_per_second=44100, save_image=False)[source]

Bases: object

Contains all of the settings for a rendering operation, as used in render_to_file() .

Parameters:
  • resolution (Tuple[int, int]) – Pair of (width, height), giving the number of pixels in the video frame.

  • frames_per_second (int) – Frames per second in the video.

  • anti_alias_level (int) – To perform anti-aliasing video is rendered at a resolution equal to the resolution times anti_alias_level, then average pooled back down to the original image. This results in smoother edge transitions, at a cost of anti_alias_level^2 factor increase in computation.

  • audio_frames_per_second (int)

  • save_image (bool)

Examples

Render with custom settings, (1000, 1000) resolution at 100 frames_per_second, and anti alias level 1 (no anti alias).

render_to_file(render_settings=RenderSettings((1000, 1000), 100, 1))

Methods

Attributes

anti_alias_level

audio_frames_per_second

frames_per_second

save_image

resolution