1
Fork 0
mirror of https://github.com/RGBCube/color.v synced 2025-07-31 09:57:47 +00:00

Fix method call

This commit is contained in:
RGBCube 2022-11-18 20:38:48 +03:00
parent 52b16209c7
commit 06d6948a2d

View file

@ -1,7 +1,5 @@
module color
import term
pub struct PaintBrush {
pub:
fg ?Color
@ -24,7 +22,7 @@ pub fn (p &PaintBrush) render(msg string) string {
}
for style in p.styles {
result = style.color(result)
result = style.render(result)
}
return result