Documentation ¶
Index ¶
- Variables
- func ColourString(c color.Color) string
- func Equals(a, b color.Color) bool
- func Gradient(n int, from, to color.Color) []color.Color
- func GreyScale(i int) color.Color
- func MaxRGB(r, g, b uint32) uint32
- func MinRGB(r, g, b uint32) uint32
- func ParseColour(hex string) (c color.RGBA, err error)
- func RGBA(r, g, b uint32) color.RGBA
- type SizedColor
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidFormat = errors.New("invalid hex color format")
Functions ¶
func ColourString ¶
Types ¶
type SizedColor ¶
SizedColor is a size & colour but represented as a single xml attribute
func ParseSizedColor ¶
func ParseSizedColor(s string) (SizedColor, error)
func (SizedColor) String ¶
func (s SizedColor) String() string
Click to show internal directories.
Click to hide internal directories.