1
Fork 0
mirror of https://github.com/RGBCube/color.v synced 2025-08-01 10:27:45 +00:00

smh library

This commit is contained in:
Pringlers 2022-11-20 18:55:58 +09:00 committed by GitHub
parent 863f79a186
commit 967baa035b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -21,9 +21,9 @@ struct TrueColor {
}
fn (c TrueColor) render(msg string) string {
return term.rgb(c.r, c.g, c.b, msg)
return term.rgb(int(c.r), int(c.g), int(c.b), msg)
}
fn (c TrueColor) render_bg(msg string) string {
return term.bg_rgb(c.r, c.g, c.b, msg)
return term.bg_rgb(int(c.r), int(c.g), int(c.b), msg)
}