yuv rgb converter | rgb to ycbcr online
RGBJavascriptConverterIntroductionIwrotethisasatoolforhelpwithprogrammingsomeAtari2600[1]stuffIwasworkingon.SincetheAtaribasicallyhas16setcolorsandeachcolorhasa3bitattributetochangethebrightnessofthecolor,Ineededawaytovisualizethecolorsandcreatethedifferentshades.ThemostaccuratewaytocreateshadesofcolorsseemstobetousetheYUVcolorspacesincetheUVportionwoulddefinethecolorandtheYportionwoulddescribehowbrightitis.SobasicallywhatIplantodoismixthecolorsusingtheRGBpartoftheJavascriptuntilIgetacolorIl...
RGB Javascript ConverterIntroduction
I wrote this as a tool for help with programming some Atari 2600[1] stuff I was working on. Since the Atari basically has 16 set colors and each color has a 3 bit attribute to change the brightness of the color, I needed a way to visualize the colors and create the different shades. The most accurate way to create shades of colors seems to be to use the YUV color space since the UV portion would define the color and the Y portion would describe how bright it is. So basically what I plan to do is mix the colors using the RGB part of the Javascript until I get a color I like, and then plug the YUV values into the Television.java class. At that point Ill write code that converts these YUV colors to RGB 8 times while lowering the Y value each time. Thus, I should have some pretty accurate representations of what the Atari does.
The code here uses formulas from the following web site:http://softpixel.com/~cwright/pr...