Skip to content

Владислав Садыров - #3

Open
SVladislav wants to merge 2 commits into
trpomoais2017:masterfrom
SVladislav:master
Open

Владислав Садыров#3
SVladislav wants to merge 2 commits into
trpomoais2017:masterfrom
SVladislav:master

Conversation

@SVladislav

Copy link
Copy Markdown

L-system

Comment thread L-system.js
var teleport;
var languagesSelect = myForm.language;

function Fractals(){

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

В JS принят camelCase. Исключения: константы (SOME_CONSTANT) и конструкторы, которые как раз именуются с большой буквы

Comment thread L-system.js Outdated
ctx.lineTo(point.x , point.y);
}
function Universal(){
for(var i=0; i<n; i++){

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

этот цикл получения итогового слова - должен быть в отдельной функции

Comment thread L-system.js Outdated
}
newF = axiom;

for(var comand of newF){

Copy link
Copy Markdown

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