class Opal::Shader::CrtPass

Overview

Built-in retro CRT scanlines and phosphor glow shader pass

Defined in:

opal/shader/presets.cr

Constructors

Instance Method Summary

Instance methods inherited from class Opal::Shader::Pass

apply(source : UI::Buffer, target : UI::Buffer, time : Float64, frame : UInt64) : Nil apply, enabled=(enabled : Bool) enabled=, enabled? : Bool enabled?, region : Rect | Nil region, region=(region : Rect | Nil) region=

Constructor methods inherited from class Opal::Shader::Pass

new(region : Rect | Nil = nil) new

Constructor Detail

def self.new(region : Rect | Nil = nil, intensity : Float64 = 0.35, scanline_gap : Int32 = 2, phosphor_tint : Color | Symbol | String = Color.none, flicker : Bool = true) #

[View source]

Instance Method Detail

def apply(source : UI::Buffer, target : UI::Buffer, time : Float64, frame : UInt64) : Nil #

[View source]
def flicker=(flicker : Bool) #

[View source]
def flicker? : Bool #

[View source]
def intensity : Float64 #

[View source]
def intensity=(intensity : Float64) #

[View source]
def phosphor_tint : Color #

[View source]
def phosphor_tint=(phosphor_tint : Color) #

[View source]
def scanline_gap : Int32 #

[View source]
def scanline_gap=(scanline_gap : Int32) #

[View source]