Created
December 11, 2011 13:21
-
-
Save hiroshi/1460594 to your computer and use it in GitHub Desktop.
iOSMoviePlayButton.pjs
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
/* @pjs transparent=true; */ | |
void setup() { | |
//int m = 5.2; // mergin | |
//int s = 80; // size | |
float s = 1; // 1 for retina | |
int w = 28 * s; | |
int h = 16 * s; | |
size(w, h); | |
background(0, 0, 0, 0); | |
// box | |
int color = 255; | |
noStroke(); | |
fill(color); | |
rect(0, 0, w * 0.65, h); | |
// triangle | |
triangle(w - h/2, h/2, w, 0, w, h); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment