Skip to content

Commit

Permalink
add sphere
Browse files Browse the repository at this point in the history
  • Loading branch information
tmckay1 committed Oct 24, 2020
1 parent 6c522b5 commit 59abe8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion animation/CubeSphere.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def step(self, amt=1):
for y in range(self.y):
for x in range(self.x):
if self._vector[x][y][z] == radius:
self.layout.set(x, y, z, (255,255,255))
self.layout.set(x, y, z, self.palette(new_step % 255))

# TODO: Handle overflow
self._step += 1

0 comments on commit 59abe8c

Please sign in to comment.