VideoSettings

Qualified name: algan.settings.video\_settings.VideoSettings

class VideoSettings(resolution, frames_per_second=30, supersampling=2, fxaa=False, audio_sample_rate=44100)[source]

Bases: Settings

Video output settings used by algan.scene.Scene.save_video().

frames_per_second may also be written fps or FPS, and supersampling – how many samples per axis the frame is rendered at before being filtered back down to resolution – may also be written ssaa or SSAA. The short spellings are accepted for reading, for assignment, as constructor keywords and by set(); the declared names are what to_dict() and the settings snapshot answer with.

Methods

set_FPS

Set 'frames_per_second' (spelled 'FPS'), or return a modified preset copy.

set_SSAA

Set 'supersampling' (spelled 'SSAA'), or return a modified preset copy.

set_audio_sample_rate

Set 'audio_sample_rate', or return a modified preset copy.

set_fps

Set 'frames_per_second' (spelled 'fps'), or return a modified preset copy.

set_frames_per_second

Set 'frames_per_second', or return a modified preset copy.

set_fxaa

Set 'fxaa', or return a modified preset copy.

set_resolution

Set 'resolution', or return a modified preset copy.

set_ssaa

Set 'supersampling' (spelled 'ssaa'), or return a modified preset copy.

set_supersampling

Set 'supersampling', or return a modified preset copy.

Attributes

audio_sample_rate

frames_per_second

fxaa

is_preset

supersampling

resolution

Parameters:
  • resolution (tuple[int, int])

  • frames_per_second (int)

  • supersampling (int)

  • fxaa (bool)

  • audio_sample_rate (int)

set_FPS(value)

Set ‘frames_per_second’ (spelled ‘FPS’), or return a modified preset copy.

set_SSAA(value)

Set ‘supersampling’ (spelled ‘SSAA’), or return a modified preset copy.

set_audio_sample_rate(value)

Set ‘audio_sample_rate’, or return a modified preset copy.

set_fps(value)

Set ‘frames_per_second’ (spelled ‘fps’), or return a modified preset copy.

set_frames_per_second(value)

Set ‘frames_per_second’, or return a modified preset copy.

set_fxaa(value)

Set ‘fxaa’, or return a modified preset copy.

set_resolution(value)

Set ‘resolution’, or return a modified preset copy.

set_ssaa(value)

Set ‘supersampling’ (spelled ‘ssaa’), or return a modified preset copy.

set_supersampling(value)

Set ‘supersampling’, or return a modified preset copy.