init
This commit is contained in:
14
common/colors/hex.go
Normal file
14
common/colors/hex.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package colors
|
||||
|
||||
import (
|
||||
"image/color"
|
||||
)
|
||||
|
||||
func FromInt(in int32) color.Color {
|
||||
return color.RGBA{
|
||||
uint8(in >> 16),
|
||||
uint8(in >> 8),
|
||||
uint8(in),
|
||||
0xff,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user