Public Voice Network
- What are you listening to… 47024702
- Beeeees! 1212
- Minimum rate? 33
- Aging = Scary 88
- FACE EATER 1313
- alternatives to chrome?? 99
- blog 5626556265
- Chick of the Day 1538315383
- Outfit of the Day 33
- Coda 2 3636
- Show your latest Pics 32953295
- Vid of the Day 1203412034
- the gif animation thread 1283512835
- News of the day... 138138
- Battlefield 3 305305
- New York 88
- Pic of the Day 6330263302
- Music over 5.1 System 66
- Random Fascinations? 55
- What is THEIR work? 55
- Meme of the day 1414
- Letterpress process video 33
- Video Cameras Under $2000 77
- ATTN: Greedy Republicans 2323
Ruby-Processing 3939 Responses
Last post: 2 years, 2 months ago | Thread started: Mar 20, 10, 5:29 p.m.
Out of context: Response #6 [Mar 20, 10, 5:29 p.m.]
- stewdio
Ok. If you want to get all psychedelic with your color theory try this update and save it as MyCubes2.rb (or whatever you want to call it, it doesn't matter). And here's a little HSB-related color review while you're at it :
http://en.wikipedia.org/wiki/HSL…. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
class MyCubes < Processing::App
load_library :opengldef setup
size 640, 360, OPENGL
frame_rate 30
@x_degree = 45
@y_degree = 0
@color_hue = 0
color_mode HSB, 360
no_stroke
enddef draw
background_hue = ( @color_hue + 180 ).modulo 360
background background_hue, 360, 360, 360
lights
push_matrixtranslate width / 2, height / 2, 0
rotate_x radians( @x_degree )
rotate_y radians( @y_degree )
fill @color_hue, 360, 360, 320
box 100pop_matrix
@x_degree = ( @x_degree + 1 ).modulo 360
@y_degree = ( @y_degree + 2 ).modulo 360
@color_hue = ( @color_hue + 1 ).modulo 360
endend
MyCubes.new :title => "My COLORFUL Cubes!"

- View thread



