Skip to content
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

Open
wants to merge 11 commits into
base: master
Choose a base branch
from
Open

Conversation

DerArvend
Copy link

@DerArvend DerArvend commented Feb 27, 2018

Сергей Кузьминов

Copy link

@disturm disturm left a 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);
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не стоит делать замыкание для одного вызова: кода больше становится, а смысл тот же.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants