(intensity float64)
| 542 | } |
| 543 | |
| 544 | func greyColor(intensity float64) *docs.OptionalColor { |
| 545 | return &docs.OptionalColor{Color: &docs.Color{RgbColor: &docs.RgbColor{ |
| 546 | Red: intensity, Green: intensity, Blue: intensity, |
| 547 | }}} |
| 548 | } |
| 549 | |
| 550 | func parseHexColor(hex string) (r, g, b float64, ok bool) { |
| 551 | hex = strings.TrimPrefix(hex, "#") |
no outgoing calls
no test coverage detected