Class NamedColorGenerator
Inheritance
System.Object
NamedColorGenerator
Namespace: Eco.Shared.Graphics
Assembly: Eco.Shared.dll
Syntax
public static class NamedColorGenerator : Object
Methods
DoBlends(Dictionary<NamedColors, ByteColor>, Int32)
Generate a palette of colors with unique names. Blends every pair of base color.
Declaration
public static Dictionary<NamedColor, List<NamedColor>> DoBlends(Dictionary<NamedColors, ByteColor> baseColors, int blendsPerPair = 3)
Parameters
Type | Name | Description |
---|---|---|
System.Collections.Generic.Dictionary<NamedColors, ByteColor> | baseColors | |
System.Int32 | blendsPerPair |
Returns
Type | Description |
---|---|
System.Collections.Generic.Dictionary<NamedColor, System.Collections.Generic.List<NamedColor>> |