Versions in this module Expand all Collapse all v0 v0.0.2 Dec 10, 2024 v0.0.1 Dec 10, 2024 Changes in this version + var Black = SimpleColor + var Blue = SimpleColor + var DarkGray = SimpleColor + var ErrInvalidColor = errors.New("pdfcpu: invalid color constant") + var Gray = SimpleColor + var Green = SimpleColor + var LightGray = SimpleColor + var Red = SimpleColor + var White = SimpleColor + var Yellow = SimpleColor + type SimpleColor struct + B float32 + G float32 + R float32 + func NewSimpleColor(rgb uint32) SimpleColor + func NewSimpleColorForArray(arr types.Array) SimpleColor + func NewSimpleColorForHexCode(hexCol string) (SimpleColor, error) + func ParseColor(s string) (SimpleColor, error) + func (sc SimpleColor) Array() types.Array + func (sc SimpleColor) String() string