mirror of
https://github.com/RGBCube/color.v
synced 2025-08-01 18:37:45 +00:00
smh library
This commit is contained in:
parent
863f79a186
commit
967baa035b
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue