From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,583275b6950bf4e6 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-05-30 07:23:54 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!in.100proofnews.com!in.100proofnews.com!news-out.visi.com!petbe.visi.com!uunet!ash.uu.net!nntp.TheWorld.com!not-for-mail From: Robert A Duff Newsgroups: comp.lang.ada Subject: Re: Saturated Math Date: 30 May 2003 10:23:52 -0400 Organization: The World Public Access UNIX, Brookline, MA Message-ID: References: <3ECFF541.1010705@attbi.com> <3ED0B820.5050603@noplace.com> <3ED2096F.3020800@noplace.com> <3ED353BE.40605@noplace.com> <3ED4A323.3000909@noplace.com> NNTP-Posting-Host: shell01.theworld.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: pcls4.std.com 1054304633 23036 199.172.62.241 (30 May 2003 14:23:52 GMT) X-Complaints-To: abuse@TheWorld.com NNTP-Posting-Date: Fri, 30 May 2003 14:23:52 +0000 (UTC) User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 Xref: archiver1.google.com comp.lang.ada:38098 Date: 2003-05-30T10:23:52-04:00 List-Id: Vinzent Hoefler writes: > Robert A Duff wrote: > >Slightly?! Seems like a huge difference to me. > > ACK. I like understatements. ;) ;-) > Because its more intuitive for their problem domain. It would be in > mine. I have a lot of color value conversions that should stop at > black or white but I still need the grey values inbetween even after > some of these pixels have saturated. I still don't get it. By "sticky", I mean that arithmetic is sticky. You can still set the thing to any value you like. In your example of 0..255, if X = 200, and you say "X := X + 100;", then X = 255. If you then subtract 100 from X, you go "too far" in the other direction, it seems to me. So if you want to, say, set it back to 200, you should say "X := 200;", not "X := X - 100;". - Bob