SlideShare a Scribd company logo
Fun Approach to Learning
Creative Computer Programming
Oleh: Ismail Adha Kesuma, S.Kom
 Processing adalah bahasa pemrograman dan
lingkungan untuk pemrograman (development
environment) yang bersifat open source untuk
memprogram gambar, animasi, dan suara.
(www.processing.org)
ismailadha@rocketmail.com
 It is especially good for someone studying or working
in a visual field, such as graphic design, painting,
sculpture, architecture, film, video, illustration, web
design, and so on.
 The language has been used to create various data
visualization and installation art pieces
 But most often you just see people playing with it
 creating complex and beautiful pictures and
animations.
ismailadha@rocketmail.com
 The Processing software runs on the Mac, Windows, and
GNU/Linux platforms.
 With the click of a button, it exports applets for the Web or
standalone applications for Mac, Windows, and
GNU/Linux.
 Graphics from Processing programs may also be exported
as PDF, DXF, or TIFF files and many other file formats.
 Future Processing releases will focus on faster 3D graphics,
better video playback and capture, and enhancing the
development environment.
 Some experimental versions of Processing have been
adapted to other languages such as JavaScript,
ActionScript, Ruby, Python, and Scala; other adaptations
bring Processing to platforms like the OpenMoko, iPhone,
and OLPC XO-1.
ismailadha@rocketmail.com
 Multi-platform: Any program runs on Windows, Mac OS,
or Linux.
 Secure: Allows high-level cryptography for the exchange of
important private information.
 Network-centric: Applications can be built around the
internet protocols.
 Dynamic: Allows dynamic memory allocation and
memory garbage collection.
 International: Supports international characters.
 Performance: Provides high performance with just-in-
time compiles and optimizers.
 Simplicity: Processing is easier to learn than other
languages such as a C, C++, or even Java.
ismailadha@rocketmail.com
 In 1967, the Logo programming language was developed by
Daniel G. Bobrow, Wally Feurzeig, and Seymour Papert.
 With Logo, a programmer writes instructions to direct a turtle
around the screen, producing shapes and designs.
 John Maeda’s Design By Numbers (1999) introduced
computation to visual designers and artists with a simple, easy to
use syntax.
 While both of these languages are wonderful for their simplicity
and innovation, their capabilities are limited.
 Processing, a direct descendent of Logo and Design by Numbers ,
was born in 2001 in the “ Aesthetics and Computation ” research
group at the Massachusetts Institute of Technology Media Lab.
 It is an open source initiative by Casey Reas and Benjamin Fry,
who developed Processing as graduate students studying with
John Maeda.
ismailadha@rocketmail.com
 Casey and Ben began developing Processing in the fall of 2001,
releasing early alpha versions of the software soon after.
 In April 2005, they released the beta version for Processing 1.0 &
over 125,000 people have had downloaded the Processing
software.
 Many leading universities around the world have begun
including Processing in their digital arts curriculum, including
- Parsons School of Design
- Bandung Institute of Technology, Indonesia
- Helsinki University
- Royal Danish Academy of Fine Arts, Copenhagen
- School of the Art Institute of Chicago
- University of Washington
- Elisava School of Design, Barcelona
- (and many, many others).
ismailadha@rocketmail.com
 Tens of thousands of companies, artists, designers, architects,
and researchers use Processing to create an incredibly diverse
range of projects.
 Design firms such as Motion Theory provide motion graphics
created with Processing for the TV commercials of companies
like Nike, Budweiser, and Hewlett-Packard.
 Bands such as R.E.M., Radiohead, and Modest Mouse have
featured animation created with Processing in their music
videos.
 The University of Washington's Applied Physics Lab used
Processing to create a visualization of a coastal marine
ecosystem as a part of the NSF RISE project.
 The Armstrong Institute for Interactive Media Studies at
Miami University uses Processing to build visualization tools
and analyze text for digital humanities research.
ismailadha@rocketmail.com
 Tool Processing bisa didownload di:
http://processing.org/download/
(for windows 59,6 Mb)
- Format filenya berekstensi *.zip
 Extract file program (boleh di-extract di direktori
mana pun).
 Karena program ini dibangun dengan bahasa Java,
