Index | Files

package f32color

import ""


Package Files


type RGBA Uses

type RGBA struct {
    R, G, B, A float32

RGBA is a 32 bit floating point linear space color.

func RGBAFromSRGB Uses

func RGBAFromSRGB(col color.RGBA) RGBA

RGBAFromSRGB converts from SRGBA to RGBA.

func (RGBA) Array Uses

func (rgba RGBA) Array() [4]float32

Array returns rgba values in a [4]float32 array.

func (RGBA) Float32 Uses

func (col RGBA) Float32() (r, g, b, a float32)

Float32 returns r, g, b, a values.

func (RGBA) Opaque Uses

func (col RGBA) Opaque() RGBA

Opaque returns the color without alpha component.

func (RGBA) SRGB Uses

func (col RGBA) SRGB() color.RGBA

SRGBA converts from linear to sRGB color space.

Package f32color imports 2 packages (graph) and is imported by 4 packages. Updated 2020-07-27. Refresh now. Tools for package owners.