Article View: comp.sys.sgi.bugs
Article #74splft2 or interp weirdness
From: Frans van Hoesel
Date: Mon, 11 Jan 1993 14:03
Date: Mon, 11 Jan 1993 14:03
36 lines
1734 bytes
1734 bytes
- splft2 *or* interp does not work. Make a interpl window while using
mwm instead of 4Dwm) of size 870*580 pop up the colormap, select
color #3 (green) for the left color in interp and color #4 (yellow)
for the rigth color. In the lower left corner of interp blue
pixels will show up (color #5). The problem does not depend on mwm
or 4Dwm, but does depend on the window size.
looking into the code of interp, this bug is most likely in splft2
because the argument to splft2 in interp are:
intens[0] = startcolor;
intens[1] = startcolor;
intens[2] = endcolor;
intens[3] = endcolor;
parray[0][0] = MINX+1.0;
parray[0][1] = MINY+1.0;
parray[1][0] = MINX+1.0;
parray[1][1] = MINY-1.0+(MAXY-MINY)*0.25;
parray[2][0] = MAXX-1.0;
parray[2][1] = MINY-1.0+(MAXY-MINY)*0.25;
parray[3][0] = MAXX-1.0;
parray[3][1] = MINY+1.0;
splf2(4, parray, intens);
the float arguments must be exactly on a perfect rectangle, but
for some reason the result is wrong.
--frans
--
-- ============================================================== --
---- === frans van hoesel hoesel@igc.ethz.ch === ----
-- ============================================================== --
Technical Details
Message-ID:
<1993Jan11.140316.19771@bernina.ethz.ch>Path:
arc1-ca.pugleaf.net!sparky!uunet!pipex!doc.ic.ac.uk!uknet!mcsun!chsun!bernina!hoeselShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!sparky!uunet!pipex!doc.ic.ac.uk!uknet!mcsun!chsun!bernina!hoesel From: hoesel@igc.ethz.ch (Frans van Hoesel) Newsgroups: comp.sys.sgi.bugs Subject: splft2 or interp weirdness Message-ID: <1993Jan11.140316.19771@bernina.ethz.ch> Date: 11 Jan 93 14:03:16 GMT Sender: news@bernina.ethz.ch (USENET News System) Organization: University of Groningen, the Netherlands Lines: 36