-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
simple koch fractal app #2
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Решение огонь :-)
Правда ты решил ее по методике L-систем, которые мы еще только будем разбирать. Пусть будет 2 задачи за одно решение.
let y = y0; | ||
let currentAngle = 0; | ||
|
||
const drawNextLine = () => drawLine(context, lineLength, x, y, currentAngle); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не стоит делать замыкание для одного вызова: кода больше становится, а смысл тот же.
Сергей Кузьминов