squares

package
Version: v0.0.0-...-b49c570 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Grid

func Grid(m *image.RGBA, color1, color2 color.RGBA)

Grid builds an image with 6X6 quadrants of alternate colors.

func GridSVG

func GridSVG(w io.Writer, color1, color2 color.RGBA, size int)

GridSVG builds an image with 6 by 6 quadrants of alternate colors.

func Image

func Image(m *image.RGBA, key string, colors []color.RGBA)

Image builds an image.RGBA type with 6 by 6 quadrants of alternate colors.

func Palette

func Palette(m *image.RGBA, theme []color.RGBA)

Palette builds an JPEG image with all the colors present in the theme color array.

func PaletteSVG

func PaletteSVG(w io.Writer, theme []color.RGBA, width, height int)

PaletteSVG builds an SVG image with all the colors present in the theme color array.

func RandomGradientColorSVG

func RandomGradientColorSVG(w io.Writer, colors, gColors []color.RGBA, gv colors.GradientVector, width, height, xsquares int, prob float64)

RandomGradientColorSVG builds a square image with with x colors selected at random for each quadrant. the background color stays the same the other colors get mixed in a gradient color from the first one to the last one.

func RandomGradientGrid

func RandomGradientGrid(m *image.RGBA, colors []color.RGBA, xSquares int)

RandomGradientGrid builds a grid image with with x colors selected at random for each quadrant going from brighter to dracker color.

func RandomGradientGridSVG

func RandomGradientGridSVG(w io.Writer, colors []color.RGBA, width, height, xSquares int)

RandomGradientGridSVG builds a grid image with with x colors selected at random for each quadrant.

func RandomGrid

func RandomGrid(m *image.RGBA, colors []color.RGBA, xSquares int, prob float64)

RandomGrid builds a grid image with with x colors selected at random for each quadrant.

func RandomGridSVG

func RandomGridSVG(w io.Writer, colors []color.RGBA, width, height, xSquares int, prob float64)

RandomGridSVG builds a grid image with with x colors selected at random for each quadrant.

func SVG

func SVG(w io.Writer, key string, colors []color.RGBA, size int)

SVG builds an svg image with 6 by 6 quadrants of alternate colors.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL