Skip to content

Instantly share code, notes, and snippets.

@oguzgelal
Last active November 14, 2015 14:45
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 oguzgelal/c6586f159a8697c96218 to your computer and use it in GitHub Desktop.
Save oguzgelal/c6586f159a8697c96218 to your computer and use it in GitHub Desktop.
public void setup() {
// Size of our sketch will be 800x600,
// and use the P2D rendering engine.
size(800, 600, P2D);
// We could have used this function instead of size()
// fullScreen(P2D);
// The background color of our sketch will be black
// by default, unless specified otherwise
background(0);
// We could have used this to set a background image.
// Note that size of our sketch should be the same as the image.
// background(loadImage("test.jpg"));
// Shapes and objects will be filled with red by default,
// unless specified otherwise.
fill(255,0,0);
// Shaped and objects will have a white border by default,
// unless specified otherwise.
stroke(255);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment