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

Method ColorIndexToColor

contents.go:3141–3147  ·  view source on GitHub ↗
(index int)

Source from the content-addressed store, hash-verified

3139}
3140
3141func (mc *MapContents) ColorIndexToColor(index int) int {
3142 c := index &^ (MapPatternSolid + MapPatternDotted + MapPatternCrossed + MapPatternChecked + MapPatternTerrain)
3143 if c < 0 {
3144 c = 0
3145 }
3146 return c
3147}
3148
3149func (mc *MapContents) GridCursorPosition() Vector {
3150

Callers 2

UpdateMethod · 0.95
UpdateTextureMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected