class Opal::Shader::AudioVisualizerPass

Overview

Procedural multi-band equalizer / audio spectrum visualizer Features dynamic frequency bands, responsive VU meter gradients, and peak hold markers.

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, speed : Float64 = 1.0, bar_count : Int32 = 16, low_color : Color | Symbol | String = :green, mid_color : Color | Symbol | String = :yellow, high_color : Color | Symbol | String = :bright_red, peak_color : Color | Symbol | String = :bright_white) #

[View source]

Instance Method Detail

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

[View source]
def bar_count : Int32 #

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

[View source]
def high_color : Color #

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

[View source]
def low_color : Color #

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

[View source]
def mid_color : Color #

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

[View source]
def peak_color : Color #

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

[View source]
def speed : Float64 #

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

[View source]