Skip to content

Commit

Permalink
Bug fixes
Browse files Browse the repository at this point in the history
Fixed deterministic algorithm color not showing until background change in iteration 0.
  • Loading branch information
shreyanshanchlia committed Feb 26, 2021
1 parent 73c30da commit 3a227dc
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions Assets/Scripts/DeterministicFractalGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public void Start()
renderHolder = _renderHolder;

latestRender = Instantiate(SquarePrefab, renderHolder.transform);
latestRender.GetComponent<SpriteRenderer>().color = settingsManager.fractalColor;
latestRender.name = timesIterated.ToString();
R1.Enqueue(latestRender);

Expand Down
14 changes: 7 additions & 7 deletions Assets/Scripts/SettingsManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,19 +54,19 @@ private void Awake()
{
instance = this;
CameraSize = Camera.main.orthographicSize;
}

private void Start()
{
ifsCode = new List<float[]>();
ifsCode.Add(new float[ifsRowLength]);


ColorPalette _colorPalette = new ColorPalette();
_colorPalette.color = ColorPalette.ColorPaletteColors._FFFFFF;
SetBackgroundColorButtons(_colorPalette);

_colorPalette.color = ColorPalette.ColorPaletteColors._4D4D4D;
SetFractalColorButtons(_colorPalette);
}

private void Start()
{
ifsCode = new List<float[]>();
ifsCode.Add(new float[ifsRowLength]);

fractalOffset = new Vector2(Screen.width / 2, Screen.height / 2);
}
Expand Down
2 changes: 1 addition & 1 deletion ProjectSettings/ProjectSettings.asset
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ PlayerSettings:
16:10: 0
16:9: 1
Others: 0
bundleVersion: 1.0
bundleVersion: 2.1
preloadedAssets: []
metroInputSource: 0
wsaTransparentSwapchain: 0
Expand Down

0 comments on commit 3a227dc

Please sign in to comment.