private void Generate() { automaton = new CellularAutomaton(config); GeneratePalette(); deadColor = GetMainColorHSV().WithSV(0.3f, 0.2f).ToColor(); aliveColor = GetMainColorHSV().ToColor(); }
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(); }
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); }