MCPcopy Create free account
hub / github.com/openclaw/gogcli / greyColor

Function greyColor

internal/docsformat/format.go:544–548  ·  view source on GitHub ↗
(intensity float64)

Source from the content-addressed store, hash-verified

542}
543
544func 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
550func parseHexColor(hex string) (r, g, b float64, ok bool) {
551 hex = strings.TrimPrefix(hex, "#")

Callers 1

buildTextStyleRequestFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected