class Opal::Shader::FractalLandscapePass

Overview

Procedural multi-layer parallax mountain/ridge landscape with starry sky

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, sky_color : Color | Symbol | String = :dark_gray, mountain_color : Color | Symbol | String = :blue, ridge_color : Color | Symbol | String = :magenta, foreground_color : Color | Symbol | String = :bright_cyan) #

[View source]

Instance Method Detail

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

[View source]
def foreground_color : Color #

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

[View source]
def mountain_color : Color #

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

[View source]
def ridge_color : Color #

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

[View source]
def sky_color : Color #

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

[View source]
def speed : Float64 #

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

[View source]