SlideShare una empresa de Scribd logo
1 de 26
USING PROCESSING FROM
     INTELLIJ IDEA
Start a new intellij project
Name your project
Nothing to do here, just click Next
First time you create a new project in Intellij
          you have to select a JSDK
Click „New“ and select JSDK
Its a bit strange cause there is nothing to select,
                but just click choose
Click Finish
Now add processings core.jar to your project.
         File→Project Structure
Create a new global library
Click „Attach Classes“and choose the path to processing app.
              Note on mac you can navigate inside the .app file
Now write your sketch. Create a new class in your src folder.
                   Right Click on your source folder.
Start writing and enjoy auto complete while typing
Code suggest
Run your sketch
Create the data folder in the root of your project.
Right click on the root folder →New →Directory
Basic sketch skelleton
import processing.core.PApplet;

public class Sketch1 extends PApplet {

    public void setup() {}


 public void draw(){}

}
Wanna have fullscreen mode?
static public void main(String args[]) {

 PApplet.main(new String[] { "--present",
"yourPackageName.yourClassName" });
}
Some differences from processing

color cl = color (255, 0, 0);
becomes
int cl = color (255, 0, 0);

float f = 1.2;
becomes
float f = 1.2f;

mouseMoved(){}, draw(){}, keyPressed(){} etc.
becomes
public mouseMoved(){}, public draw(){},
public keyPressed(){}
Need another library
Download and unzip the library
Choose File→Project Structure
Same way as adding processings core.jar
Using OPENGL
Add opengl.jar, jogl.jar and gluegen-rt.jar like the core.jar

Note, On OSX the libraries are located at:
Processing.app/Contents/Resources/Java/libraries/opengl/library
Copy them to a folder of your choice.
Add
-Djava.library.path=Path/toThe/opengl.jarFile
to the VM Parameters
Got java.lang.OutOfMemoryError: Java heap space
Add
-Xmx1024m
to the VM Parameters

Más contenido relacionado

La actualidad más candente (20)

Storage classes
Storage classesStorage classes
Storage classes
 
functions of C++
functions of C++functions of C++
functions of C++
 
C Programming
C ProgrammingC Programming
C Programming
 
Java- Nested Classes
Java- Nested ClassesJava- Nested Classes
Java- Nested Classes
 
Java final project of scientific calcultor
Java final project of scientific calcultorJava final project of scientific calcultor
Java final project of scientific calcultor
 
Lazy java
Lazy javaLazy java
Lazy java
 
Introduction to Coroutines @ KotlinConf 2017
Introduction to Coroutines @ KotlinConf 2017Introduction to Coroutines @ KotlinConf 2017
Introduction to Coroutines @ KotlinConf 2017
 
PYTHON - EXTRA Chapter GUI - MAULIK BORSANIYA
PYTHON - EXTRA Chapter GUI - MAULIK BORSANIYAPYTHON - EXTRA Chapter GUI - MAULIK BORSANIYA
PYTHON - EXTRA Chapter GUI - MAULIK BORSANIYA
 
Flask – Python
Flask – PythonFlask – Python
Flask – Python
 
Signal
SignalSignal
Signal
 
Storage class in c
Storage class in cStorage class in c
Storage class in c
 
Tail Recursion in data structure
Tail Recursion in data structureTail Recursion in data structure
Tail Recursion in data structure
 
Compiler Case Study - Design Patterns in C#
Compiler Case Study - Design Patterns in C#Compiler Case Study - Design Patterns in C#
Compiler Case Study - Design Patterns in C#
 
C programming language
C programming languageC programming language
C programming language
 
Lecture09 recursion
Lecture09 recursionLecture09 recursion
Lecture09 recursion
 
Constructors and Destructor in C++
Constructors and Destructor in C++Constructors and Destructor in C++
Constructors and Destructor in C++
 
Internationalization
InternationalizationInternationalization
Internationalization
 
Deep dive into Coroutines on JVM @ KotlinConf 2017
Deep dive into Coroutines on JVM @ KotlinConf 2017Deep dive into Coroutines on JVM @ KotlinConf 2017
Deep dive into Coroutines on JVM @ KotlinConf 2017
 
String in java
String in javaString in java
String in java
 
C# String
C# StringC# String
C# String
 

Destacado

