Home Products Download Order Contacts

comp.graphics.algorithms

Subject: Re: Red Yellow to Red Green Conversion



"gthimmes" wrote in message
news:1146944884.374469.135820@e56g2000cwe.googlegroups.com...
> 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.

--
Roger



Reply


View All Messages in comp.graphics.algorithms

path:
Red Yellow to Red Green Conversion =>

Replies:
Re: Red Yellow to Red Green Conversion

Copyright 2006 WatermarkFactory.com. All Rights Reserved.