maka sebelumnya user sudah meng-install Java
Development Kit (JDK). Disarankan untuk
menggunakan JDK versi 6 ke atas.
 Untuk memulai, jalankan file processing.exe
ismailadha@rocketmail.com
Menu
Toolbar
Tabs
Text Editor
Message Area
Text Area
Untuk
keterangan lebih
jelas, user bisa
mempelajari
beberapa
kegunaan PDE
seperti menu
File, Edit,
Sketch,Tools, dan
Help.
Pada menu:
Help ->
Environtment
ismailadha@rocketmail.com
 Dalam Processing struktur program dapat
dibuat dalam tiga tingkat kompleksitas:
- Mode Statik.
- Mode Aktif.
- Mode Java.
ismailadha@rocketmail.com
 Mode Statik digunakan untuk membuat gambar
statik.
 Contoh berikut menggambar sebuah segi empat
kuning di layar.
size(200, 200);
background(255);
noStroke();
fill(255, 204, 0);
rect(30, 20, 50, 50);
ismailadha@rocketmail.com
 Mode Aktif menyediakan bagian setup() opsional yang
akan berjalan ketika program mulai berjalan.
 Bagian draw() akan berjalan selamanya sampai
progam dihentikan.
 Contohnya menggambar segi empat yang mengikuti
posisi mouse (disimpan dalam variabel mouseX dan
mouseY).
ismailadha@rocketmail.com
• Contoh segi empat yang mengikuti posisi mouse
void setup() {
size(200, 200);
rectMode(CENTER);
noStroke();
fill(255, 204, 0);
}
void draw(){
background(255);
rect(width-mouseX, height-mouseY, 50, 50);
rect(mouseX, mouseY, 50, 50);
}
ismailadha@rocketmail.com
 Mode ini memungkinkan menulis program Java secara
lengkap.
 Salah satu caranya adalah dengan mengimport
Processing library (lokasinya: Processing-
1.1libcore.jar) ke dalam tool program Java itu sendiri.
Misalnya bisa menggunakan tool NetBeans.
 Misalkan ingin juga mengintegrasikan dengan
OpenGL library, user juga dimungkinkan untuk meng-
import-nya ke dalam tool program Java tersebut.
Lokasinya:
- Processing-1.1librariesopengllibraryopengl.jar
dan
- Processing-1.1librariesopengllibraryjogl.jar
ismailadha@rocketmail.com
Contoh program yang diintegrasikan dengan 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);
}
} ismailadha@rocketmail.com
 Untuk mode statik sangat direkomendasikan bagi
pemula.
 Untuk mode aktif, dianjurkan agar struktur penulisan
kode program lebih terstruktur dan rapi.
 Untuk mode Java, diperuntukkan bagi Java advance
programmer.
ismailadha@rocketmail.com
 User bisa mempelajari perintah-perintah bahasa
Processing secara lengkap pada menu:
Help -> Reference
 Atau bisa membaca buku-buku berikut ini:
- “Learning Processing - A Beginner’s Guide to
Programming Images, Animation, and Interaction” by
Daniel Shiffman.
- “Processing - A Programming Handbook for Visual
Designers and Artists” by Casey Reas & Ben Fry.
- “Algorithms for Visual Design Using the Processing
Language” by Kostas Terzidis.
- “Processing Creative Coding and Computational Art” by
Ira Greenberg.
ismailadha@rocketmail.com
 Dapat mengaplikasikan dasar-dasar teori komputasi
grafis dengan cepat dan mudah tanpa harus
mempelajari bahasa pemrograman dari awal.
 Bisa diterapkan untuk Pengolahan Citra Digital.
 Bisa dijadikan sebagai alat percobaan, dasar
pemodelan, dan sketsa grafis sebelum
diimplementasikan ke dalam project sebenarnya.
 Dapat meningkatkan skill komputasi grafis.
 Bisa diintegrasikan dengan pemrograman Java.
 Sebagai wadah untuk menyalurkan bakat seni dan
imajinasi.
ismailadha@rocketmail.com
 Kunjungi: http://processing.org/
 Forum umum & daftar koleksi hasil karya dari
beberapa Universitas di dunia:
http://www.openprocessing.org/collections/
ismailadha@rocketmail.com

More Related Content

Similar to Processing Language

Enhancing student engagement with open source software
Enhancing student engagement with open source softwareEnhancing student engagement with open source software
Enhancing student engagement with open source software
James Richardson
 
