class

PointClickEngine::Graphics::Effects::ObjectEffects::GlowEffect

Inherits PointClickEngine::Graphics::Effects::Effect < Reference < Object

Glow effect that can be applied to sprites or textures directly

Constructors

new(color : RL::Color = RL::Color.new(r: 255, g: 255, b: 200, a: 255), radius : Float32 = 10.0_f32, duration : Float32 = 0.0_f32)
Source

Instance methods

apply(context : EffectContext)

Apply effect to target (implemented by subclasses)

Source
color
Source
color=(color : RL::Color)
Source
draw_glow_for_sprite(sprite : Sprites::Sprite)

Draw glow for a sprite

Source
draw_glow_for_texture(texture : Raylib::Texture2D, position : Raylib::Vector2, scale : Float32 = 1.0_f32, alpha : Float32 = 1.0_f32)

Draw glow directly for a texture at a position (for action sequences)

Source
layers
Source
layers=(layers : Int32)
Source
pulse
Source
pulse=(pulse : Bool)
Source
pulse_speed
Source
pulse_speed=(pulse_speed : Float32)
Source
radius
Source
radius=(radius : Float32)
Source
update(dt : Float32)

Update effect state

Source