Documentation ¶
Index ¶
- func Grid(m *image.RGBA, color1, color2 color.RGBA)
- func GridSVG(w io.Writer, color1, color2 color.RGBA, size int)
- func Image(m *image.RGBA, key string, colors []color.RGBA)
- func Palette(m *image.RGBA, theme []color.RGBA)
- func PaletteSVG(w io.Writer, theme []color.RGBA, width, height int)
- func RandomGradientColorSVG(w io.Writer, colors, gColors []color.RGBA, gv colors.GradientVector, ...)
- func RandomGradientGrid(m *image.RGBA, colors []color.RGBA, xSquares int)
- func RandomGradientGridSVG(w io.Writer, colors []color.RGBA, width, height, xSquares int)
- func RandomGrid(m *image.RGBA, colors []color.RGBA, xSquares int, prob float64)
- func RandomGridSVG(w io.Writer, colors []color.RGBA, width, height, xSquares int, prob float64)
- func SVG(w io.Writer, key string, colors []color.RGBA, size int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func PaletteSVG ¶
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 ¶
RandomGradientGrid builds a grid image with with x colors selected at random for each quadrant going from brighter to dracker color.
func RandomGradientGridSVG ¶
RandomGradientGridSVG builds a grid image with with x colors selected at random for each quadrant.
func RandomGrid ¶
RandomGrid builds a grid image with with x colors selected at random for each quadrant.
func RandomGridSVG ¶
RandomGridSVG builds a grid image with with x colors selected at random for each quadrant.
Types ¶
This section is empty.