Documentation ¶
Overview ¶
Package ucolor extends image/color.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func Premultiply ¶ added in v0.3.0
Premultiply applies alpha-premultiplication that colors must apply as per color.Color.RGBA. This is an intrinsically lossy proccess.
func Transparent ¶
Transparent returns whether or not a color has transparency.
func Unpremultiply ¶ added in v0.3.0
Unpremultiply reverses alpha-premultiplication that colors must apply as per color.Color.RGBA. This may or may not return the precise original color.
Types ¶
type HSV ¶ added in v0.3.0
HSV represents a color with hue, saturation, and value components. Each component C is in range 0 <= C <= 1.
type HSVA ¶ added in v0.3.0
HSVA is an HSV color with an added 8-bit alpha component. The alpha component ranges from 0x0000 (fully transparent) to 0xFFFF (opaque), and has no bearing on the other components.
Click to show internal directories.
Click to hide internal directories.