Coding Flags

The first exercise of Int Programming was to make 8 flags by using Processing ( http://processing.org/).

The whole exercise revolved around how to make shapes (rectangle, circle – ellipse & various polygon) with the right color, size and putting it at the correct location of our canvas. So that in the end we have a flags drawn by the computer using processing to type the instruction.

Below are the few basic instruction that we used, of cause you can find about it more form processing library. (http://processing.org/reference/)

size(width, height);—————————–the size of your canvas
fill(red value, green value2, blue value3,);——–the color of the object
rect(x, y, width, height);———————– draw a rectangle
ellipse(x, y, width, height);———————-draw an ellipse or circle

Bahrain

Catalonia

Greece

Guyana

Iceland

Kuwait

Maldive

Bahams

This entry was posted in Exercises, Furqan Habib, Int Programming. Bookmark the permalink. Comments are closed, but you can leave a trackback: Trackback URL.