Aici sunt prezentate diferențele dintre versiunile selectate și versiunea curentă a paginii.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
module:10-functii-si-rutine:lectie-03 [2014/05/17 19:01] mariana [Task 4] |
module:10-functii-si-rutine:lectie-03 [2014/05/17 22:25] mariana [Task 4] |
||
---|---|---|---|
Linia 97: | Linia 97: | ||
var x = coords[index][0]; | var x = coords[index][0]; | ||
var y = coords[index][1]; | var y = coords[index][1]; | ||
- | drawRect(x, y, colorsSelected); | + | drawButton(x, y, colorsSelected); |
i = i + 1; | i = i + 1; | ||
if (i % speed === 0) { | if (i % speed === 0) { | ||
- | drawRect(x, y, colors); | + | drawButton(x, y, colors); |
} | } | ||
if (floor(i/speed) >= coords.length) { | if (floor(i/speed) >= coords.length) { |