Some wonderful Linux softwares for daily use
Some wonderful Linux softwares for daily useSome wonderful Linux softwares for daily use
Some wonderful Linux softwares for daily use
arun.arwachin
 
Ide benchmarking
Ide benchmarkingIde benchmarking
Ide benchmarking
Mallikarjuna G D
 
Sumbited by heena saini
Sumbited by heena sainiSumbited by heena saini
Sumbited by heena saini
Saini Heena
 
Java
JavaJava
PPT Companion to Android
PPT Companion to AndroidPPT Companion to Android
PPT Companion to Android
Dharani Kumar Madduri
 
Opensource gis development - part 1
Opensource gis development - part 1Opensource gis development - part 1
Opensource gis development - part 1
Andrea Antonello
 
Java presentation
Java presentationJava presentation
Java presentation
Karan Sareen
 
Java Basic.pdf
Java Basic.pdfJava Basic.pdf
Java Basic.pdf
TechSearchWeb
 
Software Alternatives to What We Use
Software Alternatives to What We UseSoftware Alternatives to What We Use
Software Alternatives to What We Use
vtstc
 
Java application-development
Java application-developmentJava application-development
Java application-development
Deepika Chaudhary
 
Open Source Design - FSOSS 2008
Open Source Design - FSOSS 2008Open Source Design - FSOSS 2008
Open Source Design - FSOSS 2008
Brendan Sera-Shriar
 
Java Is A Programming Dialect And Registering Stage Essay
Java Is A Programming Dialect And Registering Stage EssayJava Is A Programming Dialect And Registering Stage Essay
Java Is A Programming Dialect And Registering Stage Essay
Liz Sims
 
History Of C Essay
History Of C EssayHistory Of C Essay
History Of C Essay
Melissa Williams
 
OBJECT ORIENTED ROGRAMMING With Question And Answer Full
OBJECT ORIENTED ROGRAMMING With Question And Answer  FullOBJECT ORIENTED ROGRAMMING With Question And Answer  Full
OBJECT ORIENTED ROGRAMMING With Question And Answer Full
Manas Rai
 
Java
JavaJava
Presentation of programming languages for beginners
Presentation of programming languages for beginnersPresentation of programming languages for beginners
Presentation of programming languages for beginners
Clement Levallois
 
Introduction to r
Introduction to rIntroduction to r
Introduction to r
gslicraf
 
EricLong_Resume_Public
EricLong_Resume_PublicEricLong_Resume_Public
EricLong_Resume_Public
Eric Long
 
Ten compelling reasons to learn .net framework
Ten compelling reasons to learn .net frameworkTen compelling reasons to learn .net framework
Ten compelling reasons to learn .net framework
JanBask Training
 

Similar to Processing Language (20)

Enhancing student engagement with open source software
Enhancing student engagement with open source softwareEnhancing student engagement with open source software
Enhancing student engagement with open source software
 
Some wonderful Linux softwares for daily use
Some wonderful Linux softwares for daily useSome wonderful Linux softwares for daily use
Some wonderful Linux softwares for daily use
 
Ide benchmarking
Ide benchmarkingIde benchmarking
Ide benchmarking
 
Sumbited by heena saini
Sumbited by heena sainiSumbited by heena saini
Sumbited by heena saini
 
Java
JavaJava
Java
 
PPT Companion to Android
PPT Companion to AndroidPPT Companion to Android
PPT Companion to Android
 
Opensource gis development - part 1
Opensource gis development - part 1Opensource gis development - part 1
Opensource gis development - part 1
 
Java presentation
Java presentationJava presentation
Java presentation
 
Java Basic.pdf
Java Basic.pdfJava Basic.pdf
Java Basic.pdf
 
Software Alternatives to What We Use
Software Alternatives to What We UseSoftware Alternatives to What We Use
Software Alternatives to What We Use
 
Java application-development
Java application-developmentJava application-development
Java application-development
 
Open Source Design - FSOSS 2008
Open Source Design - FSOSS 2008Open Source Design - FSOSS 2008
Open Source Design - FSOSS 2008
 
Java Is A Programming Dialect And Registering Stage Essay
Java Is A Programming Dialect And Registering Stage EssayJava Is A Programming Dialect And Registering Stage Essay
Java Is A Programming Dialect And Registering Stage Essay
 
