Skip to content

Commit 45f76bb

Browse files
authored
Bigger stars ...
Changes from 1.7 to an easier-specifiable value.
1 parent f357d37 commit 45f76bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

main.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from random import randrange
55
# 2020/09/15: Cloned. Updated to add a weighted colorization. -Rn
66

7+
STAR_SIZE = 12
78

89
COLOR_WHITE = 0
910
COLOR_RED = 1
@@ -70,7 +71,7 @@ def draw(self):
7071
for star in self.stars:
7172
# move depth
7273
star.z -= 0.19
73-
star.radius = (1 - float(star.z) / self.max_depth) * 1.7
74+
star.radius = (1 - float(star.z) / self.max_depth) * STAR_SIZE
7475

7576
# reset depth
7677
if star.z <= 0:

0 commit comments

Comments
 (0)