mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-26 18:22:09 +02:00
Code to convert image at path into cached RGBA data
This commit is contained in:
@@ -310,3 +310,10 @@ func FunctionName(a any) string {
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
func Abs[T constraints.Integer](x T) T {
|
||||
if x < 0 {
|
||||
return -x
|
||||
}
|
||||
return x
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user