github.com/lucasb-eyer/go-colorful.Color.R (field)
35 uses
github.com/lucasb-eyer/go-colorful (current package)
colors.go#L13: R, G, B float64
colors.go#L18: r = uint32(col.R*65535.0 + 0.5)
colors.go#L46: r = uint8(col.R*255.0 + 0.5)
colors.go#L54: return col.R, col.G, col.B
colors.go#L68: return 0.0 <= c.R && c.R <= 1.0 &&
colors.go#L81: return Color{clamp01(c.R), clamp01(c.G), clamp01(c.B)}
colors.go#L95: return math.Sqrt(sq(c1.R-c2.R) + sq(c1.G-c2.G) + sq(c1.B-c2.B))
colors.go#L122: rAvg := (c1.R + c2.R) / 2.0
colors.go#L124: dR := c1.R - c2.R
colors.go#L133: return math.Abs(c1.R-c2.R)+
colors.go#L141: c1.R + t*(c2.R-c1.R),
colors.go#L162: min := math.Min(math.Min(col.R, col.G), col.B)
colors.go#L163: v = math.Max(math.Max(col.R, col.G), col.B)
colors.go#L173: if v == col.R {
colors.go#L177: h = (col.B-col.R)/C + 2.0
colors.go#L180: h = (col.R-col.G)/C + 4.0
colors.go#L244: min := math.Min(math.Min(col.R, col.G), col.B)
colors.go#L245: max := math.Max(math.Max(col.R, col.G), col.B)
colors.go#L259: if max == col.R {
colors.go#L262: h = 2.0 + (col.B-col.R)/(max-min)
colors.go#L264: h = 4.0 + (col.R-col.G)/(max-min)
colors.go#L363: return fmt.Sprintf("#%02x%02x%02x", uint8(col.R*255.0+0.5), uint8(col.G*255.0+0.5), uint8(col.B*255.0+0.5))
colors.go#L395: c.R = float64(v) * factor
colors.go#L424: r = linearize(col.R)
colors.go#L444: r = linearize_fast(col.R)
github.com/charmbracelet/x/ansi
color.go#L197: r := col.R * 255
color.go#L231: c2 := colorful.Color{R: float64(cr) / 255.0, G: float64(cg) / 255.0, B: float64(cb) / 255.0}
color.go#L232: g2 := colorful.Color{R: float64(grey) / 255.0, G: float64(grey) / 255.0, B: float64(grey) / 255.0}