-
-
Save fedorovvldmr/4ea1cd7a4687c91dfb4f0834f74ccc46 to your computer and use it in GitHub Desktop.
This file contains 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
Левый верхний угол с кооридинатами [0, 0]. Правый нижний - [width-1, height-1] | |
Переменные width, height, доступные в функциях, содержат ширину и высоту окна canvas созданного с помощью createCanvas. | |
Функция start выполняет только 1 раз. Функция draw - множество раз, если не вызвана функция noLoop. | |
Функция redraw вызывает функцию draw один раз. | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment