automated snapshot

This commit is contained in:
sumi
2025-12-26 13:16:33 -06:00
parent 908e25f900
commit 6ab7c8d7e1
3 changed files with 15 additions and 3 deletions

View File

@@ -19,6 +19,15 @@ var (
FlourescentColors = makeFlourescentColors()
)
func Clamp(c rl.Color, min uint8, max uint8) rl.Color {
return rl.NewColor(
uint8(rl.Clamp(float32(c.R), float32(min), float32(max))),
uint8(rl.Clamp(float32(c.G), float32(min), float32(max))),
uint8(rl.Clamp(float32(c.B), float32(min), float32(max))),
uint8(rl.Clamp(float32(c.A), float32(min), float32(max))),
)
}
func makeFlourescentColors() []rl.Color {
fc := make([]rl.Color, len(FlourescentHues))
for i, hue := range(FlourescentHues) {