An Introduction to Processing
An Introduction to ProcessingAn Introduction to Processing
An Introduction to ProcessingCate Huston
 
Getting Started with IntelliJ IDEA as an Eclipse User
Getting Started with IntelliJ IDEA as an Eclipse UserGetting Started with IntelliJ IDEA as an Eclipse User
Getting Started with IntelliJ IDEA as an Eclipse UserZeroTurnaround
 
Android studio & Git in Windows
Android studio & Git in WindowsAndroid studio & Git in Windows
Android studio & Git in WindowsPin-Lun Huang
 
cf. city flows - A comparative visualization of bike sharing systems
cf. city flows - A comparative visualization of bike sharing systemscf. city flows - A comparative visualization of bike sharing systems
cf. city flows - A comparative visualization of bike sharing systemsTill Nagel
 
Digital Signatures: how it's done in PDF
Digital Signatures: how it's done in PDFDigital Signatures: how it's done in PDF
Digital Signatures: how it's done in PDFiText Group nv
 
Introduction to Android Studio
Introduction to Android StudioIntroduction to Android Studio
Introduction to Android StudioMichael Pan
 
Introduction to Android and Android Studio
Introduction to Android and Android StudioIntroduction to Android and Android Studio
Introduction to Android and Android StudioSuyash Srijan
 

Destacado (9)

An Introduction to Processing
An Introduction to ProcessingAn Introduction to Processing
An Introduction to Processing
 
Install PostgreSQL on CentOS
Install PostgreSQL on CentOSInstall PostgreSQL on CentOS
Install PostgreSQL on CentOS
 
Getting Started with IntelliJ IDEA as an Eclipse User
Getting Started with IntelliJ IDEA as an Eclipse UserGetting Started with IntelliJ IDEA as an Eclipse User
Getting Started with IntelliJ IDEA as an Eclipse User
 
Android studio & Git in Windows
Android studio & Git in WindowsAndroid studio & Git in Windows
Android studio & Git in Windows
 
cf. city flows - A comparative visualization of bike sharing systems
cf. city flows - A comparative visualization of bike sharing systemscf. city flows - A comparative visualization of bike sharing systems
cf. city flows - A comparative visualization of bike sharing systems
 
Digital Signatures: how it's done in PDF
Digital Signatures: how it's done in PDFDigital Signatures: how it's done in PDF
Digital Signatures: how it's done in PDF
 
Introduction to Android Studio
Introduction to Android StudioIntroduction to Android Studio
Introduction to Android Studio
 
Android studio
Android studioAndroid studio
Android studio
 
Introduction to Android and Android Studio
Introduction to Android and Android StudioIntroduction to Android and Android Studio
Introduction to Android and Android Studio
 

Similar a Processing in intellij

Getting started with code composer studio v4 for tms320 f2812
Getting started with code composer studio v4 for tms320 f2812Getting started with code composer studio v4 for tms320 f2812
Getting started with code composer studio v4 for tms320 f2812Pantech ProLabs India Pvt Ltd
 
Hands-On Lab Data Transformation Services - SQL Server
Hands-On Lab Data Transformation Services - SQL ServerHands-On Lab Data Transformation Services - SQL Server
Hands-On Lab Data Transformation Services - SQL ServerSerra Laercio
 
Hadoop Tutorial
Hadoop TutorialHadoop Tutorial
Hadoop Tutorialemedin
 
LISA Qooxdoo Tutorial Handouts
LISA Qooxdoo Tutorial HandoutsLISA Qooxdoo Tutorial Handouts
LISA Qooxdoo Tutorial HandoutsTobias Oetiker
 
Eclipse introduction IDE PRESENTATION
Eclipse introduction IDE PRESENTATIONEclipse introduction IDE PRESENTATION
Eclipse introduction IDE PRESENTATIONAYESHA JAVED
 
Gradle - small introduction
Gradle - small introductionGradle - small introduction
Gradle - small introductionIgor Popov
 
Assign 10 - Creating Projects using Eclipse IDE
Assign 10 -  Creating Projects using Eclipse IDE Assign 10 -  Creating Projects using Eclipse IDE
Assign 10 - Creating Projects using Eclipse IDE Yogesh Deshpande
 
FTD19 - Salesforce DX with "Visual Studio code"
FTD19 - Salesforce DX with "Visual Studio code"FTD19 - Salesforce DX with "Visual Studio code"
FTD19 - Salesforce DX with "Visual Studio code"Thierry TROUIN ☁
 
