Skip to content

Commit 1e0c49e

Browse files
2D Transformation--fix int bug, hide java download
closes jdf#154 1. The house() function declaration statement includes type "int" arguments left over from the original Java example -- this is not valid python. 2. The download is for the java version of the code rather than python--the link could be restored after those resource .pde sketches were all localized to .pyde sketches.
1 parent 9acb575 commit 1e0c49e

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

‎Tutorials/transform2d/index.html‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@ <h1>2D Transformations</h1>
1919
"https://github.com/jdf/processing-py-site/issues?state=open">
2020
let us know</a>. This work is licensed under a <a href="http://creativecommons.org/licenses/by-nc-sa/4.0/"> Creative Commons
2121
Attribution-NonCommercial-ShareAlike 4.0 International License.</a> </p>
22-
22+
<!--
2323
<p>&nbsp;</p>
2424
<a href="imgs/transform2d.zip">Download the files from this tutorial.</a>
2525
</p>
26-
26+
-->
2727
<p>&nbsp;</p>
2828

2929
<p>
@@ -156,7 +156,7 @@ <h3>What&rsquo;s the Advantage?</h3>
156156
</p>
157157

158158
<pre>
159-
def house(int x, int y):
159+
def house(x, y):
160160
triangle(x + 15, y, x, y + 15, x + 30, y + 15)
161161
rect(x, y + 15, 30, 30)
162162
rect(x + 12, y + 30, 10, 15)
@@ -170,7 +170,7 @@ <h3>What&rsquo;s the Advantage?</h3>
170170
</p>
171171

172172
<pre>
173-
def house(int x, int y):
173+
def house(x, y):
174174
pushMatrix()
175175
translate(x, y)
176176
triangle(15, 0, 0, 15, 30, 15)

0 commit comments

Comments
 (0)