Skip to content

Instantly share code, notes, and snippets.

@runemadsen
Created March 12, 2014 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save runemadsen/9497745 to your computer and use it in GitHub Desktop.
Save runemadsen/9497745 to your computer and use it in GitHub Desktop.
import processing.opengl.*;
import processing.pdf.*;
//import geomerative.*;
import toxi.color.*;
import toxi.util.datatypes.*;
void setup()
{
size(640, 360, P3D);
beginRaw(PDF, "ITPlogo01.pdf");
colorMode(HSB, 1, 1, 1);
TColor printBlack = TColor.newHSV(.65, 1, .1);
TColor white = TColor.newHSV(1, 0, 1);
TColor red = TColor.newHSV(1, 1, 1);
pushMatrix();
translate(0, 0, -300);
fill(printBlack.hue(), printBlack.saturation(), printBlack.brightness());
rect(-4000, -4000, 8000, 8000);
popMatrix();
noStroke();
translate(200, 100, 0);
rotateY(radians(50));
fill(white.hue(), white.saturation(), white.brightness());
rect(0, 0, 200, 30);
rect(0, 50, 200, 30);
rect(0, 100, 200, 30);
rotateY(radians(90));
fill(red.hue(), red.saturation(), red.brightness());
rect(0, 0, 200, 30);
rect(0, 50, 200, 30);
rect(0, 100, 200, 30);
endRaw();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment