module Noise::Fast2D

Overview

Noise generator faster than Noise but specialized into filling 2D UInt8 bitmaps.

Extended Modules

Defined in:

fast.cr

Instance Method Summary

Instance Method Detail

def concurrent(width : UInt32, height : UInt32, resolution : UInt32, data : Bytes, x_offset : Int32 = 0, y_offset : Int32 = 0, workers : UInt8 = 0) #

[View source]
def gradients(x : Int32, y : Int32) : Indexable(Float64) #

[View source]
def interpolate(a0 : Float64, a1 : Float64, w : Float64) #

[View source]
def noise(width : UInt32, height : UInt32, resolution : UInt32, data : Bytes, x_offset : Int32 = 0, y_offset : Int32 = 0) #

[View source]