Skip to content

Commit 6465c10

Browse files
committed
- remove redundant modulo operation
1 parent 5ce5db2 commit 6465c10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter-08-dictionaries_and_json/coffee_chart/coffee_chart.pyde

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ for coffee in coffees:
3737
label = coffee['name']
3838
text(label, mug/2-textWidth(label)/2, mug+40)
3939

40-
if col % 3 == 0:
40+
if col == 3:
4141
translate(spacing*-2, spacing)
4242
col = 1
4343
else:

0 commit comments

Comments
 (0)