From 967baa035b77f2cb7c635ba9a7b1ec7b46aa82f5 Mon Sep 17 00:00:00 2001 From: Pringlers <98678118+Pringlers@users.noreply.github.com> Date: Sun, 20 Nov 2022 18:55:58 +0900 Subject: [PATCH] smh library --- color/true_color.v | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/color/true_color.v b/color/true_color.v index d86da33..1abfc64 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(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) }