fix bug where RGBColor could not be marshalled

This commit is contained in:
Ryan Cavicchioni 2020-03-28 18:04:11 -05:00
parent bdcb20acb2
commit fce5ff9667
Signed by: ryanc
GPG Key ID: 877EEDAF9245103D

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)
}