MCPcopy Create free account
hub / github.com/SolarLune/masterplan / Accent

Method Accent

utils.go:590–596  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

588}
589
590func (color Color) Accent() Color {
591 accentAmount := uint8(40)
592 if color[0] > accentAmount || color[1] > accentAmount || color[2] > accentAmount {
593 return color.Sub(accentAmount)
594 }
595 return color.Add(accentAmount)
596}
597
598func (color Color) Mult(scalar float32) Color {
599

Callers 5

DrawCardMethod · 0.80
NewDropdownFunction · 0.80
SetOptionsMethod · 0.80
UpdateMethod · 0.80
ConstructMenusFunction · 0.80

Calls 2

SubMethod · 0.95
AddMethod · 0.95

Tested by

no test coverage detected