Hi!

In my computer graphics class, we learned the basics of programming with JavaScript coding through various exercises done on Processing. Here is what I have done. 
1. 

The first exercise consists of creating lines of random color, length, thickness and position that are superimposed at a given time interval on a green background. 
As soon as the space bar is pressed, the plane is "cleaned", or reset. 
2. 

The second exercise consists in creating brushes from images clipped on photoshop.
Each image, of different size, is associated with a key on the keyboard that will activate it. Pressing the "a" key activates the first image and pressing the "z" key activates the second. If there is no pressure on the keys, no drawing will be done.
I then added a feature that saves the created design as a PNG file as soon as you press the space bar.
The file is then saved under the name I asked "clay + 1". 
The first record is then named "clay1.PNG", the second "clay2.PNG", the third "clay3.PNG", etc.
3.
The last exercise is to create random sentences. 
In the coding, I list a long series of incomplete sentences. I choose a background color, typography, and the space the text takes up in the space. Then thanks to the coding, the program randomly associates 3 incomplete sentences present in the list and makes a single sentence, which does not make much sense.
(They are written in French, my mother tongue).
Thank you for watching, hope you liked it! 
Let me know what you think about it.
Programming
Published: