String converts the color to a string. eg "35".
()
| 243 | |
| 244 | // String converts the color to a string. eg "35". |
| 245 | func (c Color) String() string { |
| 246 | return fmt.Sprintf("%d", c) |
| 247 | } |
| 248 | |
| 249 | // ToStyle converts the color to a style. |
| 250 | func (c Color) ToStyle() *Style { |