Welcome Guest! To enable all features please Login or Register.
Options
Go to last post Go to first unread
scott@scottelford.biz  
#1 Posted : Friday, June 02, 2017 3:56:22 PM(UTC)
scott@scottelford.biz

Rank: Advanced Member

Groups: Registered
Joined: 5/31/2017(UTC)
Posts: 67
Australia

Thanks: 1 times
Was thanked: 8 time(s) in 8 post(s)
Is there any plan to use the 0 -255 to set the color of the an RGB.
Could this RGB be built as its on node ( if that the right word ) so you can select the color of the led by using a slider from 0 - 255, ( or is this in hex? ) so one could select a color from the spectrum and get what they want instead of guessing or trying to get it close on your current 0 - 1 scale on the led.

I working on a prototype system and I would like to be able select a given color and know its the color I want, currently it has to be done by sight which will work for now.

I have a work around for now maybe, can we access the code & make small changes? Add the color manually ( select the number I want to use )?
EmbrioAdmin  
#2 Posted : Monday, June 05, 2017 3:03:14 AM(UTC)
EmbrioAdmin

Rank: Administration

Groups: Administrators
Joined: 12/11/2014(UTC)
Posts: 661

Thanks: 1 times
Was thanked: 109 time(s) in 104 post(s)
Keep in mind you can change the range of an integer input. The default is 100 but you can change it to 255. Just click on the little 100 and it will change to a text box so you can edit it.

Also for this you might want to make your own node. Have you tried that out yet? http://www.embrio.io/documentation/interface-and-components/nodes/writing-custom-nodes here is the documents page.

I imagine in the declarations section you could define an array with your colors, then the node could have an integer input and it's value is used as the index in the array to use.
scott@scottelford.biz  
#3 Posted : Monday, June 05, 2017 3:11:09 AM(UTC)
scott@scottelford.biz

Rank: Advanced Member

Groups: Registered
Joined: 5/31/2017(UTC)
Posts: 67
Australia

Thanks: 1 times
Was thanked: 8 time(s) in 8 post(s)
I had thought about that as I have some code that will do that, I have had time to check it out yet. Still trying to get around your software and what it all means, plus I think I have a problem with my laptop, which is what I have been using. Problem appears for some reason to be around the digital input. I was trying to get around to changing the button led sample but keep running into this problem. I have tried on my desktop at home and it appears to be working correctly..
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error