Shop OBEX P1 Docs P2 Docs Learn Events
Colors — Parallax Forums

Colors

NewzedNewzed Posts: 2,503
edited 2006-06-22 00:39 in Propeller 1
In the TV programs, I know that 3 = green, 2 = red and 4=white.· Where can I find a complete list of the colors that Propeller can display on my TV.
I can change the text color but how do I change the background color?
Thanks

Sid

Comments

  • MuncherMuncher Posts: 38
    edited 2006-06-21 03:10
    On the propeller demo board schematic, it shows a 3-bit DAC (8 colors) for the TV. If this is correct, it shouldn't be that hard to use trial and error to get the rest. Don't forget to post the results when you are done! [noparse]:)[/noparse]
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2006-06-21 04:01
    There's a sample program that comes with the IDE called Graphics_Palette.spin. It displays all the colors available for TV output. The range of colors is quite extensive. If you have the Demo Board and connect a mouse, you can point to each color and get the value needed to produce it.

    -Phil
  • Paul BakerPaul Baker Posts: 6,351
    edited 2006-06-21 15:57
    My understanding is there are 64 colors availible, the graphics_palette.spin enumerates all of them, each tile (16x16) is limited to 4 colors, but these 4 colors can be different from tile to tile.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Life is one giant teacup ride.
  • mcstarmcstar Posts: 144
    edited 2006-06-21 20:51
    I too have been working on getting my colors to work in a contrallable fashion.· Based on information I've gleaned from the Graphics_Pallette.spin and posts with Chip, this is what I know so far.

    The TV screen[noparse]/noparse contains a value for each "tile" in the tv screen.· The screen has (x_tiles·* y_tiles ) = 16 * 12 = 192 tiles.· Each tile then has it's own color designator value.· You have 0-3 or 4·colors for each cell.· This is specified via a Unary number (two bits).· The value in the tile then specifies essentially what becomes your· backcolor, forecolor·and two variants.· So, the big question is, what are the values required for each color?·

    Well, I have yet to figure out that completely myself, but I know this much,·the code in Graphics_palllette seems to have the·most comprehensive coverage of color I've seen yet, and it initializes the color[noparse]/noparse with 64 color values ranging from

    $03020507....$0302050C (inc by $1)

    ·$07020504

    $1B1A0507, $2B1A0507, $3B1A0507.... $FBFA0507 (inc. by $1000000)

    $0D0C0507, $1D1C0507 .... $FDFC0507 (inc by $10000000)

    $080E0507, $180E0507 .... $F80E0507 (inc by $10000000)

    Maybe someone can chime in about how these numbers map to their 4 color values.· Of even more use would be some infomation as to how it was figured out in the first place?· I've been meaning to sit down and figure out which colors the various value ranges map to (and if there are other legitimit colors in between those values) but I haven't had the time yet and I'm not looking foward to the amount of time I think it will take to reverse engine the color values.· Hopefully this will give others a place to start.
  • SSteveSSteve Posts: 808
    edited 2006-06-22 00:39
    I'm not sure, but I think there might be a clue in the last post in this thread: http://forums.parallax.com/showthread.php?p=586796.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    OS-X: because making Unix user-friendly was easier than debugging Windows

    links:
    My band's website
    Our album on the iTunes Music Store
Sign In or Register to comment.