colorf

package
v0.0.0-...-0f6939a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CairoSetSourceColor

func CairoSetSourceColor(dc *cairo.Canvas, cr color.Color)

func MakeColorf

func MakeColorf(r, g, b, a float64) color.Color

func MustParseColor

func MustParseColor(s string) color.Color

func ParseColor

func ParseColor(s string) (color.Color, error)

Types

type Colorf

type Colorf struct {
	R, G, B, A float64
}

func (Colorf) RGBA

func (c Colorf) RGBA() (r, g, b, a uint32)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