Introduction to COmputer Science

What is Processing: 

Processing is an object oriented PROGRAMMING LANGUAGE USED BY ARTIST AND FOLKS WHO LIKE TO VISUALIZE DATA. It was developed by Casey Reas and Ben Fry

What do I mean when I say object oriented programming. Well, THAT MEANS PROCESSING, LIKE OTHER Programming LANGUAGES (JAVA AND PYTHON -- to name two), will FOLLOW A CERTAIN SYNTAX, FUNCTIONS, METHODS AND RULES. 

It would be like saying latin languages are different from germanic and Pictographic.

Before we get started on learning Processing, You will need a copy of an editor. Every program is written in an editor unless it is written on command line. 

HERE IS A LINK TO DOWNLOAD PROCESSING: 

https://processing.org/

YOU WILL NOTICE THAT PROCESSING IS RUN BY A NICE NON-PROFIT GROUP. THE CREATORS OF PROCESSING ARE ACTIVE IN THE OPEN SOUCE COMMUNITY AND BELIEVE THAT THERE IS A NEED TO VESTED INTEREST IN CREATIVE TECHNOLOGY THAT ALL PEOPLE CAN ACCESS WITHOUT THE LIMITATION OF A LARGE COST OF ENTRY. IN FACT, THERE IS NO REAL COST. 


Drawing SHAPES

POINT(x, y)

LINE(x1, y1, x2, y2)

QUAD(x1, y1, x2, y2, x3, y3)

RECT(x, y, width, height)

ELLIPSE(x, y, width, height)

ARC(x, y, width, height, start, stop)

 

Creating an Order to your shapes

Each shape is drawn in the order they are written in the code. 

Example; 

Rectangle is above the ellipse

size(500, 500); 

ellipse(200, 200, 150, 150)

rect(250, 50, 350, 40)

 

Rectangle is below the ellipse

size(500, 500); 

rect(250, 50, 350, 40)

ellipse(200, 200, 150, 150)