Exemple #1
0
    public void GradientPalette()
    {
        ColorPalette.Clear();

        ColorPalette.AddRange(Utility.Gradient(ColonyColor, MaxStates));

        Delta = MaxStates > 0 ? (256 / MaxStates) : 1;
    }
Exemple #2
0
    public void GenerateColorPalette()
    {
        ColorPalette.Clear();

        // Generate Gradient
        ColorPalette.AddRange(Utility.Gradient(ColonyColor));

        ColorPalette[0] = EmptyColor;
        ColorPalette[1] = ColonyColor;
    }
Exemple #3
0
    public void GenerateColorPalette()
    {
        ColorPalette.Clear();

        // Generate Gradient
        ColorPalette.AddRange(Utility.Gradient(ColonyColor));

        // Preserve colors for tree states
        var max = Math.Max(ColonyColor.Red, Math.Max(ColonyColor.Green, ColonyColor.Blue));

        ColorPalette[Empty]    = EmptyColor;
        ColorPalette[Normal]   = new Color((byte)(ColonyColor.Red / max * 128), (byte)(ColonyColor.Green / max * 128), (byte)(ColonyColor.Blue / max * 128));
        ColorPalette[Freezing] = ColonyColor;
    }
Exemple #4
0
    public void GradientPalette()
    {
        ColorPalette.Clear();

        ColorPalette.AddRange(Utility.Gradient(ColonyColor, MaxStates));
    }
    public void GradientPalette()
    {
        ColorPalette.Clear();

        ColorPalette.AddRange(Utility.Gradient(ColonyColor, RuleString.Length));
    }