Skip to content

Commit 36907b1

Browse files
Update patterned.py
1 parent 256130c commit 36907b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/patterned.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def pythag(x, y):
3434
pos = [(math.sin(i+offset)*a)/display.get_aspect_ratio(), math.cos(i+offset)*a]
3535
distance = pythag(abs(pos[0]), abs(pos[1])) - circle.get_radius(format=pmma.Constants.OPENGL_COORDINATES)
3636
if distance < ROOT_TWO:
37-
size = noise.generate_1D_perlin_noise(-distance + pmma.get_application_run_time(), new_range=[1, 50]) * (distance / ROOT_TWO)
37+
size = noise.generate_1D_perlin_noise(-distance + pmma.get_application_run_time()/2, new_range=[1, 50]) * (distance / ROOT_TWO)
3838
size = max(size, 1)
3939
circles[i].set_radius(size)
4040
circles[i].set_center(pos, format=pmma.Constants.OPENGL_COORDINATES)

0 commit comments

Comments
 (0)