Table of Contents

Method GetColor

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

GetColor(ColorFunction)

Gets the color index for this point for the given color function.

public int GetColor(ColorFunction colorFunction)

Parameters

colorFunction ColorFunction

The color function used to partition points.

Returns

int

An integer that represents this points "color".

GetColor(int, int, int)

Gets the color index for this point for the given coloring parameters.

[Version(1, 7, 0)]
[Pure]
public int GetColor(int ux, int vx, int vy)

Parameters

ux int
vx int
vy int

Returns

int

Remarks

Gives a coloring of the grid such that if a point p has color k, then all points p + m[ux, 0] + n[vx, vy] have the same color for any integers a and b.More information about grid colorings: http://gamelogic.co.za/2013/12/18/what-are-grid-colorings/