You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/pages/environment/index.mdx
+16-16Lines changed: 16 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,11 +23,11 @@ Processing has different _programming modes_ to make it possible to deploy sketc
23
23
24
24
## Processing Development Environment (PDE)
25
25
26
-
The Processing Development Environment (PDE) consists of a simple text editor for writing code, a message area, a text console, tabs for managing files, a toolbar with buttons for common actions, and a series of menus. The menus options change from mode to mode. The default Java mode is documented here.
26
+
The Processing Development Environment (PDE) consists of a simple text editor for writing code, a message area, a text console, tabs for managing files, a toolbar with buttons for common actions, and a series of menus. The menu options change from mode to mode. The default Java mode is documented here.
27
27
28
28

29
29
30
-
Programs written using Processing are called sketches. These sketches are written in the text editor. It has features for cutting/pasting and for searching/replacing text. The message area gives feedback while saving and exporting and also displays errors. The console displays text output by Processing sketches including complete error messages and text output from sketches with the `print()` and `println()` functions. (Note that the console works well for occasional messages, but is not intended for high-speed, real-time output.)
30
+
Programs written using Processing are called sketches. These sketches are written in the text editor. It has features for cutting/pasting and searching/replacing text. The message area gives feedback while saving and exporting and also displays errors. The console displays text output by Processing sketches including complete error messages and text output from sketches with the `print()` and `println()` functions. (Note that the console works well for occasional messages, but is not intended for high-speed, real-time output.)
31
31
32
32
The buttons on the toolbar can run and stop programs,
33
33
@@ -56,14 +56,14 @@ The buttons on the toolbar can run and stop programs,
56
56
<dd>Terminates a running sketch.</dd>
57
57
</dl>
58
58
59
-
Additional commands are found within the six menus: File, Edit, Sketch, Debug, Tools, Help. The menus are contextsensitive which means only those items relevant to the work currently being carried out are available.
59
+
Additional commands are found within the six menus: File, Edit, Sketch, Debug, Tools, Help. The menus are context-sensitive which means only those items relevant to the work currently being carried out are available.
60
60
61
61
### File
62
62
63
63
<dl>
64
64
<dt>New</dt>
65
65
<dd>
66
-
Creates a new sketch in a new window, named as the current date is the
66
+
Creates a new sketch in a new window, named as the current date in the
67
67
format `sketch_YYMMDDa`.
68
68
</dd>
69
69
<dt>Open...</dt>
@@ -73,15 +73,15 @@ Additional commands are found within the six menus: File, Edit, Sketch, Debug, T
73
73
<dt>Sketchbook...</dt>
74
74
<dd>Open a new window to show the list of sketches in the sketchbook.</dd>
75
75
<dt>Examples...</dt>
76
-
<dd>Open a new window to show the list of the examples.</dd>
76
+
<dd>Open a new window to show a list of examples.</dd>
77
77
<dt>Close</dt>
78
78
<dd>
79
79
Close the sketch in the frontmost window. If this is the last sketch that's
80
80
open, you will be prompted whether you would like to quit. To avoid the
81
81
prompt, use Quit instead of Close when you want to exit the application.
82
82
</dd>
83
83
<dt>Save</dt>
84
-
<dd>Saves the open sketch in it's current state.</dd>
84
+
<dd>Saves the open sketch in its current state.</dd>
85
85
<dt>Save As...</dt>
86
86
<dd>
87
87
Saves the currently open sketch, with the option of giving it a different
@@ -99,12 +99,12 @@ Additional commands are found within the six menus: File, Edit, Sketch, Debug, T
99
99
<dt>Preferences...</dt>
100
100
<dd>
101
101
Change some of the ways Processing works. (This item is located in the
102
-
Processing menu on Mac OS X.)
102
+
Processing menu on macOS.)
103
103
</dd>
104
104
<dt>Quit</dt>
105
105
<dd>
106
106
Exits the Processing Environment and closes all Processing windows. (This
107
-
item is located in the Processing menu on Mac OS X.)
107
+
item is located in the Processing menu on macOS.)
108
108
</dd>
109
109
</dl>
110
110
@@ -155,22 +155,22 @@ Additional commands are found within the six menus: File, Edit, Sketch, Debug, T
155
155
uncomments it.
156
156
</dd>
157
157
<dt>Increase Indent</dt>
158
-
<dd>Indents the selected text two spaces.</dd>
158
+
<dd>Indents the selected text by two spaces.</dd>
159
159
<dt>Decrease Indent (Ctrl+[)</dt>
160
160
<dd>If the text is indented, removes two spaces from the indent.</dd>
161
161
<dt>Find...</dt>
162
162
<dd>
163
-
Finds an occurence of a text string within the file open in the text editor
163
+
Finds an occurrence of a text string within the file open in the text editor
164
164
and gives the option to replace it with a different text.
165
165
</dd>
166
166
<dt>Find Next</dt>
167
167
<dd>
168
-
Finds the next occurence of a text string within the file open in the text
168
+
Finds the next occurrence of a text string within the file open in the text
169
169
editor.
170
170
</dd>
171
171
<dt>Find Previous</dt>
172
172
<dd>
173
-
Finds the previous occurence of a text string within the file open in the
173
+
Finds the previous occurrence of a text string within the file open in the
174
174
text editor.
175
175
</dd>
176
176
<dt>Use Selection for Find</dt>
@@ -282,7 +282,7 @@ Additional commands are found within the six menus: File, Edit, Sketch, Debug, T
282
282
<dt>Theme Selector</dt>
283
283
<dd>
284
284
Interface for selecting themes for Processing, with options to read about
285
-
how to create your own themes as well as save them to sketchbook for editing.
285
+
how to create your own themes as well as save them to a sketchbook for editing.
286
286
</dd>
287
287
<dt>Movie Maker</dt>
288
288
<dd>
@@ -341,7 +341,7 @@ Additional commands are found within the six menus: File, Edit, Sketch, Debug, T
341
341
342
342
## Preferences
343
343
344
-
The Processing Development Environment (PDE) is highly configurable. The most common preferences can be modified in the Preferences window, located in the File menu on Windows and Linux and in the Processing menu on Mac Os X. The full list of preferences are stored in the "preferences.txt" file. This file can be opened and edited directly only when Processing is not running. You can find the location of this file on your computer by reading the bottom-left corner of the Preferences window.
344
+
The Processing Development Environment (PDE) is highly configurable. The most common preferences can be modified in the Preferences window, located in the File menu on Windows and Linux and the Processing menu on macOS. The full list of preferences is stored in the "preferences.txt" file. This file can be opened and edited directly only when Processing is not running. You can find the location of this file on your computer by reading the bottom-left corner of the Preferences window.
345
345
346
346
<dl>
347
347
<dt>Sketchbook location</dt>
@@ -420,7 +420,7 @@ The Processing Development Environment (PDE) is highly configurable. The most co
420
420
421
421
All Processing projects are called sketches. Each sketch has its own folder. The main file for each sketch has the same name as the folder and is found inside. For example, if the sketch is named "Sketch_123", the folder for the sketch will be called "Sketch_123" and the main file will be called "Sketch_123.pde". The PDE file extension is an acronym for the Processing Development Environment
422
422
423
-
Processing sketches can be stored anywhere on your computer, but by default they are stored in the sketchbook, which will be in different places on your computer or network depending if you use PC, Mac, or Linux and how the preferences are set. To locate this folder, select the "Preferences" option from the File menu (or from the "Processing" menu on the Mac) and look for the"Sketchbook location."
423
+
Processing sketches can be stored anywhere on your computer, but by default, they are stored in the sketchbook, which will be in different places on your computer or network depending if you use PC, Mac, or Linux and how the preferences are set. To locate this folder, select the "Preferences" option from the File menu (or from the "Processing" menu on the Mac) and look for the"Sketchbook location."
424
424
425
425
A sketch folder sometimes contains other folders for media files and other code. When a font or image is added to a sketch by selecting "Add File..." from the Sketch menu, a "data" folder is created. Files may also be added to your Processing sketch by dragging them into the text editor. Image and sound files dragged into the application window will automatically be added to the current sketch's "data" folder. All images, fonts, sounds, and other data files loaded in the sketch must be in this folder.
426
426
@@ -476,7 +476,7 @@ The arrow button to the right of the tabs in the Processing Development Environm
476
476
477
477
_Advanced_
478
478
479
-
When a program with multiple tabs is run, the code is grouped together and the classes in other tabs become inner classes. Because they're inner classes, they cannot have static variables. Simply place the "static" variable outside the class itself to do the same thing (it need not be explicitly named "static" once you list it in this manner). If you don't want code to be an inner class, you can also create a tab with a ".java" suffix, which means it will be interpreted as straight java code. It is also not possible to use static classes in separate tabs. If you do this, however, you'll need to pass the PApplet object to that object in that tab in order to get PApplet functions like `line()`, `loadStrings()` or `saveFrame()` to work.
479
+
When a program with multiple tabs is run, the code is grouped together and the classes in other tabs become inner classes. Because they're inner classes, they cannot have static variables. Simply place the "static" variable outside the class itself to do the same thing (it need not be explicitly named "static" once you list it in this manner). If you don't want code to be an inner class, you can also create a tab with a ".java" suffix, which means it will be interpreted as straight java code. It is also not possible to use static classes in separate tabs. If you do this, however, you'll need to pass the PApplet object to that object in that tab in order to get PApplet functions like `line()`, `loadStrings()`, or `saveFrame()` to work.
0 commit comments