/* built with Studio Sketchpad:
* https://sketchpad.cc
*
* observe the evolution of this sketch:
* https://studio.sketchpad.cc/sp/pad/view/ro.3j6tSdMcKVS/rev.1208
*
* authors:
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* Zach Denton
* notmasteryet
* Alec Taylor
*
*
* Florian Jenett
*
*
*
* Alec Taylor
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
* license (unless otherwise specified):
* creative commons attribution-share alike 3.0 license.
* https://creativecommons.org/licenses/by-sa/3.0/
*/
void setup() {
size(500,500);
//frame.setResizable(true);
rectMode(CENTER);
textAlign(CENTER);
smooth();
}
void draw() {
fill(255);
background(200);
diamond(width/2,height/2,PI,height/2);
line(width/4,height/4,width/1.333,height/1.333);
line(width/4,height/1.333,width/1.333,height/4);
rect(width/2,height/2,width/4,height/4);
fill(0);
text("Centrist",width/2,height/2);
text("Left",width/4,height/2);
text("Libertarian",width/2,height/4);
text("Right",width/1.35869,height/2);
text("Statist (Big Government)",width/2,height/1.33);
pushMatrix();
translate( width/2, height/2 );
rotate(radians(45));
rectMode(CENTER);
noFill();
stroke( 200,0,0 );
rect(0,0,200,200);
text("Economic freedom",0,220);
rotate(radians(90));
text("Personal freedom", 280, 20);
popMatrix();
}
void diamond(int x, int y, float r, float z) {
quad(x- (cos(r)*z), y-(sin(r)*z), x+(sin(r)*z), y-(cos(r)*z), x+(cos(r)*z), y+(sin(r)*z), x-(sin(r)*z), y+(cos(r)*z));
}