| Author |
Message |
< extend ~ Color Picker |
|
julapy
|
Posted: Fri Aug 14, 2009 11:44 pm |
|
|
Joined: Mon Jan 19, 2009 7:02 amPosts: 214Location: sydney |
hey ya'll, i needed to have more control over interpolating color values at runtime so i've created a colour picker with a couple interpolation modes. its basically a replica of the colour picker that comes with leopard on the mac.  at the moment, 1) you can click anywhere on the color spectrum and select your color - standard. 2) theres circular color mode - so you can program it to rotate through the color spectrum with adjustable speed and oscillation. 3) also added random walk which randomly traverses the color spectrum. i've used memo's ofxMSAInteractiveObject for UI control. although it can be very easily swapped out if it ever needs to go into another UI library. Attachment: julapy_colorPicker.zip [39.4 KiB]
Downloaded 43 times
L.
|
|
Top
|
|
|
memo
|
Posted: Sat Aug 15, 2009 5:10 pm |
|
|
Joined: Tue May 27, 2008 10:03 amPosts: 691Location: London, UK |
thats awesome! just make it extend ofBaseDraws (so it has a draw(x,y,w,h) and getWidth() and getHeight()) and you can add it to ofxSimpleGuiToo with ui.addContent(...)
|
|
Top
|
|
|
vanderlin
|
Posted: Sat Aug 15, 2009 8:56 pm |
|
|
Joined: Sat Jun 02, 2007 6:39 pmPosts: 231 |
Holy crap I love it - nice work.
|
|
Top
|
|
|
julapy
|
Posted: Sat Sep 12, 2009 3:08 am |
|
|
Joined: Mon Jan 19, 2009 7:02 amPosts: 214Location: sydney |
hey guys, got a new version of the colour picker. the big change after a little reverse engineering is that you now can set the colour through setColor() rather then having to manually select it yourself, so this will allow you to store colour settings for later use. it now extends ofBaseDraws and you can add it to ofxSimpleGuiToo but its screwing up with the rendering... will have to look at that some other time. let me know how you go with it and if there are any problems. Attachment: julapy_colorPicker_02.zip [40.48 KiB]
Downloaded 53 times
peace.
|
|
Top
|
|
|
julapy
|
Posted: Wed Aug 18, 2010 11:30 am |
|
|
Joined: Mon Jan 19, 2009 7:02 amPosts: 214Location: sydney |
new version of ofxColorPicker + example. had to get it working on the iphone so i took the opportunity to give a real good clean. refactored the entire way it draws itself, caching a lot of data to optimise on performance. it now resizes correctly to any width and height you set it to.  Attachment: colorPicker_03.zip [14.9 KiB]
Downloaded 10 times
|
|
Top
|
|
|
|
All times are UTC
Users browsing this forum: No registered users and 2 guests
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum
|
|