more tinkering.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user