Details for Javascript program for Image Rotation

This program rotates the image selected from the dropdown menu
using nearest-neighbor interpolation (usually works, see Chapter 4).
For some images, nearest-neighbor interpolation produces artifacts.

Slides: Rotation angle θ in degrees (clockwise).
Displayed: Original image and rotated image.