Skip to content

Commit 6c03051

Browse files
committed
Fixed small typo in the header for all Tutorials
1 parent 271c4a7 commit 6c03051

19 files changed

Lines changed: 315 additions & 208 deletions

File tree

content/api_en/LIB_dxf/index.html

Lines changed: 41 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,49 @@
1+
12
<div class="librarytitle"><h3>DXF Export</h3></div>
23

34
<div class="full-alt">
4-
5-
<p>This library writes all triangle-based graphics (polygons, boxes,
6-
spheres, etc.) to a DXF file. It works with the <strong>beginRaw()</strong> and <strong>endRaw()</strong> functions.
7-
These functions will grab and save the shape data just before it is rendered to the screen.
8-
At this stage, your entire scene is nothing but a long list of lines and triangles.
9-
This means that a shape created with the <strong>sphere()</strong> function will be made up of hundreds of
10-
triangles, rather than a single object.<br />
11-
<br />
12-
Use an event function like a <strong>keyPressed()</strong> to trigger it, to avoid writing a file each
13-
time through <strong>draw()</strong>. By default, the file will be saved to the sketch's folder.
14-
Use Sketch &gt; Show Sketch Folder to see it from the Processing Environment.</p>
15-
16-
<p>This simple example shows how to use the library: </p>
17-
18-
<pre>import processing.dxf.*;
19-
20-
boolean record;
21-
22-
void setup() {
23-
size(500, 500, P3D);
24-
}
25-
26-
void draw() {
27-
if (record) {
28-
beginRaw(DXF, "output.dxf");
29-
}
30-
31-
// do all your drawing here
32-
33-
if (record) {
34-
endRaw();
35-
record = false;
36-
}
5+
<p>
6+
The DXF library writes all triangle-based graphics (polygons, boxes, spheres, etc.) to a DXF file.
7+
It works with the <strong>beginRaw()</strong> and <strong>endRaw()</strong> functions.
8+
These functions will grab and save the shape data just before it is rendered to the screen.
9+
At this stage, your entire scene is nothing but a long list of lines and triangles.
10+
This means that a shape created with the <strong>sphere()</strong> function will be made up of
11+
hundreds of triangles, rather than a single object.<br />
12+
<br />
13+
Use an event function like a <strong>keyPressed()</strong> to trigger it, to avoid writing a
14+
file each time through <strong>draw()</strong>. By default, the file will be saved to the
15+
sketch's folder. Use Sketch &gt; Show Sketch Folder to see it from the Processing Environment.
16+
</p>
17+
18+
<p>This simple example shows how to use the library: </p>
19+
20+
<pre>import processing.dxf.*;
21+
22+
boolean record;
23+
24+
void setup() {
25+
size(500, 500, P3D);
3726
}
3827

39-
void keyPressed() {
40-
// use a key press so that it doesn't make a million files
28+
void draw() {
29+
if (record) {
30+
beginRaw(DXF, "output.dxf");
31+
}
32+
33+
// Do all your drawing here
34+
if (record) {
35+
endRaw();
36+
record = false;
37+
}
38+
}
39+
40+
void keyPressed() {
41+
// Use a key press so that it doesn't make a million files
4142
if (key == 'r') {
4243
record = true;
43-
}
44+
}
4445
}
45-
</pre>
46-
47-
</div>
46+
</pre>
47+
48+
</div>
49+

content/api_en/LIB_net/index.html

Lines changed: 37 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,19 @@
1-
<span class="lib-nav">
2-
<a href="../index.html">Libraries</a>
3-
</span>
4-
1+
52
<div class="librarytitle"><h3>Network</h3></div>
63

7-
<div class="colone-alt">
8-
<p>The Network library makes it easy
9-
to read and write data across machines on the Internet. It allows
10-
the creation clients and servers. A server connects to a list of clients
11-
for reading and writing data. A client is able to read and write data
12-
to a server.</p>
4+
<div class="full-alt">
5+
<p>
6+
The Network library makes it easy to read and write data across machines on the Internet.
7+
It allows the creation clients and servers. A server connects to a list of clients for
8+
reading and writing data. A client is able to read and write data to a server.
9+
</p>
1310
</div>
1411

15-
<div class="twocol-alt">
16-
<p>
17-
<h5>Server Class</h5>
18-
<p>The server class is used to create server objects which send and receives
19-
data to and from its associated clients (other programs connected to it).
20-
<br />
21-
<br />
22-
<a href="Server.html">Server</a><br />
23-
<a href="Server_write_.html">write()</a><br />
24-
<a href="Server_available_.html">available()</a><br />
25-
<a href="Server_stop_.html">stop()</a><br />
26-
<a href="Server_disconnect_.html">disconnect()</a><br />
27-
</p>
28-
29-
<h5>Client Class</h5>
30-
<p>The client class is used to create client Objects which connect to a server
31-
to exchange data.
32-
<br />
12+
<div class="colone-alt">
13+
<p>
14+
<h5>Client</h5>
15+
<p>The Client class is used to create Client objects that connect to a server
16+
to exchange data.<br />
3317
<br />
3418
<a href="Client.html">Client</a><br />
3519
<a href="Client_available_.html">available()</a><br />
@@ -44,12 +28,30 @@ <h5>Client Class</h5>
4428
<a href="Client_stop_.html">stop()</a><br />
4529
<a href="Client_ip_.html">ip()</a><br />
4630
</p>
31+
</p>
32+
</div>
33+
34+
<div class="twocol-alt">
35+
36+
<p>
37+
<h5>Server</h5>
38+
<p>The Server class is used to create Server objects that send and receive
39+
data to and from associated clients, the other programs connected to it.<br />
40+
<br />
41+
<a href="Server.html">Server</a><br />
42+
<a href="Server_write_.html">write()</a><br />
43+
<a href="Server_available_.html">available()</a><br />
44+
<a href="Server_stop_.html">stop()</a><br />
45+
<a href="Server_disconnect_.html">disconnect()</a><br />
46+
<br />
47+
</p>
48+
49+
<h5>Network Events</h5>
50+
<p>
51+
<a href="serverEvent_.html">serverEvent()</a><br />
52+
<a href="clientEvent_.html">clientEvent()</a><br />
53+
<a href="disconnectEvent_.html">disconnectEvent()</a><br />
54+
</p>
4755

48-
<h5>Network Events</h5>
49-
<p>
50-
<a href="serverEvent_.html">serverEvent()</a><br />
51-
<a href="clientEvent_.html">clientEvent()</a><br />
52-
<a href="disconnectEvent_.html">disconnectEvent()</a><br />
53-
</p>
54-
</p>
56+
</p>
5557
</div>

content/api_en/LIB_pdf/index.html

Lines changed: 14 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,10 @@
1-
<span class="lib-nav">
2-
<a href="../index.html">Libraries</a>
3-
</span>
41

5-
<div class="librarytitle">
6-
<h3>PDF Export</h3>
7-
</div>
2+
<div class="librarytitle"><h3>PDF Export</h3></div>
83

94
<div class="full-alt">
10-
<p>This library makes it possible to write PDF files directly from Processing. These vector graphics files can be scaled to any size and output at very high resolutions. There is also a contributed library for exporting images to SVG format; check the <a href="http://www.processing.org/reference/libraries/">libraries</a> section of the website for more information. The PDF library can flatten 3D data into a 2D vector file, but to export 3D data, use the DXF library.<br />
11-
<br />
12-
This library is frequently used with the core Processing function <strong>size()</strong>, with a combination of <strong>beginRecord()</strong> and <strong>endRecord()</strong>, or with <strong>beginRaw()</strong> and <strong>endRaw()</strong>. The <strong>createGraphics()</strong> function can also be useful. See the examples below for different techniques.</p>
5+
<p>The PDF library makes it possible to write PDF files directly from Processing. These vector graphics files can be scaled to any size and output at very high resolutions. The PDF library can flatten 3D data into a 2D vector file, but to export 3D data, use the DXF library.<br />
6+
<br />
7+
This library is frequently used with the core Processing function <strong>size()</strong>, with a combination of <strong>beginRecord()</strong> and <strong>endRecord()</strong>, or with <strong>beginRaw()</strong> and <strong>endRaw()</strong>. The <strong>createGraphics()</strong> function can also be useful. See the examples below for different techniques.</p>
138
</div>
149

1510
<div class="full">
@@ -267,11 +262,11 @@ <h3>PDF Export</h3>
267262

268263
<li>Starting in release 0120, text is no longer treated as shape data by
269264
default, meaning that the font will need to be installed to view the
270-
PDF that's created. The upside is that the PDF will render better
271-
(particularly in light of the Mac OS X bug noted here). To force text
265+
PDF that's created. The upside is that the PDF will render better. To force text
272266
to be treated as shape data, use textMode(SHAPE), immediately after size().
273-
See the developer reference for textMode() inside
274-
<A HREF="http://dev.processing.org/reference/everything/javadoc/processing/pdf/PGraphicsPDF.html">PGraphicsPDF</A> for more specifics.
267+
<!--See the developer reference for textMode() inside
268+
<A HREF="http://dev.processing.org/reference/everything/javadoc/processing/pdf/PGraphicsPDF.html">
269+
PGraphicsPDF</A> for more specifics.-->
275270

276271
<li>Another option for type, is to use createFont() with a TrueType font
277272
(some OpenType fonts also work). Any font that shows up in PFont.list()
@@ -282,18 +277,20 @@ <h3>PDF Export</h3>
282277
bitmapped and ugly. In some cases, hint(ENABLE_NATIVE_FONTS)
283278
may improve the situation if the font is installed on the machine.
284279

285-
<li>On Mac OS X, the seems to be a bug in Apple's Java implementation
280+
<!-- Removed by REAS, 1 September 2011, couldn't find reference in the current Issue database-->
281+
<!--<li>On Mac OS X, the seems to be a bug in Apple's Java implementation
286282
that confuses cubic vs. quadric splines. This makes text look jagged,
287283
even though it's not bitmapped.
288-
(<A HREF="http://dev.processing.org/bugs/show_bug.cgi?id=404">Bug 404</A>)
284+
(<A HREF="http://dev.processing.org/bugs/show_bug.cgi?id=404">Bug 404</A>)-->
289285

290-
<li>If the results with beginRaw() from P3D to PDF look bizarre,
286+
<!-- Removed by REAS, 1 September 2011, couldn't find reference in the current Issue database-->
287+
<!--<li>If the results with beginRaw() from P3D to PDF look bizarre,
291288
it's probably because the polygons are not sorted.
292289
To attempt sorting of 3D shapes before they're written to a file,
293290
use hint(ENABLE_DEPTH_SORT). This method is still
294291
not particularly good, but will help in some situations.
295292
See <a href="http://dev.processing.org/bugs/show_bug.cgi?id=176">Bug
296-
176</a> for status of the implementation.</p>
293+
176</a> for status of the implementation.</p>-->
297294

298295
<li>Starting a new page is a matter of calling nextPage() like so:
299296
<pre>

content/api_en/LIB_serial/index.html

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,26 @@
1-
<span class="lib-nav">
2-
<a href="../index.html">Libraries</a>
3-
</span>
4-
1+
52
<div class="librarytitle"><h3>Serial</h3></div>
63

7-
<div class="colone-alt">
8-
<p>
9-
The Processing serial library allows for easily reading and writing data to and from
10-
external machines. It allows two computers to send and receive data and gives you the
11-
flexibility to communicate with custom microcontroller devices, using them as the input
12-
or output to Processing programs.
13-
</p>
4+
<div class="full-alt">
145
<p>
15-
The serial port is a nine pin I/O port that exists on many PCs and can be emulated
16-
through USB with the Keyspan USB Serial Adaptor and other compliant devices.
6+
The Serial library is for reading and writing data to and from external devices one byte
7+
at a time. It allows two computers to send and receive data. This library has the flexibility
8+
to communicate with custom microcontroller devices and to use them as the input
9+
or output to Processing programs. The serial port is a nine pin I/O port that exists on
10+
many PCs and can be emulated through USB.
1711

1812
</p>
1913
<p>
20-
<em>Note: Issues with the Serial Library and specific platforms are documented on
14+
<em>Issues with the Serial Library and specific platforms are documented on
2115
the <a href="http://wiki.processing.org/w/Serial_Issues">Processing Wiki</a>.</em>
2216

2317
</p>
2418

2519
</div>
2620

27-
<div class="twocol-alt">
28-
21+
<div class="colone-alt">
2922
<p>
30-
<h5>Serial class</h5>
23+
<h5>Serial</h5>
3124
<p>
3225
<a href="Serial.html">Serial</a><br />
3326
<a href="Serial_available_.html">available()</a><br />
@@ -45,11 +38,18 @@ <h5>Serial class</h5>
4538
<a href="Serial_clear_.html">clear()</a><br />
4639
<a href="Serial_stop_.html">stop()</a><br />
4740
<a href="Serial_list_.html">list()</a><br>
41+
<br />
4842
</p>
43+
</p>
4944

50-
<h5>Serial events</h5>
45+
</div>
46+
47+
<div class="twocol-alt">
48+
49+
<p>
50+
<h5>Serial Event</h5>
5151
<p>
52-
<a href="serialEvent_.html">serialEvent()</a> <br />
52+
<a href="serialEvent_.html">serialEvent()</a><br />
5353
</p>
5454
</p>
5555
</div>

0 commit comments

Comments
 (0)