draw colour wheel CMYK
draw colour wheel CMYK
Out of context: Reply #7
- Started
- Last post
- 11 Responses
- st33d0
For my personal PDF joy I use Processing. (processing.org)
You can use the pdf I've made for you:
http://www.robotacid.com/misc/wh…
Or you can download Processing and modify the code following:
import processing.pdf.*;
void setup(){
size(400, 400);
beginRecord(PDF, "wheel.pdf");
colorMode(HSB, TWO_PI);
for(float theta = 0.0; theta < TWO_PI; theta += 0.01){
//color col = hsv2rgb((360.0 / TWO_PI) * theta, 100, 100);
color col = color(theta, TWO_PI, TWO_PI);
stroke(col);
float x = (width/2) + cos(theta) * 100;
float y = (height/2) + sin(theta) * 100;
line(width/2, height/2, x, y);
}
endRecord();
};)