Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!wuarchive!uunet!microsoft!peterdun From: peterdun@microsoft.UUCP (Peter DUNIHO) Newsgroups: comp.graphics Subject: Re: bit masks Summary: If it quacks like a duck... Message-ID: <57172@microsoft.UUCP> Date: 4 Sep 90 22:05:18 GMT References: <23900013@sunb4> Organization: Microsoft Corp., Redmond WA Lines: 15 In article <23900013@sunb4>, mcooper@sunb4.cs.uiuc.edu writes: > > I'm looking for an algorithm (or C code, of you have it) to generate > 16 x 16 bit masks. Ideally, I should be able to specify a percentage and > the program should spit out the pattern filled appropriately. > > > Does anyone have code that will properly randomize this stuff to avoid the > inevitable artifacts and moire patterns? > > Sounds to me like you need some good dithering algorithms. I don't really know where to look for references, but I would start with ACM journals and graphics books...