Color Specification Syntax

Currently colors for palettes and graphic objects can be specified in either RGB or YUV colorspace. Since previous versions of MuxMan used 3 decimal numbers to specify palette color in RGB this form is retained. The following are the current forms accepted.
Syntaxrepresents
rrr,ggg,bbbRGB as three decimal values
RGB#rrggbbRGB as 6-digit hexadecimal number
RGB(rrr,ggg,bbb)RGB as three decimal values
YUV#yyuuvvYUV as 6-digit hexadecimal number
Note: U and V are biased by 0x80, 8080 is greyscale, 1010 is green, F0F0 is purple
YUV(yyy,uuu,vvv)YUV as three decimal values
note: U and V are signed, 0,0 is greyscale, -112,-112 is green, 112,112 is purple

Limits

RGB values for each color range from 0 to 255
YUV values are more limited. Y is limited to 16 to 235, U and V are limited to -112 to 112

Examples

blackRGB#000000
RGB(0,0,0)
YUV#108080
YUV(16,0,0)
  greyRGB#808080
RGB(128,128,128)
YUV#808080
YUV(128,0,0)
  whiteRGB#FFFFFF
RGB(255,255,255)
YUV#EB8080
YUV(235,0,0)
 
saturated red
not NTSC safe
RGB#FF0000
RGB(255,0,0)
YUV#515AF0
YUV(81,-38,112)
  saturated green
not NTSC safe
RGB#00FF00
RGB(0,255,0)
YUV#903622
YUV(144,-74,-94)
  saturated blueRGB#0000FF
RGB(0,0,255)
YUV#29F06E
YUV(41,112,-18)
 
saturated yellow
not NTSC safe
RGB#FFFF00
RGB(255,255,0)
YUV#D21092
YUV(210,-112,18)
  saturated purple
not NTSC safe
RGB#FF00FF
RGB(255,0,255)
YUV#6ACADE
YUV(106,74,94)
  saturated cyan
not NTSC safe
RGB#00FFFF
RGB(0,255,255)
YUV#A9A610
YUV(169,38,-112)
 
DVD-Video info home
STNsoft home
Copyright © 2005 - 2014 STN Software, all rights reserved.