mars-0.2.0.0: Generates mountainous terrain using a random walk algorithm.

Maintainerch.howard@zoho.com
Safe HaskellNone

Graphics.Mars.Paint

Description

 

Synopsis

Documentation

type Interpretation = Float -> ByteStringSource

A type of function converting a floating point data value into a color's ByteString

minMax :: (Num a, Ord a, Foldable t) => t a -> (a, a)Source

Determines the minimum and maximum values in a data structure

lightnessIntSource

Arguments

:: Float

Hue in degrees, between 0 and 360

-> (Float, Float)

the lowest and highest data values, needed for the lightness calculation

-> Interpretation 

Color interpretation of data as a variation of on the lightness of a single hue

toImage :: UArray (Int, Int) Float -> Interpretation -> PictureSource

Converts an array of floating point values into a Gloss Picture, using a color Interpretation