package
Version:
v1.9.20
Opens a new window with list of versions in this module.
Published: Mar 12, 2021
License: Unlicense
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 2
Opens a new window with list of known importers.
Documentation
¶
MulAlpha scales all color components by alpha/255.
type RGBA struct {
R, G, B, A float32
}
RGBA is a 32 bit floating point linear space color.
RGBAFromSRGB converts from SRGBA to RGBA.
Array returns rgba values in a [4]float32 array.
Float32 returns r, g, b, a values.
Opaque returns the color without alpha component.
SRGB converts from linear to sRGB color space.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.