developed the ruler in canvas.