Skip to content

Instantly share code, notes, and snippets.

@chrisallick
Created October 2, 2015 15:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chrisallick/2065f85c0d8bc7214a68 to your computer and use it in GitHub Desktop.
Save chrisallick/2065f85c0d8bc7214a68 to your computer and use it in GitHub Desktop.
function setup() {
createCanvas(640, 480);
// use anti-aliasing
smooth();
// no stroke on my shapes
noStroke();
/*
use upper left corner
not the center
*/
ellipseMode( CORNER );
// just run the draw cycle 1 time :)
//noLoop();
}
function draw() {
background( 0, 255, 0 );
rect( 10, 10, 10, 10 );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment