Graf Komp.
&
Pengolahan Citra
Disusun oleh :
Aisyah Ayuyanti (10108145)
Herawati (10108959)
Karina Almisaning Dyah (11108099)
Sulimah (11108883)
Kelas : 3 KA 14 Dosen : I Made Wiryana, DR
PROCESING ???
✔
Integrated Language Programing , Development
Environment, teaching methodology.
✔
Software sketchbook
✔
Open Source
✔
Multi Platform (GNU/Linux, Mac OS X, Windows)
Universitas Gunadarma
How to Use “Processing”
Download
Software Install Processing
http://processing.org/download/
Extract File .zip atau .rar
Java
Install JDK
Processing.exe
Run Program
Universitas Gunadarma
Processing Development Environment (PDE)
consist of :
●
Text Editor
●
Message Area
●
Console
●
Tabs
●
Display Window
Universitas Gunadarma
PROCESSING DEVELOPMENT ENVIRONMENT (PDE)
(Cont.)
Menu
Toolbars
Tab
Text Editor
Display window Message Area
Console
Universitas Gunadarma
PROCESSING DEVELOPMENT ENVIRONMENT (PDE)
(Cont.)
●
Toolbar
Run Open
Stop Save
New Export
Universitas Gunadarma
PROCESSING DEVELOPMENT ENVIRONMENT (PDE)
(Cont.)
File's Menu :
Universitas Gunadarma
PROCESSING DEVELOPMENT ENVIRONMENT (PDE)
(Cont.)
Edit's Menu :
•
U
n
d
o
(
C
t
r
l
+
Z
)
•
R
e
•
S
d e
o l
e
( c
C t
t
r A
Universitas Gunadarma
l l
l
PROCESSING DEVELOPMENT ENVIRONMENT (PDE)
(Cont.)
Sketch's Menu :
Universitas Gunadarma
PROCESSING DEVELOPMENT ENVIRONMENT (PDE)
(Cont.)
Tools's Menu :
Universitas Gunadarma
PROCESSING DEVELOPMENT ENVIRONMENT (PDE)
(Cont.)
Help's Menu :
Universitas Gunadarma
Language Structure “Processing”
Divided into 3 Complexity Level :
➢
Static Mode
➢
Active Mode
➢
Java Mode
Universitas Gunadarma
Static Mode
Static mode is used to create static images
Recommended for Beginners
Example :
size (200,200);
background (255);
noStroke ();
fill (255,100,100);
rect (30,20,50,50);
Universitas Gunadarma
Active Mode
Sructure of writing program code is more structured and neat
Active Mode provides the setup () optional
will run when the program starts running.
Example :
void setup (){
size(200,200);
background(255);
noStroke();
fill(255,100,100);}
void draw(){
background(255);
rect(width-mouseX,height-mouseY,50,50);
rect(mouseX,mouseY,50,50);
}
Universitas Gunadarma
Java Mode
● Intended for advanced Java programmer.
● Examples of programs that are integrated with Netbeans
package letsp5;
import processing.core.*;
public class Main extends PApplet{
public Main(){
}
public static void main(String[] args) {
PApplet.main(new String[] {"letsp5.Main"});
}
public void setup(){
// Set the size of the window
size(200,200);
}
public void draw(){
background(255);
// Body
stroke(0);
fill(175);
rectMode(CENTER);
rect(mouseX,mouseY,50,50);
}
}
Universitas Gunadarma
Universitas Gunadarma