Black and white dll?
BlitzPlus Forums/BlitzPlus Programming/Black and white dll?| 
 | ||
| Hi, is there a "turn the screen greyscale" dll that anyone knows of? Like, Windows one or something. I figured you B+ guys would know more likely than the b3d crowd. | 
| 
 | ||
| You could always set the monitor to monochrome mode :P I'm not even sure computer monitors even have a grayscale mode anymore. | 
| 
 | ||
| Perhaps,this command could only be, in the Twilight zone.. No,for real.What I'm doing is rendering in 3d and need at some points the screen to go B+W (think Infamous health warning), I figured if there was such a thing you guys would know. "Graphics3d 800,600,1" brings a runtime. | 
| 
 | ||
| Blitzplus is old-fashioned 2D, not the 2D-in-3D that Blitzmax brings to the table. That means you don't have a lot of the niceties like sprite rotations, alphablending, and hardware shaders. | 
| 
 | ||
| I'm not using Bmax.Maybe nevermind, I guess. | 
| 
 | ||
| I guess you could just change all the colors to greyscale. Unless you're using sprites... | 
| 
 | ||
| Anyway, not a DLL but just in case you're interested anyway: Here's an ancient code archives posting I made 7 years ago, to convert the screen to black and white in Blitzplus: http://www.blitzbasic.com/codearcs/codearcs.php?code=836 The fading effect probably is too slow for real-time usage, though, since it's all calculated pixel-by-pixel. | 
| 
 | ||
| In case you wanted to do this pixel by pixel, here's the wikipedia article on greyscaling that claims the proper mix of red, green, and blue values is 30%, 59%, and 11%, respectively. (eg, rgbNew = r*30.0/100.0 + g*59.0/100.0 + b*11.0/100.0) http://en.wikipedia.org/wiki/Grayscale Last edited 2011 | 
| 
 | ||
| I was hoping to avoid that and do it all in one sweep.Nevermind guys, but thanks |