TV Colors

Home Up VNC2 Adafruit RGB LED Matrix Visual Spin YModem Wavetable Midi Player Prop EKG Basic Window/Form System PropMonitor 1-Bit Bitmaps 6-Bit Bitmaps DAC Sparkfun Nokia LCD Cameras MP3 Wireless JuiceBox I/O Expansion Via I2C Secure Digital (SD) Card Interface Notes on Graphics_Demo.spin ADC 2-Bit Bitmap App TV Colors Interleaved Character Generator 4-Color Character Applet VGA Colors Applets

 

bullet

Here's info on the colors generated by the "TV" object that ships with the Propeller Tool.

bullet

The "Library" example file "Graphics_Palette.spin" shows all possible colors from the "TV" object.  Here's a screen capture:

bullet
bullet
Note that the actual way these colors will look will depend on how they are used!  This is especially true for those colors in the center section of the picture above.  Generally, they will look brighter and better than they do in this picture.
bullet

Each color is an 8-bit number with chroma and luminance info:

bullet

Color Bits:  7654_3210

bullet
The Graphics_Palette example (shown above) gives the two digit hexadecimal representation of the color that the mouse is over. 
bullet

Bits 7, 6, 5, and 4 specify the chroma (color)

bullet

Bit 3 specifies color (1) or B&W (0) mode

bullet

Bits 2, 1, and 0 specify the luminance (brightness)

bullet
The values "001" and "111" are not allowed.  So, there are only 6 levels available.
bullet
The value "000" produces a saturated color.
bullet

Graphics_Palette example layout:

bullet

For the colored swatches, the chroma varies from 0 to F across the screen from left to right.

bullet
Bit 3=1 for colors.
bullet
The top line has luminance at "000" to give saturated colors.
bullet
The next lines are luminance values from 6 down to 2.
bullet

For the B&W swatches, bits 7..3 are 0 and luminance is varied from 2 to 7 across the screen.

bullet

Info on how the colors are arranged as groups of four to form a long and how the longs are used by the tile driver are the same as give for VGA Colors