Download software Tutorial videos
Subscription & data-feed pricing Class schedule


New account application Trading resources
Margin rates Stock & option commissions

Attention: Discussion forums are read-only for extended maintenance until further notice.
Welcome Guest, please sign in to participate in a discussion. Search | Active Topics |

realcode paint scheme Rate this Topic:
Previous Topic · Next Topic Watch this topic · Print this topic ·
BobMc
Posted : Monday, August 2, 2010 2:48:13 PM
Registered User
Joined: 10/7/2004
Posts: 816
How do I reduce the opacity of a real code paint scheme - and if I'm using "user input" statements to control the color - how do I see what the color actually is without trying each and every color?

Is there some kind of color name available when I mouse over the colors?

Regards
Bob Mc
Kuf
Posted : Thursday, August 5, 2010 10:17:08 AM


Administration

Joined: 9/18/2004
Posts: 3,522
Look into the vb.net  Color.FromARGB  call. The Alpha value is the opacity. 255 is opaque, 0 is transparent.

Ken Gilb (Kuf)
Chief Software Engineer - Worden Brothers Inc.
Try/Catch - My RealCode Blog
BobMc
Posted : Thursday, August 5, 2010 12:30:49 PM
Registered User
Joined: 10/7/2004
Posts: 816
I don't understand how to use this?

Look into the vb.net  Color.FromARGB  call. 

When I look at the drop down list of colors - they have names - where do I get the RGB values?

It would be better if you can give me a detailed example - I get the "A" = opacity part but don't have aclue as to how to use what you said

Regards

Bob Mc

Kuf
Posted : Friday, August 6, 2010 10:53:36 AM


Administration

Joined: 9/18/2004
Posts: 3,522
The coloring is a standard VB.net syntax. The drop down list is a short cut to pre-defined colors (RGB values).  R = Red, G = Green, B = Blue.  Color.Red = Color.FromARGB(255,255,0,0).   Color.Blue = color.FromARGB(255,0,0,255)

You can use the built in windows program "Paint" to get RGB values for colors or you can use an online color picker.

Ken Gilb (Kuf)
Chief Software Engineer - Worden Brothers Inc.
Try/Catch - My RealCode Blog
runningdawgcaptlst1
Posted : Friday, August 6, 2010 11:27:49 AM
Platinum Customer Platinum Customer

Joined: 10/7/2004
Posts: 357
I like this one:            if you search for     RGB     there are lots and lots and lots.........


http://www.tayloredmktg.com/rgb/
Bruce_L
Posted : Friday, August 6, 2010 11:36:25 AM


Worden Trainer

Joined: 10/7/2004
Posts: 65,138
The following topics all contain example RealCode using .fromARGB():

Plot value NaN?
Volume Surge Gradient Painting
real code change for opacity of volume bars
Overlayng vol bars on price pane

-Bruce
Personal Criteria Formulas
TC2000 Support Articles
BobMc
Posted : Saturday, August 7, 2010 2:19:29 PM
Registered User
Joined: 10/7/2004
Posts: 816
Thanks runningdawg

Thats cool and easy

Regards
BobMc
BobMc
Posted : Saturday, August 7, 2010 2:39:29 PM
Registered User
Joined: 10/7/2004
Posts: 816
Thanks Bruce

very comprehensive - now I just have to understand it

Regards
Bob Mc
Users browsing this topic
Guest-1

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.