PointClickEngine::Graphics::Effects::SceneEffects::LetterboxEffect
Inherits PointClickEngine::Graphics::Effects::SceneEffects::BaseSceneEffect < PointClickEngine::Graphics::Effects::Effect < Reference < Object
Letterbox effect for cinematic black bars
Constructors
new(ratio : Float32 = 2.35_f32, duration : Float32 = 0.0_f32, animate_in : Bool = true)
SourceInstance methods
animate_in
Sourceanimate_in=(animate_in : Bool)
Sourceapply_to_layer(context : EffectContext, layer : Layers::Layer)
Apply effect to a specific layer
bar_color
Sourcebar_color=(bar_color : RL::Color)
Sourcedraw_overlay(renderer : PointClickEngine::Graphics::Renderer, viewport_width : Int32, viewport_height : Int32)
Draw the letterbox bars
enabled?
Sourceratio
Sourceratio=(ratio : Float32)
Source