colors

package
Version: 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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArrayToHexString

func ArrayToHexString(colors []color.RGBA) (s string)

func Black

func Black() color.RGBA

Black RGBA color.

func MapOfColorThemes

func MapOfColorThemes() map[string][]color.RGBA

MapOfColorThemes is used to build random images with colors that go together.

func ToHexString

func ToHexString(c color.RGBA) string

func White

func White() color.RGBA

White RGBA color.

Types

type GradientVector

type GradientVector struct {
	X1 uint8 // horizontal axis of first point
	Y1 uint8 // vertical axis of first point
	X2 uint8 // horizontal axis of second point
	Y2 uint8 // vertical axis of second point
}

GradientVector defines the direction and size of the vector to use in order to get a gradient color

Source Files

Jump to

Keyboard shortcuts

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