Wednesday
Processing
Throughout the semester we will be working with the programming language Java. Processing is another programming language - typically seen as a dialect of java or java simplified.
Processing is completely free and built for electronic arts, new media art and visual design. It will serve as a very basic introductory language to explore and experiment in the initial couple of days.
To download processing: https://processing.org/download/

What are we trying to do?
We are going to write the most famout program ever made. The "Hello World" program.
It is a very simple program, that mostly verifies that everything is up and running.
To write a "Hello World" in processing, we are going to enter the following in the text-edit window:
println("Hello World");
To confirm that everything is working - look at the output in the console - it should look like this:

Pair programming
Draw a line that is 100 pixels long
Draw an X using lines like this:

Change the background to white
Answer the question:
Why does this program not work as intended:
Explain: what happens in the code and how can it be fixed?
Insert the following code in the editor:
What happens if you double the amount in the: first, second & third parameter?
Draw a 3 dimensional cube like this:

Draw a complex figure - you can use any shape, line and color.
Examples:



First Project
We are going to build a very simple version of the classic program MS. Paint
Insert the following code
Make your best effort to translate the code into a description in english / danish
Change the background to another color
Change the stroke to another color
Write your name
Screenshot your result and hand-in here:
https://kea-fronter.itslearning.com/LearningToolElement/ViewLearningToolElement.aspx?LearningToolElementId=914731
FAQ - Common methods
Background:
https://processing.org/reference/background_.html
Line:
https://processing.org/reference/line_.html
Shapes: https://processing.org/examples/shapeprimitives.html
Triangle
https://processing.org/reference/triangle_.html
Rectangle
https://processing.org/reference/rect_.html
Quadrilateral
https://processing.org/reference/quad_.html
Ellipse
https://processing.org/reference/ellipse_.html
Arc
https://processing.org/reference/arc_.html
Stroke
https://processing.org/reference/stroke_.html
Last updated
Was this helpful?