Compiling With Eclipse
Compiling With EclipseCompiling With Eclipse
Compiling With Eclipsesatriahelmy
 
Introduction to Box2D Physics Engine
Introduction to Box2D Physics EngineIntroduction to Box2D Physics Engine
Introduction to Box2D Physics Enginefirstthumb
 
Understanding ScratchX Extensions with JavaScript
Understanding ScratchX Extensions with JavaScriptUnderstanding ScratchX Extensions with JavaScript
Understanding ScratchX Extensions with JavaScriptDarren Adkinson
 
generate IP CORES
generate IP CORESgenerate IP CORES
generate IP CORESguest296013
 
Supplement J Eclipse
Supplement J EclipseSupplement J Eclipse
Supplement J Eclipsenga
 

Similar a Processing in intellij (20)

Getting started with code composer studio v4 for tms320 f2812
Getting started with code composer studio v4 for tms320 f2812Getting started with code composer studio v4 for tms320 f2812
Getting started with code composer studio v4 for tms320 f2812
 
Hands-On Lab Data Transformation Services - SQL Server
Hands-On Lab Data Transformation Services - SQL ServerHands-On Lab Data Transformation Services - SQL Server
Hands-On Lab Data Transformation Services - SQL Server
 
Akashdeepsinghjandu13
Akashdeepsinghjandu13Akashdeepsinghjandu13
Akashdeepsinghjandu13
 
Hadoop Tutorial
Hadoop TutorialHadoop Tutorial
Hadoop Tutorial
 
Javascript Best Practices
Javascript Best PracticesJavascript Best Practices
Javascript Best Practices
 
LISA Qooxdoo Tutorial Handouts
LISA Qooxdoo Tutorial HandoutsLISA Qooxdoo Tutorial Handouts
LISA Qooxdoo Tutorial Handouts
 
Eclipse introduction IDE PRESENTATION
Eclipse introduction IDE PRESENTATIONEclipse introduction IDE PRESENTATION
Eclipse introduction IDE PRESENTATION
 
Gradle - small introduction
Gradle - small introductionGradle - small introduction
Gradle - small introduction
 
Assemblies
AssembliesAssemblies
Assemblies
 
Assign 10 - Creating Projects using Eclipse IDE
Assign 10 -  Creating Projects using Eclipse IDE Assign 10 -  Creating Projects using Eclipse IDE
Assign 10 - Creating Projects using Eclipse IDE
 
FTD19 - Salesforce DX with "Visual Studio code"
FTD19 - Salesforce DX with "Visual Studio code"FTD19 - Salesforce DX with "Visual Studio code"
FTD19 - Salesforce DX with "Visual Studio code"
 
Compiling With Eclipse
Compiling With EclipseCompiling With Eclipse
Compiling With Eclipse
 
Introduction to Box2D Physics Engine
Introduction to Box2D Physics EngineIntroduction to Box2D Physics Engine
Introduction to Box2D Physics Engine
 
Understanding ScratchX Extensions with JavaScript
Understanding ScratchX Extensions with JavaScriptUnderstanding ScratchX Extensions with JavaScript
Understanding ScratchX Extensions with JavaScript
 
generate IP CORES
generate IP CORESgenerate IP CORES
generate IP CORES
 
Eclipse Vs Netbeans
Eclipse Vs NetbeansEclipse Vs Netbeans
Eclipse Vs Netbeans
 
NDK Introduction
NDK IntroductionNDK Introduction
NDK Introduction
 
Simple build tool
Simple build toolSimple build tool
Simple build tool
 
Supplement J Eclipse
Supplement J EclipseSupplement J Eclipse
Supplement J Eclipse
 
Jdkeclipsevs
JdkeclipsevsJdkeclipsevs
Jdkeclipsevs
 

Processing in intellij

Notas del editor

  1. \n
  2. \n
  3. \n
  4. \n
  5. \n
  6. \n
  7. \n
  8. \n
  9. \n
  10. \n
  11. \n
  12. \n
  13. \n
  14. \n
  15. \n
  16. \n
  17. \n
  18. \n
  19. \n
  20. \n
  21. \n
  22. \n
  23. \n
  24. \n
  25. \n
  26. \n