fix bug where RGBColor could not be marshalled
This commit is contained in:
parent
bdcb20acb2
commit
fce5ff9667
4
color.go
4
color.go
@ -189,6 +189,10 @@ func (c HSBKColor) MarshalText() ([]byte, error) {
|
|||||||
return []byte(c.ColorString()), nil
|
return []byte(c.ColorString()), nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
func (c RGBColor) MarshalText() ([]byte, error) {
|
||||||
|
return []byte(c.ColorString()), nil
|
||||||
|
}
|
||||||
|
|
||||||
func (c NamedColor) ColorString() string {
|
func (c NamedColor) ColorString() string {
|
||||||
return string(c)
|
return string(c)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user