In our previous workshop we were assigned the task of trying to figure out how to split an image into individual pixels and get those pixels to ‘fall’ to the bottom of the canvas. From our previous workshops where we learned how to replicate gravity and also how to affect single pixels. We were given some help in that we were told that the solutions lie in each of the workshops where we had followed along with Paul to learn some more challenging tasks. I didn’t quite manage to complete the task but I gave it my best shot and below I will show how far I got.
Above shows how I was attempting to split the pixels up and make them fall down, instead I found out how to split the pixels apart and make them grow apart from each other when the mouse is pressed.Below is my code with a few comments to explain what each section does.
The other thing I managed to to was get squares to “fall down” after a mouse click. There is a video and a screenshot below.
I think if I had more time I would have been able to work this problem out, but I’ll just have to say close but no cigar (I’ll probably kick myself when I look at the code from the workshops folder on mybu). However this process has helped me with becoming more familiar with more advanced concepts of programming.