Documentation ¶
Overview ¶
Package colour is used for generating colours for the patterns.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ReMap ¶
ReMap is a Go implementation of Processing's map function, which maps a number from one range to another. Parameters:
- value: value to be converted.
- vMin/vMax: lower/upper bound of the value's current range.
- dMin/dMax: lower/upper bound of the value's target range.
Reference: http://processing.org/reference/map_.html
Types ¶
type Colour ¶
type Colour struct {
// contains filtered or unexported fields
}
Colour represents a background colour for the generated pattern.
func NewWithSeed ¶
New returns a Colour instance. It takes a HTML colour as a hex string: `#ff00ff`, and string to be used as a seed for generating a different colour palette.
Click to show internal directories.
Click to hide internal directories.