home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Stars of Shareware: Raytrace & Morphing
/
SOS-RAYTRACE.ISO
/
programm
/
raytrace
/
radiance
/
cal
/
picdiff.cal
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1991-08-30
|
281 b
|
14 lines
{
Compute difference between luminance of two images.
Display towards red where first image is brighter,
and towards blue where second image is brighter.
29 August 1991
}
l1=li(1); l2=li(2);
avg=(l1+l2)/2;
dif=(l1-l2)/2;
ro=avg+dif;
go=avg-dif*dif/2;
bo=avg-dif;