-
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
Koch Added #1
base: master
Are you sure you want to change the base?
Koch Added #1
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.
Решение рабочее, но стиль должен быть всегда.
koch.html
Outdated
<script src="https://code.jquery.com/ui/1.12.1/jquery-ui.js"></script> | ||
<script> | ||
var size = 500; | ||
var count = 5; |
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.
Похоже у тебя смесь табов и пробелов. В итоге отступы разъехались
koch.html
Outdated
} | ||
|
||
function drawKochSnowflake(context, point1, point2, point3, count){ | ||
fractal(context, point1, point2, count); |
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.
drawFractal
koch.html
Outdated
return { x: center.x + (length * Math.cos(angle)), y: center.y + (length * Math.sin(angle)) }; | ||
} | ||
|
||
function drawLineOn(canvasContext, sPoint, fPoint) { |
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.
startPoint
от Александра Речкалова