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

Method Invert

utils.go:612–622  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

610}
611
612func (color Color) Invert() Color {
613
614 newColor := NewColor(color.RGBA())
615
616 newColor[0] = 255 - newColor[0]
617 newColor[1] = 255 - newColor[1]
618 newColor[2] = 255 - newColor[2]
619
620 return newColor
621
622}
623
624func (color Color) Equals(other Color) bool {
625 return color[0] == other[0] &&

Callers 2

DrawMethod · 0.95
DrawMethod · 0.80

Calls 2

RGBAMethod · 0.95
NewColorFunction · 0.85

Tested by

no test coverage detected