Welcome to %s forums

BrainModular Users Forum

Login Register

HSL Color Selector (user module) graphic version

Discussions about add-ons, announcements
Post Reply
23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 17 Apr 2015, 05:15

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

martignasse
Site Admin
Posts: 611
Location: Lyon, FRANCE
Contact:

Unread post by martignasse » 17 Apr 2015, 09:32

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)
Martin FLEURENT - Usine Developer - SDK maintainer

User avatar
nay-seven
Site Admin
Posts: 5684
Location: rennes France
Contact:

Unread post by nay-seven » 17 Apr 2015, 09:51

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 ?

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 17 Apr 2015, 11:20

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

ceasless
Member
Posts: 330
Contact:

Unread post by ceasless » 17 Apr 2015, 17:39

If you share the code I will also try to compile :)

23fx23
Member
Posts: 2545
Contact:

Unread post by 23fx23 » 17 Apr 2015, 18:01

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

ceasless
Member
Posts: 330
Contact:

Unread post by ceasless » 19 Apr 2015, 21:25

I haven't had a chance to try compiling it yet, but this is now in the Grove as both source and Windows binary :)

Post Reply

Who is online

Users browsing this forum: No registered users and 111 guests