## Posts by

## 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 […]

## Simple Program

Let’s create a simple program that will swap the values held in two variables called “firstValue” and “secondValue.” As you follow along, it is helpful to think of variables as boxes that can store only one value. These boxes also have photocopiers to make copies of values and shredders to destroy values Step 1 On […]

## Colors

1 In art class if you wanted to create orange paint you would mix together yellow and red paint. Creating colors on a computer is a little bit different, because when computers create colors they mix light, not pigments. RGB: Computers mix 3 colors of light, red, blue, and green, and they can be mixed to […]

## Processing Tutorial – Making Sh...

Circles We use the ellipse() function for circles because an ellipse is a rounded shape like an oval. ellipse(50,50,50,50); coordinate grid ellipse(50,40,35,70); Rectangles rect(10,10,80,80); coordinate grid rect(10,20,80,40); Triangles triangle(10,10,90,50,10,90); coordinate grid triangle(10,10,90,10,50,90); Other Shapes You can create lots of other shapes in Processing, includ- ing arcs, lines, quads (otherwise known as shapes with 4 sides), […]