History Of C Essay
History Of C EssayHistory Of C Essay
History Of C Essay
 
OBJECT ORIENTED ROGRAMMING With Question And Answer Full
OBJECT ORIENTED ROGRAMMING With Question And Answer  FullOBJECT ORIENTED ROGRAMMING With Question And Answer  Full
OBJECT ORIENTED ROGRAMMING With Question And Answer Full
 
Java
JavaJava
Java
 
Presentation of programming languages for beginners
Presentation of programming languages for beginnersPresentation of programming languages for beginners
Presentation of programming languages for beginners
 
Introduction to r
Introduction to rIntroduction to r
Introduction to r
 
EricLong_Resume_Public
EricLong_Resume_PublicEricLong_Resume_Public
EricLong_Resume_Public
 
Ten compelling reasons to learn .net framework
Ten compelling reasons to learn .net frameworkTen compelling reasons to learn .net framework
Ten compelling reasons to learn .net framework
 

Recently uploaded

Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Henry Hollis
 
220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx
Kalna College
 
Skimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S EliotSkimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S Eliot
nitinpv4ai
 
A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptxA Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
OH TEIK BIN
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
zuzanka
 
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
Nguyen Thanh Tu Collection
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
David Douglas School District
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
PsychoTech Services
 
Contiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptxContiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptx
Kalna College
 
How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17
Celine George
 
MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025
khuleseema60
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
nitinpv4ai
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
deepaannamalai16
 
Observational Learning
Observational Learning Observational Learning
Observational Learning
sanamushtaq922
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
Jyoti Chand
 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
indexPub
 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
TechSoup
 
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapitolTechU
 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
heathfieldcps1
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
Krassimira Luka
 

Recently uploaded (20)

Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.pptLevel 3 NCEA - NZ: A  Nation In the Making 1872 - 1900 SML.ppt
Level 3 NCEA - NZ: A Nation In the Making 1872 - 1900 SML.ppt
 
220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx220711130088 Sumi Basak Virtual University EPC 3.pptx
220711130088 Sumi Basak Virtual University EPC 3.pptx
 
Skimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S EliotSkimbleshanks-The-Railway-Cat by T S Eliot
Skimbleshanks-The-Railway-Cat by T S Eliot
 
A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptxA Free 200-Page eBook ~ Brain and Mind Exercise.pptx
A Free 200-Page eBook ~ Brain and Mind Exercise.pptx
 
SWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptxSWOT analysis in the project Keeping the Memory @live.pptx
SWOT analysis in the project Keeping the Memory @live.pptx
 
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
CHUYÊN ĐỀ ÔN TẬP VÀ PHÁT TRIỂN CÂU HỎI TRONG ĐỀ MINH HỌA THI TỐT NGHIỆP THPT ...
 
Juneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School DistrictJuneteenth Freedom Day 2024 David Douglas School District
Juneteenth Freedom Day 2024 David Douglas School District
 
Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...Gender and Mental Health - Counselling and Family Therapy Applications and In...
Gender and Mental Health - Counselling and Family Therapy Applications and In...
 
Contiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptxContiguity Of Various Message Forms - Rupam Chandra.pptx
Contiguity Of Various Message Forms - Rupam Chandra.pptx
 
How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17How to Manage Reception Report in Odoo 17
How to Manage Reception Report in Odoo 17
 
MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025MDP on air pollution of class 8 year 2024-2025
MDP on air pollution of class 8 year 2024-2025
 
Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10Haunted Houses by H W Longfellow for class 10
Haunted Houses by H W Longfellow for class 10
 
Standardized tool for Intelligence test.
Standardized tool for Intelligence test.Standardized tool for Intelligence test.
Standardized tool for Intelligence test.
 
Observational Learning
Observational Learning Observational Learning
Observational Learning
 
Wound healing PPT
Wound healing PPTWound healing PPT
Wound healing PPT
 
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
THE SACRIFICE HOW PRO-PALESTINE PROTESTS STUDENTS ARE SACRIFICING TO CHANGE T...
 
Accounting for Restricted Grants When and How To Record Properly
Accounting for Restricted Grants  When and How To Record ProperlyAccounting for Restricted Grants  When and How To Record Properly
Accounting for Restricted Grants When and How To Record Properly
 
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptxCapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
CapTechTalks Webinar Slides June 2024 Donovan Wright.pptx
 
The basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptxThe basics of sentences session 7pptx.pptx
The basics of sentences session 7pptx.pptx
 
Temple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation resultsTemple of Asclepius in Thrace. Excavation results
Temple of Asclepius in Thrace. Excavation results
 

Processing Language

  • 1. Fun Approach to Learning Creative Computer Programming Oleh: Ismail Adha Kesuma, S.Kom
  • 2.  Processing adalah bahasa pemrograman dan lingkungan untuk pemrograman (development environment) yang bersifat open source untuk memprogram gambar, animasi, dan suara. (www.processing.org) ismailadha@rocketmail.com
  • 3.  It is especially good for someone studying or working in a visual field, such as graphic design, painting, sculpture, architecture, film, video, illustration, web design, and so on.  The language has been used to create various data visualization and installation art pieces  But most often you just see people playing with it  creating complex and beautiful pictures and animations. ismailadha@rocketmail.com
  • 4.  The Processing software runs on the Mac, Windows, and GNU/Linux platforms.  With the click of a button, it exports applets for the Web or standalone applications for Mac, Windows, and GNU/Linux.  Graphics from Processing programs may also be exported as PDF, DXF, or TIFF files and many other file formats.  Future Processing releases will focus on faster 3D graphics, better video playback and capture, and enhancing the development environment.  Some experimental versions of Processing have been adapted to other languages such as JavaScript, ActionScript, Ruby, Python, and Scala; other adaptations bring Processing to platforms like the OpenMoko, iPhone, and OLPC XO-1. ismailadha@rocketmail.com
  • 5.  Multi-platform: Any program runs on Windows, Mac OS, or Linux.  Secure: Allows high-level cryptography for the exchange of important private information.  Network-centric: Applications can be built around the internet protocols.  Dynamic: Allows dynamic memory allocation and memory garbage collection.  International: Supports international characters.  Performance: Provides high performance with just-in- time compiles and optimizers.  Simplicity: Processing is easier to learn than other languages such as a C, C++, or even Java. ismailadha@rocketmail.com
  • 6.  In 1967, the Logo programming language was developed by Daniel G. Bobrow, Wally Feurzeig, and Seymour Papert.  With Logo, a programmer writes instructions to direct a turtle around the screen, producing shapes and designs.  John Maeda’s Design By Numbers (1999) introduced computation to visual designers and artists with a simple, easy to use syntax.  While both of these languages are wonderful for their simplicity and innovation, their capabilities are limited.  Processing, a direct descendent of Logo and Design by Numbers , was born in 2001 in the “ Aesthetics and Computation ” research group at the Massachusetts Institute of Technology Media Lab.  It is an open source initiative by Casey Reas and Benjamin Fry, who developed Processing as graduate students studying with John Maeda. ismailadha@rocketmail.com
  • 7.  Casey and Ben began developing Processing in the fall of 2001, releasing early alpha versions of the software soon after.  In April 2005, they released the beta version for Processing 1.0 & over 125,000 people have had downloaded the Processing software.  Many leading universities around the world have begun including Processing in their digital arts curriculum, including - Parsons School of Design - Bandung Institute of Technology, Indonesia - Helsinki University - Royal Danish Academy of Fine Arts, Copenhagen - School of the Art Institute of Chicago - University of Washington - Elisava School of Design, Barcelona - (and many, many others). ismailadha@rocketmail.com
  • 8.  Tens of thousands of companies, artists, designers, architects, and researchers use Processing to create an incredibly diverse range of projects.  Design firms such as Motion Theory provide motion graphics created with Processing for the TV commercials of companies like Nike, Budweiser, and Hewlett-Packard.  Bands such as R.E.M., Radiohead, and Modest Mouse have featured animation created with Processing in their music videos.  The University of Washington's Applied Physics Lab used Processing to create a visualization of a coastal marine ecosystem as a part of the NSF RISE project.  The Armstrong Institute for Interactive Media Studies at Miami University uses Processing to build visualization tools and analyze text for digital humanities research. ismailadha@rocketmail.com
  • 9.  Tool Processing bisa didownload di: http://processing.org/download/ (for windows 59,6 Mb) - Format filenya berekstensi *.zip  Extract file program (boleh di-extract di direktori mana pun).  Karena program ini dibangun dengan bahasa Java, maka sebelumnya user sudah meng-install Java Development Kit (JDK). Disarankan untuk menggunakan JDK versi 6 ke atas.  Untuk memulai, jalankan file processing.exe ismailadha@rocketmail.com
  • 10. Menu Toolbar Tabs Text Editor Message Area Text Area Untuk keterangan lebih jelas, user bisa mempelajari beberapa kegunaan PDE seperti menu File, Edit, Sketch,Tools, dan Help. Pada menu: Help -> Environtment ismailadha@rocketmail.com
  • 11.  Dalam Processing struktur program dapat dibuat dalam tiga tingkat kompleksitas: - Mode Statik. - Mode Aktif. - Mode Java. ismailadha@rocketmail.com
  • 12.  Mode Statik digunakan untuk membuat gambar statik.  Contoh berikut menggambar sebuah segi empat kuning di layar. size(200, 200); background(255); noStroke(); fill(255, 204, 0); rect(30, 20, 50, 50); ismailadha@rocketmail.com
  • 13.  Mode Aktif menyediakan bagian setup() opsional yang akan berjalan ketika program mulai berjalan.  Bagian draw() akan berjalan selamanya sampai progam dihentikan.  Contohnya menggambar segi empat yang mengikuti posisi mouse (disimpan dalam variabel mouseX dan mouseY). ismailadha@rocketmail.com
  • 14. • Contoh segi empat yang mengikuti posisi mouse void setup() { size(200, 200); rectMode(CENTER); noStroke(); fill(255, 204, 0); } void draw(){ background(255); rect(width-mouseX, height-mouseY, 50, 50); rect(mouseX, mouseY, 50, 50); } ismailadha@rocketmail.com
  • 15.  Mode ini memungkinkan menulis program Java secara lengkap.  Salah satu caranya adalah dengan mengimport Processing library (lokasinya: Processing- 1.1libcore.jar) ke dalam tool program Java itu sendiri. Misalnya bisa menggunakan tool NetBeans.  Misalkan ingin juga mengintegrasikan dengan OpenGL library, user juga dimungkinkan untuk meng- import-nya ke dalam tool program Java tersebut. Lokasinya: - Processing-1.1librariesopengllibraryopengl.jar dan - Processing-1.1librariesopengllibraryjogl.jar ismailadha@rocketmail.com
  • 16. Contoh program yang diintegrasikan dengan 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); } } ismailadha@rocketmail.com
  • 17.  Untuk mode statik sangat direkomendasikan bagi pemula.  Untuk mode aktif, dianjurkan agar struktur penulisan kode program lebih terstruktur dan rapi.  Untuk mode Java, diperuntukkan bagi Java advance programmer. ismailadha@rocketmail.com
  • 18.  User bisa mempelajari perintah-perintah bahasa Processing secara lengkap pada menu: Help -> Reference  Atau bisa membaca buku-buku berikut ini: - “Learning Processing - A Beginner’s Guide to Programming Images, Animation, and Interaction” by Daniel Shiffman. - “Processing - A Programming Handbook for Visual Designers and Artists” by Casey Reas & Ben Fry. - “Algorithms for Visual Design Using the Processing Language” by Kostas Terzidis. - “Processing Creative Coding and Computational Art” by Ira Greenberg. ismailadha@rocketmail.com
  • 19.  Dapat mengaplikasikan dasar-dasar teori komputasi grafis dengan cepat dan mudah tanpa harus mempelajari bahasa pemrograman dari awal.  Bisa diterapkan untuk Pengolahan Citra Digital.  Bisa dijadikan sebagai alat percobaan, dasar pemodelan, dan sketsa grafis sebelum diimplementasikan ke dalam project sebenarnya.  Dapat meningkatkan skill komputasi grafis.  Bisa diintegrasikan dengan pemrograman Java.  Sebagai wadah untuk menyalurkan bakat seni dan imajinasi. ismailadha@rocketmail.com
  • 20.  Kunjungi: http://processing.org/  Forum umum & daftar koleksi hasil karya dari beberapa Universitas di dunia: http://www.openprocessing.org/collections/ ismailadha@rocketmail.com