コード例 #1
0
        private void Generate()
        {
            automaton = new CellularAutomaton(config);

            GeneratePalette();

            deadColor  = GetMainColorHSV().WithSV(0.3f, 0.2f).ToColor();
            aliveColor = GetMainColorHSV().ToColor();
        }
コード例 #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();
        }
コード例 #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);
        }
コード例 #4
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);
        }
コード例 #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);
        }
コード例 #6
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();
        }