Color-Code.spin
Mark Bramwell
Posts: 56
I have grown tired of trying to figure out the color combinations for a tile.
I have created a program to help me sort it out.
Updated: The attached file now has the PS2 keyboard as well as a RS232 version for Hyperterminal
Updated: The attached file now has a version that uses the PropTerminal software as a keyboard interface
Post Edited (Mark Bramwell) : 9/18/2007 6:08:59 PM GMT
I have created a program to help me sort it out.
Original Version: Mark Bramwell, Sept 16, 2007 Adapted to PS2 By Jeff Ledger Sept 16, 2007 Adapted to PropTerminal by Andy Schenk, Sept 18, 2007 Purpose: To view on your TV screen every possible color combination but only 4 at a time with an easy to use interface to change the colors and view them instantly with the appropriate HEX color code string. Color-Code-IR-RS232.spin uses a IR device on pin1 to decode a Sony TV remote. Use the Left/Right arrows to select the box. Use Up/Down to change the color of that box. Remote-Tester.spin will allow you to display & pick codes from another remote if you do not have a Sony.
Updated: The attached file now has the PS2 keyboard as well as a RS232 version for Hyperterminal
Updated: The attached file now has a version that uses the PropTerminal software as a keyboard interface
Post Edited (Mark Bramwell) : 9/18/2007 6:08:59 PM GMT
zip
41K
Comments
I gave him the list from Andr
That is why I eventually needed to do something that allows me to sit back and simply cycle quickly by pushing a button.
I probably should pick up a PS2 connector and solder it onto the board although the IR_Kit sure is a handy object to have (I used an old module from a VCR and soldered it in).
And avoid the luma values 0,1 and 7
On the Propeller, some of the luma values are used for SYNC. There are 8 possible luma values, with 0 and 1 being sync, this leaves 6 intensities for actual display.
This is done so that the entire video signal is under your control.
On the wiki page, I've mapped out the standard colors, and their values. It's pretty easy to look at the strip at the bottom of the screen capture, note the hue, then assign intensities 2, 7 from there to get your color. The grid of colors above is done with the artifacting technique and only works on NTSC display systems. It's very RAM hungry, making it near useless for anything but demos on a prop with no external memory attached.
(was just wanting to explore color possibilities with the Parallax reference video circuit.)
Some displays will tolerate zones of luma value 1, for really black objects. Most will not.
Luma 7 should be ok, right?
Never had a problem with that one on any displays I've used.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Wiki: Share the coolness!
Thanks for the great tool!
Oldbitcollector
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Buttons . . . check. Dials . . . check. Switches . . . check. Little colored lights . . . check.
— Calvin, of 'Calvin and Hobbes.
The information on the wiki is from pure observation. I have a display that will display nearly anything NTSC, and I've another one that's really picky. Went through the Parallax driver, then again with the EASY_NTSC Cardboard created. Color was confusing --in the end, it was just easier to just blast all 256 possible waitvid values to the screen, sort out the good from the bad, and put it all in one display example.
That's the screenie on the wiki.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Wiki: Share the coolness!
So it should be safe to limit yourself to luma values between 2 and 6.
Trying all 256 values in the color register is not dangerous but seems not very instructive...
It's not like I didn't think about it. More like wanting to sort out contradictory information. Working through that exercise sorted all of those issues out nicely.
There isn't an NTSC display around that won't display that color screen in the wiki. Luma 7 is just fine for use, particularly if it's for a monochrome pixel.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Wiki: Share the coolness!
It now includes Jeff's adapted version for the PS2 keyboard as well as I have modified my version to also support the PC keyboard via Hyperterminal. If you have a stock protoboard/RPMproto with only a RS232 connection, you can now use hyperterminal to control the spin program.
Thanks!
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Propeller Wiki: Share the coolness!
I just reset the default colors in the app to: 44 0B 6B 9B
They are a much nicer starting position, no bleeding or buzzing from the TV. (although the red is more of an orange on my set but RED=aa is too bright for me)
Thank You
Among the various prototypes of palette displays in Wiki's list (http://en.wikipedia.org/wiki/List_of_palettes), I like TED best for our purposes. That's a very nice and useful palette. Atari 2600 is also nice, but it lacks any reference values.
*attached a non-discordant palette
I think the ATARI NTSC palette comes quite close.. I added it to my above posting, and also removed a disconcordancy
- with RETURN you write the actual colorcodes to the Terminal
- then you can write a comment to this value.
- repeat this if you want more then one color set
when all colors are on the Terminal screen:
- Save it to the clipboard with 'Copy Text' in the File-Menu (of PropTerminal)
- Insert it in the IDE with Paste or Control-v.
Andy
I have refreshed the zip and re-uploaded it in the 1st message of this thread.
You can now use: IR (TV remote), Hyperterminal, PS2 keyboard and PropTerminal to control this program
The only thing left is telepathy and I am still working on that spin object!