We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0029a5a commit 3b6cd58Copy full SHA for 3b6cd58
chapter-08-dictionaries_and_json/coffee_chart/coffee_chart.pyde
@@ -14,14 +14,13 @@ translate(100, 100)
14
for coffee in coffees:
15
# ingredients goes here
16
pushMatrix()
17
-
+ translate(0, mug)
18
for ingredient in coffee['ingredients']:
19
ml = ingredient['quantity']
20
fill(ingredient['color'])
21
noStroke()
22
- rect(0, mug-ml, mug, ml)
+ rect(0, 0, mug, -ml)
23
translate(0, -ml)
24
25
popMatrix()
26
27
# mug
0 commit comments