Posts in category Processing
Functions
Processing has several functions like ellipse(), rect(), and fill() Those functions are provided by the makers of Processing to make our life easier when drawing and coloring shapes. We can also make our own functions! Functions are great for making reusable code. If we perform the same task over and over again, we can simply […]
For Loops
For loops do the exact same thing as while loops except they are formatted differently. Just like while loops, we use for loops to make the boring, repetitive tasks of programming a lot easier. Some programmers like for loops better than while loops because they are more readable, while other programmers like while loops better […]
Moving Shapes
There are two special functions offered by Processing that will help us make moving objects: setup() and draw(). setup() function The setup function is only called once, right when your program first starts. We use the setup function to set the size of the display window and to load any images we may use in […]
Basic Math
Addition, subtraction, multiplication and division are some of the most basic tasks you will perform as a programmer. In fact, doing math is so common in programming that shortcuts have been developed to represent certain mathematical operations. Operator Description Example + addition 5 + 3 – subtraction 4 – 3 * multiplication 8 * 2 […]