more tinkering.

This commit is contained in:
2022-08-14 13:57:56 +02:00
parent e752b1bafd
commit 15a4f3289f
16 changed files with 331 additions and 237 deletions
+9
View File
@@ -206,6 +206,15 @@ func (col *Color) colorful() colorful.Color {
}
}
func MustParse(raw string) Color {
col, err := Parse(raw)
if err != nil {
panic(err)
}
return col
}
func Parse(raw string) (col Color, err error) {
if raw == "" {
return