bicubic
v0.0.0
Published
Bicubic interpolation - traditionally used for scaling up images or heightmaps
Downloads
4
Readme
bicubic
Bicubic interpolation - traditionally used for scaling up images or heightmaps.
Usage
bicubic(x, y, values...)
x
and y
are two values between 0 and 1 that determine the point of
interpolation. These are followed by a remaining 16 arguments, each of
which represent the value of a neighboring point. They're specified in
this order:
point(0, 0)
point(0, 1)
point(0, 2)
point(0, 3)
point(1, 0)
point(1, 1)
point(1, 2)
point(1, 3)
point(2, 0)
point(2, 1)
point(2, 2)
point(2, 3)
point(3, 0)
point(3, 1)
point(3, 2)
point(3, 3)
This obviously isn't the most intuitive API, so you can use bicubic-sample to get something a little friendlier.
License
MIT. See LICENSE.md for details.