isogrids

package
v0.0.0-...-da552d6 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diagonals

func Diagonals(w io.Writer, key string, color1, color2 color.RGBA, size int)

Diagonals builds an image with 10x10 grids of diagonals.

func HalfDiagonals

func HalfDiagonals(w io.Writer, key string, color1, color2 color.RGBA, size int)

HalfDiagonals builds an image with 10x10 grids of half diagonals

func Hexa

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

Hexa builds an image with lines x lines grids of half diagonals in the form of an hexagon

func Hexa16

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

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 Isogrids

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

Isogrids builds an image with 10x10 grids of half diagonals

func Random

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

Random builds an image with 10x10 grids of half diagonals with random background. The image is symetric in the middle vertical axis.

func RandomGradient

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

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

func RandomMirror(w io.Writer, colors []color.RGBA, size int, prob float64)

RandomMirror builds an image with 10x10 grids of half diagonals

func Skeleton

func Skeleton(w io.Writer, key string, color1, color2 color.RGBA, size int)

Skeleton builds an image with 10x10 grids of half diagonals

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL