Re: High color mode...
- Posted by Hawke <mdeland at NWINFO.NET> Aug 25, 1998
- 599 views
James Begley wrote: >Okay, here's a toughie. I've seen True Color modes in Euphoria. >Problem is, >some people have crappy video cards (like mine) that can >only go up to 64K >colors. So the question would naturally be: >How do you use 32K & 64K modes in Euphoria programs? Being one of the incredibly small few that are currently and actively programming euphoria in anything other than 256 color mode(dos) or windows, and as one who did a fair amount of research looking for other modes to program in, i can (unfortunately) inform you that i know of no library presently available that allows those color depths. Under windows, things you create are (from my understanding) automatically displayed in the resolution/depth the end user has their windows display set to. mr.cuny's win32lib.ew has some examples included in his zip file, and that library has rudimentary support for line drawing. you may wish to experiment with that library and create some simple line drawing programs and execute those programs with your windows display set to different resolutions. some of us would be quite interested in your findings. One caveat i see right off the bat: suppose you say something like: [pseudcode] line({from}{to}{r,g,b}) well, how each video mode interprets color is quite different. in trucolor, its simply a length 3 sequence of 0..255 as the value for each element, corresponding to the intesity of red green blue... in 32k and 64k its a little different... it's manipulated on bit level instead of 3 seperate bytes. 15bit i think is 32k and 16 bit is 64k. for 15 bit you have 5 bits for each color, in a packed double byte type format. i see this as potentially causing bizarre screen effects when running the same program in different windows display resolutions/depths... enjoy! *hands out aspirin* </ends extremely rough graphic overview> take care all--Hawke'