diff --git a/color/true_color.v b/color/true_color.v index 1abfc64..d86da33 100644 --- a/color/true_color.v +++ b/color/true_color.v @@ -21,9 +21,9 @@ struct TrueColor { } fn (c TrueColor) render(msg string) string { - return term.rgb(int(c.r), int(c.g), int(c.b), msg) + return term.rgb(c.r, c.g, c.b, msg) } fn (c TrueColor) render_bg(msg string) string { - return term.bg_rgb(int(c.r), int(c.g), int(c.b), msg) + return term.bg_rgb(c.r, c.g, c.b, msg) }