Home Products Download Order Contacts


Subject: Re: Red Yellow to Red Green Conversion

"gthimmes" wrote in message
> Hello,
> I'm a little new to the color conversion world and I'm struggling with
> coming up with a good conversion algorithm for this. I am designing a
> program that creates graphics for a roadside sign that uses pixels that
> each consist of a Red(0-255) and a Yellow(0-255) value. So the possible
> colors are Red, Yello, and all the shades of orange in between with out
> there ever being a tint of green. Now I have to represent this on the
> user's monitor using the Red and Green values of an RGB pixel.
> Obviously blue will always be zero, and I'll have to use Red and Green
> to show as many Red/Yellow combinations as possible without any green
> coloration.
> I'm stumped on how to do this conversion. Everything I've tried for
> coming up with a color palette eventually brings in green tints. Can
> anyone offer any advice on how ot approach this?

Red has an RGB value of 255,0,0 and yellow (being 'not blue' in colour
terms) has an RGB value of 255,255,0

So basically what you need to do is keep red fixed at 255, blue fixed at
zero, and vary the green.



View All Messages in comp.graphics.algorithms

Red Yellow to Red Green Conversion =>

Re: Red Yellow to Red Green Conversion

Copyright 2006 WatermarkFactory.com. All Rights Reserved.