<< Chapter < Page Chapter >> Page >

Often the most difficult part to learning to use a new class library is learning how to read and interpret the documentation, and the Processing libraryis no exception.

The main documentation for Processing is accessible from the Reference and Learning links at the top of the Cover page . While extensive, this documentation is not presented in industry standard javadoc format.Documentation in standard javadoc format is available here .

Android and HTML 5 make Processing more relevant

The Processing environment has been around for a long time. It was initially developed to serve as a software sketchbook and to teach fundamentals of computer programming within a visual context.While it originally occupied a very narrow niche market, it has now become more relevant on a broad scale for two important reasons:

  • Processing can be used to develop Android apps .
  • Processing has a sister product named Processing.js that will automatically convert (with some limitations) Processing source code into JavaScript code suitable for use with the canvas element in HTML 5.

In other words, Processing directly supports two of the newest and hottest items in information technology; mobile apps and HTML 5 canvas.

Discussion and sample code

The Processing website provides a number of tutorials that explain important aspects of the Processing environment and also provide sample codethat illustrates those aspects of the environment.

An integrated development environment (IDE)

As you will see when you study those tutorials, the Processing programming environment comes with its own integrated development environment (known as the Processing Development Environment or PDE). A screen shot of the PDE is shown in Image 1 .

Image 1. the processing development environment (pde).

The Processing IDE.
Image 1. The Processing Development Environment (PDE).

Click here to view an extensive discussion of the PDE.

While it is possible to develop Processing programs outside the PDE, that that presents several issues that I prefer not to deal with involving libraries, etc. Therefore, I will probably use the PDE in most of the modules in thiscollection.

The Getting Started tutorial

The Getting Started tutorial explains how to download and install the Processing environment on Windows, Mac,and Linux.

In addition, that tutorial shows you how to create your first sketch along with a lot of other useful information. Study it carefully.

Run the sketch

The Objects tutorial explains how to write a sketch in which you define your own class named Car and then instantiate and manipulate objects of that class.

I encourage you to copy the code from that tutorial into the PDE. ( Image 1 shows the beginning of that sketch.)

Once you have copied the code into the PDE, you have three optional ways to run the sketch:

  • Run directly from the PDE.
  • Run in JavaScript mode.
  • Export and run as an application.

Run directly from the PDE

You can run the sketch directly from the PDE by either clicking the triangular arrow button shown near the upper-left corner in Image 1 , or by selecting Run from the Sketch menu.

Questions & Answers

how does Neisseria cause meningitis
Nyibol Reply
what is microbiologist
Muhammad Reply
what is errata
Muhammad
is the branch of biology that deals with the study of microorganisms.
Ntefuni Reply
What is microbiology
Mercy Reply
studies of microbes
Louisiaste
when we takee the specimen which lumbar,spin,
Ziyad Reply
How bacteria create energy to survive?
Muhamad Reply
Bacteria doesn't produce energy they are dependent upon their substrate in case of lack of nutrients they are able to make spores which helps them to sustain in harsh environments
_Adnan
But not all bacteria make spores, l mean Eukaryotic cells have Mitochondria which acts as powerhouse for them, since bacteria don't have it, what is the substitution for it?
Muhamad
they make spores
Louisiaste
what is sporadic nd endemic, epidemic
Aminu Reply
the significance of food webs for disease transmission
Abreham
food webs brings about an infection as an individual depends on number of diseased foods or carriers dully.
Mark
explain assimilatory nitrate reduction
Esinniobiwa Reply
Assimilatory nitrate reduction is a process that occurs in some microorganisms, such as bacteria and archaea, in which nitrate (NO3-) is reduced to nitrite (NO2-), and then further reduced to ammonia (NH3).
Elkana
This process is called assimilatory nitrate reduction because the nitrogen that is produced is incorporated in the cells of microorganisms where it can be used in the synthesis of amino acids and other nitrogen products
Elkana
Examples of thermophilic organisms
Shu Reply
Give Examples of thermophilic organisms
Shu
advantages of normal Flora to the host
Micheal Reply
Prevent foreign microbes to the host
Abubakar
they provide healthier benefits to their hosts
ayesha
They are friends to host only when Host immune system is strong and become enemies when the host immune system is weakened . very bad relationship!
Mark
what is cell
faisal Reply
cell is the smallest unit of life
Fauziya
cell is the smallest unit of life
Akanni
ok
Innocent
cell is the structural and functional unit of life
Hasan
is the fundamental units of Life
Musa
what are emergency diseases
Micheal Reply
There are nothing like emergency disease but there are some common medical emergency which can occur simultaneously like Bleeding,heart attack,Breathing difficulties,severe pain heart stock.Hope you will get my point .Have a nice day ❣️
_Adnan
define infection ,prevention and control
Innocent
I think infection prevention and control is the avoidance of all things we do that gives out break of infections and promotion of health practices that promote life
Lubega
Heyy Lubega hussein where are u from?
_Adnan
en français
Adama
which site have a normal flora
ESTHER Reply
Many sites of the body have it Skin Nasal cavity Oral cavity Gastro intestinal tract
Safaa
skin
Asiina
skin,Oral,Nasal,GIt
Sadik
How can Commensal can Bacteria change into pathogen?
Sadik
How can Commensal Bacteria change into pathogen?
Sadik
all
Tesfaye
by fussion
Asiina
what are the advantages of normal Flora to the host
Micheal
what are the ways of control and prevention of nosocomial infection in the hospital
Micheal
what is inflammation
Shelly Reply
part of a tissue or an organ being wounded or bruised.
Wilfred
what term is used to name and classify microorganisms?
Micheal Reply
Binomial nomenclature
adeolu
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, The processing programming environment. OpenStax CNX. Feb 26, 2013 Download for free at http://cnx.org/content/col11492/1.5
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'The processing programming environment' conversation and receive update notifications?

Ask