<canvas> elements named canvasInput have been prepared. Click Try it button to see the result. You can choose another image. You can change the code in the <textarea> to investigate more.
The perimeter is: