recursive call of function or timer infinity
show/hide two images
To explain behavior:
Timer.performWithDelay just calls function passed as argument. So if your argument was createBrick(0,0) then timer is trying to do something like this: createBrick(0,0)() which doesn’t work because createBrick probably doesn’t return function (yes, function is executed before it is passed as timer argument). You must pass parametless function as argument, but you pass result of calling
createBrick()