Skip to content

Commit 38dcf7a

Browse files
authored
Update index.mdx
Signed-off-by: Arya Gupta <arya.gupta99999@gmail.com>
1 parent 7ae7b01 commit 38dcf7a

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

content/pages/environment/index.mdx

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,19 @@ description: >
1515

1616
The Processing Development Environment (PDE) makes it easy to write Processing programs. Programs are written in the Text Editor and started by pressing the Run button. In Processing, a computer program is called a _sketch_. Sketches are stored in the _Sketchbook_, which is a folder on your computer.
1717

18-
Sketches can draw two- and three-dimensional graphics. The default renderer is for drawing two-dimensional graphics. The P3D renderer makes it possible to draw three-dimensional graphics, which includes controlling the camera, lighting, and materials. The P2D renderer is a fast, but less accurate renderer for drawing two-dimensional graphics. Both the P2D and P3D renderers are accelerated if your computer has an OpenGL compatible graphics card.
18+
Sketches can draw two- and three-dimensional graphics. The default renderer is for drawing two-dimensional graphics. The P3D renderer makes it possible to draw three-dimensional graphics, which include controlling the camera, lighting, and materials. The P2D renderer is a fast, but less accurate renderer for drawing two-dimensional graphics. Both the P2D and P3D renderers are accelerated if your computer has an OpenGL compatible graphics card.
1919

2020
The capabilities of Processing are extended with _Libraries_ and _Tools_. Libraries make it possible for sketches to do things beyond the _core_ Processing code. There are hundreds of libraries contributed by the Processing community that can be added to your sketches to enable new things like playing sounds, doing computer vision, and working with advanced 3D geometry. Tools extend the PDE to help make creating sketches easier by providing interfaces for tasks like selecting colors.
2121

2222
Processing has different _programming modes_ to make it possible to deploy sketches on different platforms and program in different ways. The Java mode is the default. Other programming modes may be downloaded by selecting "Add Mode..." from the menu in the upper-right corner of the PDE.
2323

2424
## Processing Development Environment (PDE)
2525

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.
2727

2828
![IDE Screenshot](./ide.png)
2929

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.)
3131

3232
The buttons on the toolbar can run and stop programs,
3333

@@ -56,14 +56,14 @@ The buttons on the toolbar can run and stop programs,
5656
<dd>Terminates a running sketch.</dd>
5757
</dl>
5858

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.
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.
6060

6161
### File
6262

6363
<dl>
6464
<dt>New</dt>
6565
<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
6767
format `sketch_YYMMDDa`.
6868
</dd>
6969
<dt>Open...</dt>
@@ -73,15 +73,15 @@ Additional commands are found within the six menus: File, Edit, Sketch, Debug, T
7373
<dt>Sketchbook...</dt>
7474
<dd>Open a new window to show the list of sketches in the sketchbook.</dd>
7575
<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>
7777
<dt>Close</dt>
7878
<dd>
7979
Close the sketch in the frontmost window. If this is the last sketch that's
8080
open, you will be prompted whether you would like to quit. To avoid the
8181
prompt, use Quit instead of Close when you want to exit the application.
8282
</dd>
8383
<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>
8585
<dt>Save As...</dt>
8686
<dd>
8787
Saves the currently open sketch, with the option of giving it a different
@@ -155,22 +155,22 @@ Additional commands are found within the six menus: File, Edit, Sketch, Debug, T
155155
uncomments it.
156156
</dd>
157157
<dt>Increase Indent</dt>
158-
<dd>Indents the selected text two spaces.</dd>
158+
<dd>Indents the selected text by two spaces.</dd>
159159
<dt>Decrease Indent (Ctrl+[)</dt>
160160
<dd>If the text is indented, removes two spaces from the indent.</dd>
161161
<dt>Find...</dt>
162162
<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
164164
and gives the option to replace it with a different text.
165165
</dd>
166166
<dt>Find Next</dt>
167167
<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
169169
editor.
170170
</dd>
171171
<dt>Find Previous</dt>
172172
<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
174174
text editor.
175175
</dd>
176176
<dt>Use Selection for Find</dt>
@@ -282,7 +282,7 @@ Additional commands are found within the six menus: File, Edit, Sketch, Debug, T
282282
<dt>Theme Selector</dt>
283283
<dd>
284284
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.
286286
</dd>
287287
<dt>Movie Maker</dt>
288288
<dd>
@@ -341,7 +341,7 @@ Additional commands are found within the six menus: File, Edit, Sketch, Debug, T
341341

342342
## Preferences
343343

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 Mac Os X. 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.
345345

346346
<dl>
347347
<dt>Sketchbook location</dt>
@@ -420,7 +420,7 @@ The Processing Development Environment (PDE) is highly configurable. The most co
420420

421421
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
422422

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."
424424

425425
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.
426426

@@ -476,7 +476,7 @@ The arrow button to the right of the tabs in the Processing Development Environm
476476

477477
_Advanced_
478478

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.
480480

481481
</HighlightBlock>
482482

0 commit comments

Comments
 (0)