automated snapshot

This commit is contained in:
sumi
2025-12-18 01:01:50 -06:00
parent f982f194dd
commit 6b64903be7
5 changed files with 75 additions and 7 deletions

View File

@@ -21,4 +21,10 @@ func GrayCurve(v, k float32) rl.Color {
return rl.Color{R: c, G: c, B: c, A: 255}
}
func Brightness(c rl.Color) float32 {
r := float32(c.R) / 255
g := float32(c.G) / 255
b := float32(c.B) / 255
return 0.2126*r + 0.7152*g + 0.0722*b
}