🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.postscript
Article #8470

Adding noice to grayscales

#8470
From: Christer Ericson
Date: Mon, 22 May 1989 11:57
19 lines
1148 bytes
I would like to add some random noice to the grayscale when I'm filling an
area. I have tried to do something like this (simplified example);

    60 45 { add rand 3 mod add 1 sub 3.0 div } setscreen

but obviously the current screen is only accessed once before the filling and
not during the operation (as I would want it to work).

Is there any way to accomplish this in a straightforward way?

Thanks,

/Christer



| Christer Ericson                           Internet: christer@cs.umu.se  |
| Department of Computer Science, University of Umea, S-90187 UMEA, Sweden |
|     >>>>>    "I bully sheep. I claim God doesn't exist..."    <<<<<      |
Technical Details
Message-ID: <861@umecs.cs.umu.se>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcvax!kth!draken!umecs!zeus!christer

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!cs.utexas.edu!uunet!mcvax!kth!draken!umecs!zeus!christer
From: christer@zeus.cs.umu.se (Christer Ericson)
Newsgroups: comp.lang.postscript
Subject: Adding noice to grayscales
Message-ID: <861@umecs.cs.umu.se>
Date: 22 May 89 11:57:44 GMT
Sender: news@umecs.cs.umu.se
Reply-To: christer@zeus.UUCP (Christer Ericson)
Organization: Dep. of Inform.Proc.,University of Umea,Sweden
Lines: 19