private void Generate()
        {
            automaton = new CellularAutomaton(config);

            GeneratePalette();

            deadColor  = GetMainColorHSV().WithSV(0.3f, 0.2f).ToColor();
            aliveColor = GetMainColorHSV().ToColor();
        }
Esempio n. 2
0
        private void Generate()
        {
            automaton = new CellularAutomaton(width, height, ruleset, startNoise, aliveBorders);

            float hue = Random.value;

            deadColor  = new ColorHSV(hue, 0.3f, 0.2f).ToColor();
            aliveColor = new ColorHSV(hue, 0.3f, 0.7f).ToColor();
        }
Esempio n. 3
0
        private void Generate()
        {
            automaton = new CellularAutomaton(config);

            float hue = Random.value;

            deadColor  = new ColorHSV(hue, deadCellSaturation, deadCellValue).ToColor();
            aliveColor = new ColorHSV(hue, aliveCellSaturation, aliveCellValue).ToColor();

            var backgroundColor = new ColorHSV(hue, backgroundSaturation, backgroundValue).complementary.ToColor();

            background.CrossFadeColor(backgroundColor, fadeDuration, true, false);
        }
        private void Generate()
        {
            automaton = new CellularAutomaton(width, height, ruleset, startNoise, aliveBorders);

            float hue = Random.value;

            deadColor  = new ColorHSV(hue, deadCellSaturation, deadCellValue).ToColor();
            aliveColor = new ColorHSV(hue, aliveCellSaturation, aliveCellValue).ToColor();

            var backgroundColor = new ColorHSV(hue, backgroundSaturation, backgroundValue).complementary.ToColor();

            background.CrossFadeColor(backgroundColor, fadeDuration, true, false);
        }
Esempio n. 5
0
        private void Generate()
        {
            automaton = new CellularAutomaton(width, height, ruleset, startNoise, aliveBorders);

            float hue = Random.value;
            deadColor = new ColorHSV(hue, deadCellSaturation, deadCellValue).ToColor();
            aliveColor = new ColorHSV(hue, aliveCellSaturation, aliveCellValue).ToColor();

            var backgroundColor = new ColorHSV(hue, backgroundSaturation, backgroundValue).complementary.ToColor();
            background.CrossFadeColor(backgroundColor, fadeDuration, true, false);
        }
        private void Generate()
        {
            automaton = new CellularAutomaton(width, height, ruleset, startNoise, aliveBorders);

            float hue = Random.value;
            deadColor = new ColorHSV(hue, 0.3f, 0.2f).ToColor();
            aliveColor = new ColorHSV(hue, 0.3f, 0.7f).ToColor();
        }