Is it possible to correlate HTML colour codes (such as #99FF66) with the
Red/Blue/Green and Hue/Sat/Lum controls in the Windows Colour Selection
Dialogue box?
--
Roy Bailey
Great Shefford
HUNGERFORD, Berks.
The only place I've seen anything like this is in Picture Publisher V7
onwards.
--
Tony Morgan
Atomor Web
Web by Design
I'm unsure whether this is what Roy is asking Alisdair.
Your are simply explaining hex-dec conversion. Hue/saturation/luminance
is AFAIK a different animal.
Paul Allen has explained this (at length!) some time ago - and may come
in here. But if I can give a practical example:
RGB (hex) #FF8111 equates with RGB (Dec) 255 129 17
also with:
Hue 27, Saturation 100, Luminance 100.
also with:
Cyan 0, Magenta 126, Yellow 238, Gamma (K) 0
As I mentioned in a post in this thread, Picture Publisher 7 give these
in its colour picker (all at the same time). You can also determine them
with the ubiquitous magic wand in PP7.
>Is it possible to correlate HTML colour codes (such as #99FF66) with the
>Red/Blue/Green and Hue/Sat/Lum controls in the Windows Colour Selection
>Dialogue box?
Paint Shop Pro 5 has a colour wheel dialog that shows the RGB, HSL and
HTML values for any selected colour.
See most PC magazine cover CDs or <URL:http://www.jasc.com/>.
--
E.D. Wivens
Katzphur <URL:http://www.largepre.demon.co.uk/katzphur/>
> In article <XR81lKA0...@westberks.demon.co.uk>, Roy Bailey
> <rba...@nospam.demon.co.uk> writes:
>
> >Is it possible to correlate HTML colour codes (such as #99FF66) with the
> >Red/Blue/Green and Hue/Sat/Lum controls in the Windows Colour Selection
> >Dialogue box?
>
> Paint Shop Pro 5 has a colour wheel dialog that shows the RGB, HSL and
> HTML values for any selected colour.
>
> See most PC magazine cover CDs or <URL:http://www.jasc.com/>.
Worth pointing out that choosing exotic 24bit colours like #97FB61
will produce irritating chicken pox dithering on restricted palettes.
As a rule of thumb multiples of #33 are reliable on most platforms.
(which systems does this fail on ?)
Regards,
--
Martin Brown <mar...@nezumi.demon.co.uk> __ CIS: 71651,470
Scientific Software Consultancy /^,,)__/
Mo shades of grey in your rich tapestry of life? :-)
--
Tony Morgan e-mail: atom...@ndirect.co.uk
Atomor Web Limited Fax: +44 (0)1582 601124
Registered in England: 3611761
> Worth pointing out that choosing exotic 24bit colours like #97FB61
> will produce irritating chicken pox dithering on restricted palettes.
> As a rule of thumb multiples of #33 are reliable on most platforms.
> (which systems does this fail on ?)
It fails on Acorn and some flavours of Unix.
--Paul
I had forgotten that Calculator had a hex conversion function, which is
very useful.
By playing around with the Windows Colour Selection box, I have found
that Red/Green/Blue and Hue/Saturation/Luminance are interdependant.
Alter the Luminance, for instance, and the proportions of the colours
change - and vice versa.
In my HTMl authoring program, WebEdit, you can play around with the
Colour Selection, add the result to Custom Colours, and when you press
OK it puts the 6-figure hex value in at the cursor.
I don't imagine that it is unique in this respect.
> In article <XR81lKA0...@westberks.demon.co.uk>, Roy Bailey
> <rba...@nospam.demon.co.uk> writes
>> Is it possible to correlate HTML colour codes (such as #99FF66) with
>> the Red/Blue/Green and Hue/Sat/Lum controls in the Windows Colour
>> Selection Dialogue box?
I have written a small BASIC program that does what you want.
It was written for use on my Acorn Archimedes platform but is so
un-complex that it should run, or be very easy to modify to run, on any
other platform from which you can directly use such a program.
If you, or any one else, is interested drop me an e-mail.
--
Brian Jaques
"Water, taken in moderation, never harmed anyone."
Mark Twain
Try mode 15/28.
--
Robert Bradley
I am not a mindreader, so I don't know everything.
> In article <F+YWe...@sktb.demon.co.uk>, Paul L. Allen writes
> >In article <905157...@nezumi.demon.co.uk>
> > Mar...@nezumi.demon.co.uk (Martin Tom Brown) writes:
> >
> >> Worth pointing out that choosing exotic 24bit colours like #97FB61
> >> will produce irritating chicken pox dithering on restricted palettes.
> >> As a rule of thumb multiples of #33 are reliable on most platforms.
> >> (which systems does this fail on ?)
> >
> >It fails on Acorn and some flavours of Unix.
>
> Try mode 15/28.
The first is a 640x256 256-colour mode, the second a 640x480 (VGA)
256-colour mode. I find VGA very cramped and with a nasty aspect ratio.
There are far nicer modes available, even on the original Acorn hardware
that's a decade old (and all without needing to buy a video driver card).
However, this was all about *colours*, not resolutions. And the
fact is that the Acorn 256-colour palette is totally different to
the Netscape Windows 216-colour palette or its superset the Netscape
Mac 256-colour palette. All of them are different yet again to the
Netscape 125-colour palette used on some flavours of Unix (which has
only 8 colours in common with the Netscape 216-colour palette).
As I said, the multiples of #33 rule fails on Acorn platforms. But
the dithering algorithms used mean that it's still quite good -
the result looks nowhere near as bad as a GIF optimized for the Acorn
palette when displayed on a Windows box in 256-colour mode. The multiples
of #33 rule fails very badly on those Unix boxes that use the Netscape
125-colour palette.
--Paul