Files
realworld/inc/theme/theme.manager.go
T
mr.zero c5c0c02c03
ci/woodpecker/push/ebitengine Pipeline was successful
dirs
2026-08-30 23:21:06 +02:00

30 lines
437 B
Go

package theme
import (
"image/color"
inkwell "git.teletypegames.org/engines/inkwell"
)
type Theme = inkwell.Theme
var Manager = inkwell.NewManager[Theme]()
func RGB(hex uint32) color.Color {
return color.RGBA{
R: uint8(hex >> 16),
G: uint8(hex >> 8),
B: uint8(hex),
A: 0xff,
}
}
func RGBA(hex uint32, a uint8) color.Color {
return color.RGBA{
R: uint8(hex >> 16),
G: uint8(hex >> 8),
B: uint8(hex),
A: a,
}
}