Page 1 of 1

Posted: 17 Apr 2015, 05:15
by 23fx23
Image

As a training for sdk, Ive build a custom graphical HSL color selector ( and also cause im missing it :p)

it allows to selec a color in 2 clics.

1) pick Hue in the 360 hue wheel
2) pick XY sat and lum in center square.

Outputs usine color and text HexValue. if wanna apply in usine color selector.

Nb: couldn't figure how to force initial size of module, so for best results size should be set to 400 to 400.
maybe drop in a contener and save as patch if find interesting to use.
ill try to improve..
ie the hue wheel doesn't really need to be computated and could be replaced by a still jpg in next version.

win32 win64 (couldnt compile mac :/

HSL color selector graphic version

hope some may enjoy. cheerz

Posted: 17 Apr 2015, 09:32
by martignasse
cool :)
i have to test it
23fx23 wrote:Nb: couldn't figure how to force initial size of module, so for best results size should be set to 400 to 400.
in onGetModuleInfo you can set pModuleInfo->DefaultWidth and pModuleInfo->DefaultHeight, is that what you are looking for ?
(i saw that they don't appear in the API docs, i'll make correction today)

Posted: 17 Apr 2015, 09:51
by nay-seven
Great one 23fx,the preview zone is maybe small, of course it's easy to connect an object to have a better preview
hope someone can compile it for Mac , martignasse ?

Posted: 17 Apr 2015, 11:20
by 23fx23
of Martin cool, i missed that indeed i had seen in one exemple cool :)
you 're right nay should make a better preview, will think about it.
don't know if i broke someting or if normal (im on windows) but only had win32 and x64 as compile option in Ms visualstudio (demo, i only have 20days left to make plenty of modules ^^)
i can give the code of course, so martin can see all my beginner mistakes & teach me master tips haha

Posted: 17 Apr 2015, 17:39
by ceasless
If you share the code I will also try to compile :)

Posted: 17 Apr 2015, 18:01
by 23fx23
yup here is a link to latest version src code, in case some manage to compile for mac:

https://drive.google.com/file/d/0B0VUyz ... sp=sharing

Posted: 19 Apr 2015, 21:25
by ceasless
I haven't had a chance to try compiling it yet, but this is now in the Grove as both source and Windows binary :)