WORKSHOP JAVA 2: RANDOM CIRCLES

I just finished my second Java workshop. Today, I learned how to do loops and also, how to set variables. For practice, we were asked to create a program which generates 10 random circles in random different colours. It was more difficult then what we did before. This time we had to think of different steps and plan ahead but after a while, I was able to write the right code.

Screen Shot 2014-10-09 at 11.33.15

Screen Shot 2014-10-09 at 11.39.11


WORKSHOP JAVA 1: PRACTICING

WORKSHOP JAVA 1

Advertisements

WORKSHOP JAVA 1: PRACTICING

After our first Java Workshop, I did some practicing at home. First, I recreated what we did in the workshop.

Screenshot (15)

Then I played around to see what I would be able to do. So, I ended up creating a rectangle I could draw in. As soon as the mouse leaves the rectangle, it stops drawing circles and once it is clicked, the canvas will clear.

Screenshot (16)

I then added another rectangle, I could draw in. This time I used a smaller rectangle as my “brush”.

Screenshot (19)

But doing that, I ran into a problem. As soon as I would click, both of my rectangle-windows would clear.

Screenshot (21)

So, I tried around a little bit and actually ended up finding a solution. There probably is a better way to do it, but that is what I did:

Screenshot (25)


WORKSHOP JAVA 2: RANDOM CIRCLES

WORKSHOP JAVA 1

WORKSHOP PROCESSING 1

Today, we had our second workshop. After we used Photoshop the last time, we went on and learned something about programming. We started at the very beginning and after we talked about common programming misconceptions, we went over some general vocabulary like IDE or variable.

Then we did our first own little programming using Java and a program called Processing. It was interesting to get to know some basics even though it is probably going to get a lot more difficult.

For now, I will download Processing (http://www.processing.org/) and take a look at the different tutorials the page offers. Also I am going to try to recreate what we did at the workshop.


WORKSHOP JAVA 1: PRACTICING

WORKSHOP JAVA 2: RANDOM CIRCLES