class Tile::Rasterizer::Distortion

Defined in:

tile/rasterizer/distortion.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(values : Values) #

[View source]

Instance Method Detail

def configure(&) #

[View source]
def distort(line) #

Distort an incoming vector at a given line


[View source]
def distortion_points : Array(Int32 | -> Int32) #

Distortions are a paired table of indexes to procs


[View source]
def frame #

Get the number of elapsed frames


[View source]
def line #

Get the number of lines already drawn


[View source]
def procs : Array(SF::Vector2(Int32) -> SF::Vector2(Float64) | SF::Vector2(Int32)) #

[View source]