Changeset View
Changeset View
Standalone View
Standalone View
a/src/activities/simplepaint/simplepaint.js
Context not available. | |||||
131 | var currentLevel = 0 | 131 | var currentLevel = 0 | ||
---|---|---|---|---|---|
132 | var numberOfLevel = backgrounds.length | 132 | var numberOfLevel = backgrounds.length | ||
133 | 133 | | |||
134 | function start(main_, items_) { | 134 | var background | ||
135 | | ||||
136 | function start(main_, items_, _background) { | ||||
137 | background=_background | ||||
135 | main = main_ | 138 | main = main_ | ||
136 | items = items_ | 139 | items = items_ | ||
137 | currentLevel = 0 | 140 | currentLevel = 0 | ||
Context not available. | |||||
146 | items.paintModel.clear() | 149 | items.paintModel.clear() | ||
147 | nbx = 20 + currentLevel | 150 | nbx = 20 + currentLevel | ||
148 | nby = Math.floor(nbx * (main.height / main.width)) | 151 | nby = Math.floor(nbx * (main.height / main.width)) | ||
152 | background.refreshCursor() | ||||
149 | 153 | | |||
150 | var model = [] | 154 | var model = [] | ||
151 | for(var ix = 0; ix < nbx; ++ix) { | 155 | for(var ix = 0; ix < nbx; ++ix) { | ||
Context not available. |