| Maintainer | ch.howard@zoho.com |
|---|---|
| Safe Haskell | None |
Graphics.Autom.Paint
Description
This module is meant to convert grids from
NextNearest into images that can be displayed or
saved to file.
Documentation
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.
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
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