Skip to content

Commit 4ca0821

Browse files
improved comments in animation example
1 parent d181fb3 commit 4ca0821

1 file changed

Lines changed: 8 additions & 7 deletions

File tree

solid/examples/animation_example.py

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,15 @@ def my_animate( _time=0):
2828
# at the bottom of the OpenSCAD window
2929
# - FPS & Steps are flexible. For a start, set both to 20
3030
# play around from there
31-
scad_render_animated_file( my_animate, # A function that takes a float argument in [0,1)
31+
scad_render_animated_file( my_animate, # A function that takes a float argument
32+
# called '_time' in [0,1)
3233
# and returns an OpenSCAD object
33-
steps=20, # Number of steps to create one complete motion
34-
back_and_forth=True, # If true, runs the complete motion
35-
# forward and then in reverse,
36-
# to avoid discontinuity
37-
filepath=file_out, # Output file
38-
include_orig_code=True ) # Append SolidPython code
34+
steps=20, # Number of steps to create one complete motion
35+
back_and_forth=True, # If true, runs the complete motion
36+
# forward and then in reverse,
37+
# to avoid discontinuity
38+
filepath=file_out, # Output file
39+
include_orig_code=True ) # Append SolidPython code
3940
# to the end of the generated
4041
# OpenSCAD code.
4142

0 commit comments

Comments
 (0)