Skip to content

Commit

Permalink
add pulse animation
Browse files Browse the repository at this point in the history
  • Loading branch information
tmckay1 committed Oct 24, 2020
1 parent 603cd9a commit 28c9048
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion animation/CubePulse.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def genCubeVector(x, y, z, x_mult=1, y_mult=1, z_mult=1):
cZ = (z - 1) / 2.0

def vect(_x, _y, _z):
return max(_x - cX, _y - cY, _z - cZ)
return int(max(abs(_x - cX), abs(_y - cY), abs(_z - cZ)))

return [[[vect(_x, _y, _z) for _z in range(z)] for _y in range(y)] for _x in range(x)]

Expand Down

0 comments on commit 28c9048

Please sign in to comment.