Class HexTerrainUtils
Inherited Members
Namespace: Fwt.HexTerrains.Data
Assembly: fwt.hexterrains.dll
Syntax
public static class HexTerrainUtils
Methods
GenerateBasicColorPalette(int, IList<Color32>, bool)
Generates a color palette with distinct colors. If firstColorTransparent is true, the first color in the palette will be transparent.
Declaration
public static IList<Color32> GenerateBasicColorPalette(int colorsCount, IList<Color32> colorMap = null, bool firstColorTransparent = false)
Parameters
| Type | Name | Description |
|---|---|---|
| int | colorsCount | Amount of colors to generate |
| IList<Color32> | colorMap | fills this list and returns it (if set). If null is passed, creates a new list as result |
| bool | firstColorTransparent | if true, the first color in colormap will be transparent |
Returns
| Type | Description |
|---|---|
| IList<Color32> |