Page 1 of 1

Set "pre-defined" colors

Posted: Sat Sep 20, 2014 11:54 pm
by jfoster4731
Hello,

I am writing a program to make a graph. E-views 8 has a set of predefined colors: blue, red, green, etc, and it is also possible to select colours using @RGB(#,#,#). Is there a way to use the @RGB command to set a predefined color? For example,

setcolor cyan @RGB(225,225,255)

Then I can just write "cyan" wherever I would like that colour.

Thank you

Re: Set "pre-defined" colors

Posted: Sun Sep 21, 2014 7:58 am
by EViews Gareth
There is not, no.

You might be better off using templates, if you're using the same colours a lot.

Re: Set "pre-defined" colors

Posted: Sun Sep 21, 2014 8:21 am
by EViews Gareth
or, you could always do something like:

Code: Select all

%cyan = "@RGB(225,225,255)"
and then use {%cyan} wherever @rgb is expected.

Re: Set "pre-defined" colors

Posted: Sun Sep 21, 2014 4:18 pm
by jfoster4731
Thank you Gareth,

That works great.