fix bug where RGBColor could not be marshalled

This commit is contained in:
2020-03-28 18:04:11 -05:00
parent bdcb20acb2
commit fce5ff9667

View File

@ -189,6 +189,10 @@ func (c HSBKColor) MarshalText() ([]byte, error) {
return []byte(c.ColorString()), nil
}
func (c RGBColor) MarshalText() ([]byte, error) {
return []byte(c.ColorString()), nil
}
func (c NamedColor) ColorString() string {
return string(c)
}