Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 300 Bytes

File metadata and controls

6 lines (5 loc) · 300 Bytes

Classical OOP in JavaScript

  1. Create a module for drawing shapes using Canvas. Implement the following shapes:
    • Rect, by given position (X, Y) and size (Width, Height)
    • Circle, by given center position (X, Y) and radius (R)
    • Line, by given from (X1, Y1) and to (X2, Y2) positions