how I forgot that
This commit is contained in:
parent
eb65c2c609
commit
a4a719cff6
6
bf.go
6
bf.go
|
@ -177,11 +177,11 @@ func convertHex(hex string) rl.Color {
|
|||
hex2 := hex[2:4]
|
||||
hex3 := hex[4:6]
|
||||
decimal, err := strconv.ParseInt(hex1, 16, 64)
|
||||
checklog(err)
|
||||
checkLog(err)
|
||||
decimal2, err := strconv.ParseInt(hex2, 16, 64)
|
||||
checklog(err)
|
||||
checkLog(err)
|
||||
decimal3, err := strconv.ParseInt(hex3, 16, 64)
|
||||
checklog(err)
|
||||
checkLog(err)
|
||||
|
||||
return rl.NewColor(uint8(decimal), uint8(decimal2), uint8(decimal3), 255)
|
||||
}
|
||||
|
|
|
@ -8,7 +8,7 @@ func check(Error error) {
|
|||
}
|
||||
}
|
||||
|
||||
func checklog(Error error) {
|
||||
func checkLog(Error error) {
|
||||
if Error != nil {
|
||||
fmt.Println("error:", Error)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue