Skip to content

Commit 5b9681f

Browse files
committed
Update 07_text.py
1 parent 830ec68 commit 5b9681f

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

session-5/07_text.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ def lerp(start, stop, amt):
1616
# set some constants
1717
frames = 30 # number of frames
1818
trail = 10 # number of outlines to draw behind our original
19-
spokes = 5 # number of rotations to draw
19+
spokes = 1 # number of rotations to draw
2020
myFontSize = 400 # the font size
2121

2222
# install the font or drag in the file to get the absolute path
@@ -102,10 +102,11 @@ def lerp(start, stop, amt):
102102
# feed those to the fontVariation() function
103103
fontVariations(wght=wghtValue, wdth=wdthValue, ital=italValue)
104104
# draw our text
105+
# use fontDescender() function to lower the text so the baseline
105106
text('Hi!', (0, fontDescender()), align="center")
106-
# diminish our alpha for each trail
107+
# diminish our alpha channel for each trail
107108
a *= .9
108-
# for each spoke, rotate one portion of a circle
109+
# for each spoke in our wheel, rotate one portion of a circle
109110
# divide 360 by the number of spokes to get the number of degrees to rotate
110111
rotate(360/spokes)
111112

0 commit comments

Comments
 (0)