# Custom Image Upscaling

This demo shows off a custom image upscaling algorithm written in SkSL. The algorithm can be between nearest neighbor and linear interpolation, depending if the value of the sharpen (i.e. the first) slider is 0 or 1, respectively. The upper left quadrant shows the results of a 100x zoom in on a 4 pixel by 4 pixel image of random colors with this algorithm. The lower left is the same algorithm with a smoothing curve applied.
For comparison, the upper right shows a stock linear interpolation and the lower right shows a cubic interpolation with the B and C values controlled by the two remaining sliders.