Created
March 12, 2014 00:00
-
-
Save runemadsen/9497745 to your computer and use it in GitHub Desktop.
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
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