autom-0.1.0.3: Generates and displays patterns from next nearest neighbors cellular automata

Maintainerch.howard@zoho.com
Safe HaskellNone

Graphics.Autom.Paint

Description

This module is meant to convert grids from NextNearest into images that can be displayed or saved to file.

Synopsis

Documentation

toPictureColoredSource

Arguments

:: VU.Vector (Bool, Int)

overlaid grid

-> Int

row width

-> Float

starting hue in degrees for bit value 0

-> Float

hue step rate in degrees (cycles if necessary)

-> Picture 

Meant to be used with an overlaidGrid, it converts an overlaid grid into a colored Picture, in which a there is a different color for each of the 32-bit values assigned to the grid points. However, points that are black (i.e., False) remain black.

toPictureSource

Arguments

:: VU.Vector Bool

one bit of data per pixel (i.e., white or black)

-> Int

width of a row

-> Picture 

Converts a grid into a black and white Gloss Picture, usually to be displayed on screen

toDynImageSource

Arguments

:: VU.Vector Bool

one bit of data per pixel (i.e., white or black)

-> Int

width of a row

-> DynamicImage 

Converts a grid into a black and white JuicyPixels image, usually to be saved to a file

toPNG :: FilePath -> DynamicImage -> IO ()Source

An alias for savePngImage, which saves a JuicePixel image to a file