github.com/lucasb-eyer/go-colorful.Color.B (field)
32 uses
github.com/lucasb-eyer/go-colorful (current package)
colors.go#L13: R, G, B float64
colors.go#L20: b = uint32(col.B*65535.0 + 0.5)
colors.go#L48: b = uint8(col.B*255.0 + 0.5)
colors.go#L54: return col.R, col.G, col.B
colors.go#L70: 0.0 <= c.B && c.B <= 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#L126: dB := c1.B - c2.B
colors.go#L135: math.Abs(c1.B-c2.B) < 3.0*Delta
colors.go#L143: c1.B + t*(c2.B-c1.B),
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#L174: h = math.Mod((col.G-col.B)/C, 6.0)
colors.go#L177: h = (col.B-col.R)/C + 2.0
colors.go#L179: if v == col.B {
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#L260: h = (col.G - col.B) / (max - min)
colors.go#L262: h = 2.0 + (col.B-col.R)/(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#L405: c.B = float64(v) * factor
colors.go#L426: b = linearize(col.B)
colors.go#L446: b = linearize_fast(col.B)
github.com/charmbracelet/x/ansi
color.go#L199: b := col.B * 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}