Write a program to accomplish the following tasks:
- draw a rectangle with vertices (0,0), (0,100), (200,100), (200,0).
- translates the rectangle to the mouse clicked location.
- Zoom-in the shape by pressing the "+" key, and Zoom-out by pressing the "-" key. (Hint: Use the equations x = x0*Sx, and y = y0*Sy, where Sx and Sy are constants)
Comments
Post a Comment