This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // lib220 | |
| /** | |
| * Pixel: The type of each element in a canvas. | |
| * Each number in pixel represents R, G, B, respectively. | |
| */ | |
| type Pixel = [number, number, number]; | |
| interface Canvas { | |
| /** | |
| * The drawLine function draws a line on the canvas that stretches from a designated |