Documentation ¶
Index ¶
- func Diagonals(w io.Writer, key string, color1, color2 color.RGBA, size int)
- func HalfDiagonals(w io.Writer, key string, color1, color2 color.RGBA, size int)
- func Hexa(w io.Writer, key string, colors []color.RGBA, size, lines int)
- func Hexa16(w io.Writer, key string, colors []color.RGBA, size, lines int)
- func Isogrids(w io.Writer, key string, colors []color.RGBA, size, lines int)
- func Random(w io.Writer, colors []color.RGBA, width, height, lines int, prob float64)
- func RandomGradient(w io.Writer, colors []color.RGBA, width, height, lines int)
- func RandomGradientColor(w io.Writer, colors, gColors []color.RGBA, gv colors.GradientVector, ...)
- func RandomMirror(w io.Writer, colors []color.RGBA, size int, prob float64)
- func Skeleton(w io.Writer, key string, color1, color2 color.RGBA, size int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HalfDiagonals ¶
HalfDiagonals builds an image with 10x10 grids of half diagonals
func Hexa ¶
Hexa builds an image with lines x lines grids of half diagonals in the form of an hexagon
func Hexa16 ¶
Hexa16 builds an image with lines x lines grids of half diagonals in the form of an hexagon it draws 6 triangles, triangle 1 to 5 are all rotations of triangle 0. triangle zero triangle on the center left.
func Random ¶
Random builds an image with 10x10 grids of half diagonals with random background. The image is symetric in the middle vertical axis.
func RandomGradient ¶
RandomGradient creates an isogrids svg image with half diagonals. colors are filled at random in the image with a frequency that decreases from left to right.
func RandomGradientColor ¶
func RandomGradientColor(w io.Writer, colors, gColors []color.RGBA, gv colors.GradientVector, width, height, lines int, prob float64)
RandomGradientColor builds a isogrid 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 RandomMirror ¶
RandomMirror builds an image with 10x10 grids of half diagonals
Types ¶
This section is empty.