Groups > Corel > Corel Paint Shop Pro Scripting > Re: Using HTML colors in script




Using HTML colors in script

Using HTML colors in script
Fri, 29 Feb 2008 02:11:15 -050
I would like to use the html colors in my script instead of the rgb color,
is that possible? I have tried recording the script and entered the correct
html colors while recording, but the html colors are changed to the rgb
colors.
Sample  'Color': (255,255,255),

I would prefer using #FFFFFF, how do I incorporate this in my script.

I have list of 100 or more color swatches I am creating and intend to script
each swatch as a separate script.

Geena

Post Reply
Re: Using HTML colors in script
Fri, 29 Feb 2008 07:28:24 -060
Geena wrote:
> 
> I would like to use the html colors in my script instead of the rgb color,
> is that possible? I have tried recording the script and entered the
correct
> html colors while recording, but the html colors are changed to the rgb
> colors.
> Sample  'Color': (255,255,255),
> 
> I would prefer using #FFFFFF, how do I incorporate this in my script.

Specify the color as 'Color': (0xFF,0xFF,0xFF),
i.e. with hexadecimal representations instead.

'Color': (0xE1,0xBE,0xAB), for example, would
be R=225, G=190, B=171 and would appear in the
Material Picker of PSP as such as well as being
Post Reply
Re: Using HTML colors in script
Fri, 29 Feb 2008 16:52:19 -050
Thank you so much.
"Spandex Rutabaga" <SpRu@agabatur.xednaps> wrote in message
news:47C80878.B7EDBBB4@agabatur.xednaps...
> Geena wrote:
> >
> > I would like to use the html colors in my script instead of the rgb
color,
> > is that possible? I have tried recording the script and entered the
correct
> > html colors while recording, but the html colors are changed to the
rgb
> > colors.
> > Sample  'Color': (255,255,255),
> >
> > I would prefer using #FFFFFF, how do I incorporate this in my script.
>
> Specify the color as 'Color': (0xFF,0xFF,0xFF),
> i.e. with hexadecimal representations instead.
>
> 'Color': (0xE1,0xBE,0xAB), for example, would
> be R=225, G=190, B=171 and would appear in the
> Material Picker of PSP as such as well as being
> H=15, S=121, L=198 and HTML #e1beab.

Post Reply
about | contact