Versions in this module Expand all Collapse all v1 v1.3.0 Jan 11, 2024 v1.2.0 Jan 11, 2024 Changes in this version + var BlackColor = ParseHexColor("#000") + var WhiteColor = ParseHexColor("#FFF") + func Color2RGBA(c color.Color) color.RGBA + func CreateGradient(option Gradient, additionalRotation float64, x, y, size float64) canvas.Gradient + func ParseHexColor(s string) (c color.RGBA, err error) + type Color struct + Color color.Color + ColorType ColorType + Gradient Gradient + type ColorStop struct + Color color.Color + Offset float64 + type ColorType int + const GradientColor + const SingleColor + func (c ColorType) String() string + type Gradient struct + ColorStops []ColorStop + Rotation float64 + Type GradientType + type GradientType int + const Conic + const Linear + const Radial + const Repeating + func (e GradientType) String() string