My Works & learnings

Circle API

Circle accepts three parmeter , the first two parameters are x coordinate and y coordiante and the last one is diameter.

circle(20,20,90);

rectMode

This will change the way the API behave. The API will dicate how the other APIS behave. It can take parameters as CORNERS or CENTER. CORNERS will make the rect to accepts parameters with x1,y1,x2,y2 coordinates.This API is used in createCanvas method.

rectMode(CENTER)


Vishnu Sandhireddy

Written by Vishnu Sandhireddy who lives and works in Hyderabad, India. twitter

satta king 786