automated snapshot
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user