/uc

Zero Dependency Go Color Module For Graphics Programming

Primary LanguageGoMIT LicenseMIT

Useful Colors Go Reference

This module provides a useful purego color representation for graphics programming with zero dependencies, the design and implementation follows Godot's Color Class.

package main

import (
    "fmt"

    "grow.graphics/uc"
)

func main() {
    fmt.Println(uc.RGB(1, 0, 0))
    fmt.Println(uc.X11.Violet)
    fmt.Println(uc.Hex(0xff0000))
    fmt.Println(uc.HTML("#ff0000"))
}