Last active
October 18, 2017 15:20
-
-
Save beomkm/ea27d53ad933af003ddf4a95cc418cc2 to your computer and use it in GitHub Desktop.
basic processing code
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
void setup() | |
{ | |
size(400, 300); //window size | |
} | |
void draw() | |
{ | |
background(255, 255, 255); //clear the window with background color (Red, Green, Blue) | |
strokeWeight(4); // the thickness of line | |
line(100, 100, 200, 200); // draw line from (100, 100) to (200, 200) | |
fill(255, 0, 0); // the color of the object | |
textSize(20); // the size of text | |
int data = 99; | |
text(data, 20, 200); // draw text | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment