Click here to Skip to main content
15,912,578 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
OK, So I am going to create a program that talks to my arduino. On my arduino I have 50 indiviual LEDs that are all individually addressable of 8bit colour RGB.

I want to create a program that can control them. By sending the LED Number and the corresponding RGB value or R value G Value and B Value.

At the moment I am 'designing' the interface of which to control all the leds manually. I have started making a matrix of drawn circles. (e.drawellipse....)
The first question is I wish to make a custom colour. thats dependnt of track bars eg:

VB
Dim TestEllsipse As Graphics = Me.CreateGraphics
 TestEllsipse.FillEllipse(Brushes.color.FromArgb(TrackBarRed.Value, TrackBarGreen.Value, TrackBarBlue.Value), 10, 10, 10, 10)



I know color (colour for me ;)) has .fromARGB but brushes doesn't have this?


And is there a way to trigger an even, that when the user clicks the drawn object? If I had 50 circles, the user can click one, to then apply data to that item?
Posted
Comments
Trak4Net 23-Aug-13 14:56pm    
Have you tried New SolidBrush(Color.FromArgb(A,R,G,B))?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900