Skip to content

Instantly share code, notes, and snippets.

@beomkm
Last active October 18, 2017 15:20
Show Gist options
  • Save beomkm/ea27d53ad933af003ddf4a95cc418cc2 to your computer and use it in GitHub Desktop.
Save beomkm/ea27d53ad933af003ddf4a95cc418cc2 to your computer and use it in GitHub Desktop.
basic processing code
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