Opal::Shader::ShaderContext
Execution context provided to a text fragment shader for each evaluated cell.
Constructors
Instance methods
bg=(color : Color)
Sourcebold!
Sourcecell
Sourcecell=(cell : UI::Cell)
Sourcedim!
Sourcedim?
Sourcediscarded?
SourceDistance from specific normalized coordinates (cx, cy)
fg=(color : Color)
Sourceframe
Sourceheight
Sourceinvert!
Sourceitalic?
SourceInterpolates active background color toward target color
Interpolates active foreground color toward target color
local_u
Sourcelocal_v
Sourcelocal_x
Sourcelocal_y
Sourceregion_height
Sourceregion_width
Sourcereset(x : Int32, y : Int32, local_x : Int32, local_y : Int32, width : Int32, height : Int32, region_width : Int32, region_height : Int32, time : Float64, frame : UInt64, source_buffer : UI::Buffer, cell : UI::Cell) : Nil
Mutates context in-place to avoid per-cell heap allocations during fragment shader passes
reverse?
SourceSamples only the character from the input source buffer
Samples only the foreground color from the input source buffer
source_buffer
Sourcesource_buffer=(source_buffer : UI::Buffer)
Sourcetime
Sourceunderline?
SourceProcedural trigonometric wave functions (accelerated via FastMath LUT)
width
Source