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.
After our first Java Workshop, I did some practicing at home. First, I recreated what we did in the workshop.
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.
I then added another rectangle, I could draw in. This time I used a smaller rectangle as my “brush”.
But doing that, I ran into a problem. As soon as I would click, both of my rectangle-windows would clear.
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:
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.