1. Beginner with another doubt
- Posted by Eduardo Uemura Okada <cool at ART.COM.BR> Jul 09, 1997
- 659 views
Hi to all again. It's just a little doubt, that will not take too much of your time. I'd like to know how are the maximum number of colors suported by Euphoria. It's just a complement to my past doubt (thank you The Reaper and Ralf N.) Waiting answer... Eduardo Uemura Okada e-mail: cool at art.com.br
2. Re: Beginner with another doubt
- Posted by Ralf Nieuwenhuijsen <nieuwen at POP.XS4ALL.NL> Jul 09, 1997
- 641 views
- Last edited Jul 10, 1997
> I'd like to know how are the maximum number of colors suported by > Euphoria. View the file 'graphics.e' It is in your euphoria\include directory There you will find information about all the different video modes.... Currently there is not a video mode that is supported by Euphoria that has more than 256 colors. As a bit extra information to avoid next doubt or thinking in the wrong direction (so asking the qrong questions) i wrote this here: You have several different video modes... all of them use the pallete system (exception for Win95 that has its own video drivers that allow color specification at each point)... Each point on the screen is made up of blue, red and yellow light. The power of each of those lights make every color possible. (Remember learning at school painters make all colors with those three by mixing them up) However because we want to refresh the screen more often we will store all the screen data somewhere in memory (video memory) and just use that data for each refresh.. The monitors support 64 different levels of light intensity (power) for each of the tree primaire colors (red, blue and yellow) So you would need 3 * 64 * horizontal resolution * vertical resolution / 8 bytes (yep, this sounds complecated, just know that it is A LOT) That would require an awfull lot of memory and makes updates slower.. so what we do it we have a number of custom different combinations of red,green, blue intensity and we specify which of the 'color' should be used for each point on the screen... We store all those combinations on the palette (like a real painter does) and use one of them for each point. The number of palette entries depends on the video mode. For example mode 19 (MCGA/VGA) has 256 entries. We use the same method in a BMP... we have a number of different combinations (palette entries) and a block of image data saying which combination(stored in the palette) to use for each point (pixel) on the bitmap. Like video modes, bitmaps also have different number of palette entries.... you should save your files with the same number of palette entries as the screen mode you want to display them on.... You could also find part of this information in Micheal Packards tutorials, there it is explained much more clear, because he's a PRO and he can speak ENGLISH. (I learn it as school, but i don't feel 100% comfortable using it! Nor can i express my self like i am possible in Dutch.) SO if i only made it more confusing for you, read his tutorials, their good. BTW Wasn't the AI thing to be posted last night? Will you, Packard do me a favor and post BEFORE saterday, cause i am going on a holiday sunday (to greche or whatever) , so instead of anoying my stressed parents i could be behind my computer learning your AI stuff... (please??) He if saw some1 saying it toke a couple of minutes to download the chain letter... If so get another ISP and/or mail service. I donwloaded that + another couple of messages in about 6 seconds... (i can understand that your mad through) Ralf Nieuwenhuijsen nieuwen at xs4all.nl
3. Re: Beginner with another doubt
- Posted by Faerun McLeam <photek.maven.gov at JUNO.COM> Jul 09, 1997
- 627 views
- Last edited Jul 10, 1997
On Wed, 9 Jul 1997 22:24:31 +0000 Ralf Nieuwenhuijsen <nieuwen at magigimmix.xs4all.nl> writes: > So you would need 3 * 64 * horizontal resolution * vertical >resolution / 8 bytes (yep, this sounds complecated, just know that it >is A LOT) Yes that would, aproximatly 7.372.800 bytes to be aproximatly exact. lupine