Last active
November 14, 2015 14:45
-
-
Save oguzgelal/c6586f159a8697c96218 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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