color

package
v0.0.0-...-50d5a6e Latest Latest
Warning

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

Go to latest
Published: Jun 3, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Color

type Color struct {
	glm.Vec4
	// contains filtered or unexported fields
}
var BLACK Color = NewColorRGBf(0.0, 0.0, 0.0)
var DRACULA Color = NewColorRGBi(45, 52, 54)
var ELECTRON_BLUE Color = NewColorRGBi(9, 132, 227)
var MINT_GREEN Color = NewColorRGBi(0, 184, 148)
var PINK_GLAMOUR Color = NewColorRGBi(255, 118, 117)
var WHITE Color = NewColorRGBf(1.0, 1.0, 1.0)

func DarkenColor

func DarkenColor(color Color, amount float32) Color

func NewColorRGBAf

func NewColorRGBAf(red, green, blue, alpha float32) Color

func NewColorRGBAi

func NewColorRGBAi(red, green, blue int, alpha float32) Color

func NewColorRGBf

func NewColorRGBf(red, green, blue float32) Color

func NewColorRGBi

func NewColorRGBi(red, green, blue int) Color

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL