Xref: utzoo comp.sys.atari.st:36887 comp.sys.atari.st.tech:1889 Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!sdd.hp.com!spool.mu.edu!snorkelwacker.mit.edu!bloom-beacon!eru!hagbard!sunic!dkuug!imada!micro From: micro@imada.dk (Klaus Pedersen) Newsgroups: comp.sys.atari.st,comp.sys.atari.st.tech Subject: Re: Flicker Palettes [was Re: Graphics on the STE...] Message-ID: <1991Apr4.223506.11715@imada.dk> Date: 4 Apr 91 22:35:06 GMT Article-I.D.: imada.1991Apr4.223506.11715 References: <1991Apr3.004047.511@jato.jpl.nasa.gov> <1991Apr3.055519.2322@ns.network.com> <1991Apr3.223921.16258@jato.jpl.nasa.gov> <1991Apr4.052519.9240@wam.umd.edu> Sender: news@imada.dk (USENET News System) Organization: Dept. of Math. & Computer Science, Odense University, Denmark Lines: 32 dmb@wam.umd.edu (David M. Baggett) writes: >Anybody know how to algorithmically pick colors that always blend? >Given such an algorithm, one could write a program to find an "optimal >flicker palette" -- one where the most combinations possible were >rock-solid. You can try to pick colors that have aprox. the same intensity. To this you can use the NTSC formular : Luminosity = 0.299*Red + 0.587*Green + 0.114*Blue I have some code at here that can display 256 graylevels on the mono screen. (written in C). The program is less than 50 lines long, and features an advanced errordiffusion ditering algoritm, with a small edge sharping filter (simple laplace). This have been coupled with a 3 screen 'flicker' mode. The result is approx. the same as 256 grayscale VGA LCD screens (I think mine is better, because there is no shadows running around the screen, but...) The 3 screens is build to that the 'on' pixels is equally distributed on the 3 'planes' - this avoids flicker. All this could used with color too, and I think the result would be even better because you can pick colors which is closer to each other (than on and off)... In color mode you can probaly show true-color, but you will need to make some additional code, to handle interesting subjets - such as picking reprensative colors from the picture file... The program IS quick hack, and therefor it only runs on mono in 640x400. I will send the source to who-ever that is interested... Klaus (micro@imada.dk)