mirror of
https://github.com/RGBCube/color.v
synced 2025-08-02 02:47:45 +00:00
Turns out it is implemented (and reformat)
This commit is contained in:
parent
8d0b07ecec
commit
7a2ae90fb3
2 changed files with 5 additions and 14 deletions
|
@ -18,20 +18,11 @@ pub fn (p &PaintBrush) apply(msg string) string {
|
||||||
|
|
||||||
mut result := msg
|
mut result := msg
|
||||||
|
|
||||||
// IS NOT IMPLEMENTED YET !!!
|
if fg := p.fg {
|
||||||
// if fg := p.fg {
|
|
||||||
// result = fg.apply(result)
|
|
||||||
// }
|
|
||||||
// if bg := p.bg {
|
|
||||||
// result = bg.apply(result)
|
|
||||||
// }
|
|
||||||
fg := p.fg or { unsafe { nil } }
|
|
||||||
if !isnil(fg) {
|
|
||||||
result = fg.apply(result)
|
result = fg.apply(result)
|
||||||
}
|
}
|
||||||
bg := p.bg or { unsafe { nil } }
|
if bg := p.bg {
|
||||||
if !isnil(fg) {
|
result = bg.apply(result)
|
||||||
result = bg.apply_bg(result)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for style in p.styles {
|
for style in p.styles {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue