Commit b71b46f4 authored by Adam Štěpánek's avatar Adam Štěpánek
Browse files

Fix non-determinism in portal_core_clock

parent 57fb58dc
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
// Hana Tokarova - 484176
// Portal Core Clock - Inspired by game Portal

color coreColor = color(0, 0, random(50, 200)); // Color of the core
color coreColor; // Color of the core
int slices = 21;                                // Number of lines in circle
int size = 300;                                 // Diameter of circle
float x; 										// X coordinate for line
@@ -14,6 +14,7 @@ float y; // Y coordinate for line

void setupHash() {
	// size(500, 400);
	coreColor = color(0, 0, random(50, 200));
	background(0);
}