View Single Post
Old 4th April 2003, 10:19   #8  |  Link
WarpEnterprises
C64
 
WarpEnterprises's Avatar
 
Join Date: Apr 2002
Location: Austria
Posts: 830
Another addition made to ZOOM.DLL (only 2.0x version so far)

Zoom(show=true): prints the calculated values on the screen

CHR.DLL (2.0 and 2.5) now has a function

Spline (X, x1,y1, x2,y2, ...)

which interpolates the given X with a bicubic spline and gives back the corresponding Y (useful mainly together with Zoom)

E.g. try:

version().converttorgb32()
zoom(factor="Spline(n, 0,0, 10,1, 30,0.5,31,0.5, 100,0.5)", \
dstx="Spline(n, 0,200, 30,200, 100,400)", \
show=true)

So you can give a simple "path" to the parameters instead of fiddling with sin, cos, exp,...
WarpEnterprises is offline   Reply With Quote