Skip to content

Commit 89244fb

Browse files
philiptrphiliptr
authored andcommitted
Finalizing new tutorials
1 parent c149e0f commit 89244fb

File tree

3 files changed

+14
-13
lines changed

3 files changed

+14
-13
lines changed

content/static/tutorials/interactivity/index.html

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
<td style= "width: 656px;">
77
<h1>Interactivity</h1>
88
<p class="license">This tutorial is for Processing version 1.1+. If you see any errors or have comments, please <a href="https://github.com/processing/processing-docs/issues?state=open">let us know</a>. This tutorial is from the book, <a href="http://www.processing.org/learning/books/#shiffman">Learning Processing</a>, by Daniel Shiffman, published by Morgan Kaufmann Publishers, Copyright &copy; 2008 Elsevier Inc. All rights reserved.</p>
9+
<br />
910
</td>
1011
</tr>
1112

@@ -30,6 +31,7 @@ <h1>Interactivity</h1>
3031
<p>
3132
<h3>Mouse Data</h3>
3233
The Processing variables mouseX and mouseY (note the capital X and Y) store the x-coordinate and y-coordinate of the cursor relative to the origin in the upper-left corner of the display window. To see the actual values produced while moving the mouse, run this program to print the values to the console:
34+
<br />
3335
<pre>
3436
void draw() {
3537
frameRate(12);
@@ -47,8 +49,6 @@ <h3>Mouse Data</h3>
4749
<tr style= "width: 100px; float:left;">
4850
<td>
4951
<img src="imgs/07_01_1.png" style= "width: 100px; height: 100px;">
50-
<br />
51-
<img src="imgs/07_02_2.png" style= "width: 100px; height: 100px;">
5252
</td>
5353
</tr>
5454

@@ -68,7 +68,9 @@ <h3>Mouse Data</h3>
6868
</tr>
6969

7070
<td>
71+
<br />
7172
</td>
73+
<br />
7274
<td>
7375
</td>
7476

@@ -99,6 +101,7 @@ <h3>Mouse Data</h3>
99101
</tr>
100102

101103
<td>
104+
<br />
102105
</td>
103106
<td>
104107
</td>
@@ -1131,10 +1134,6 @@ <h3>Cursor icon</h3>
11311134
</p>
11321135
</td>
11331136
</tr>
1134-
<p>
1135-
1136-
<p>&nbsp;</p>
11371137

11381138
</table>
1139-
</p>
11401139
</div>

content/static/tutorials/rendering/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ <h1 style="line-height: 0.7em;">Render Techniques</h1>
66
<h3 style="line-height: 0.7em;"><em>By Casey Reas</em></h3>
77
<p class="license">This tutorial is Extension 35 from the second edition of <em><a href="http://mitpress.mit.edu/books/processing-1">Processing: A Programming Handbook for Visual Designers and Artists</a></em>, published by MIT Press. Copyright 2013 MIT Press. This tutorial is for Processing version 2.0+. If you see any errors or have comments, please <a href="https://github.com/processing/processing-docs/issues?state=open">let us know</a>.</p>
88
<br />
9+
<br />
910
<p>
1011
Throughout this book, everything has drawn to the primary display window. Sometimes, however, there is an advantage in drawing to another graphics surface. All of the drawing features available in the display window can be applied to an offscreen drawing surface and then drawn back into the display window as an image or texture. This technique makes it easier to imagine a program as a stack of layers similar to the technique used in photo editing and vector drawing software. Similarly, drawing surfaces in Processing can be moved around, drawn using blending effects and transparency, and drawn in different orders to change how the layers combine. Before the discussion moves to multiple drawing surfaces, this chapter starts with a discussion of the different renderers used by Processing.
1112
</p>

content/static/tutorials/typography/index.html

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<h1>Typography</h1>
66
<p class="license">This tutorial is for Processing version 2.0+. If you see any errors or have comments, please <a href="https://github.com/processing/processing-docs/issues?state=open">let us know</a>. This tutorial is from the book, <a href="http://www.processing.org/learning/books/#shiffman">Learning Processing</a>, by Daniel Shiffman, published by Morgan Kaufmann Publishers, Copyright &copy; 2008 Elsevier Inc. All rights reserved.</p>
77

8-
8+
<br />
99
<p>
1010
The evolution of typographic reproduction and display technologies has and continues to impact human culture. Early printing techniques developed by Johannes Gutenberg in fifteenth-century Germany using letters cast from lead provided a catalyst for increased literacy and the scientific revolution. Automated typesetting machines, such as the Linotype invented in the nineteenth century, changed the way information was produced, distributed, and consumed. In the digital era, the way we consume text has changed drastically since the proliferation of personal computers in the 1980s and the rapid growth of the Internet in the 1990s. Text from emails, websites, and instant messages fill computer screens, and while many of the typographic rules of the past apply, type on screen requires additional considerations for enhanced communication and legibility.
1111
<br />
@@ -52,6 +52,7 @@ <h3>Draw text</h3>
5252

5353

5454

55+
5556
textSize(32); // Set text size to 32
5657
fill(0);
5758
text("LAX", 0, 40);
@@ -72,8 +73,6 @@ <h3>Draw text</h3>
7273

7374

7475

75-
76-
7776
textSize(64);
7877
fill(0, 140); // Fill black with low opacity
7978
text("8", 0, 60);
@@ -597,6 +596,11 @@ <h3>Typing</h3>
597596
</pre>
598597
</td>
599598
</tr>
599+
600+
<tr>
601+
602+
</tr>
603+
600604
<tr style= "width: 100px; float:left;">
601605
<td>
602606
<img src="imgs/12_19_1.png" style= "width: 100px; height: 100px;">
@@ -640,11 +644,8 @@ <h3>Typing</h3>
640644
<h3>Notes</h3>
641645

642646
1. Ellen Lupton, Thinking with Type: A Critical Guide for Designers, Writers, Editors, & Students (Princeton Architectural Press, 2004), p. 29.
643-
</p>
644-
<p>&nbsp;</p>
645-
647+
</p>
646648
</td>
647649
</tr>
648650
</table>
649-
</p>
650651
</div>

0 commit comments

Comments
 (0)