struct PF::Noise

Overview

EXPERIMENTAL Undergoing development

Defined in:

noise.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(seed : UInt32 = ::rand(UInt32)) #

[View source]

Class Method Detail

def self.cosine_interpolate(point1 : Float64, point2 : Float64, position : Float64) #

Cosine interpolation


[View source]
def self.linear_interpolate(point1 : Float64, point2 : Float64, position : Float64) #

Linear interpolation


[View source]

Instance Method Detail

def get(x : Float64) #

Returns 1d noise


[View source]