Zitat von fuxer
is this how i should use it?
sfond = Image.load("sfond.png")
function rotateImage(theImage, angle)
screen:blit(0,0,theImage)
angle = angle*(6 + (1/3))/360
for x = 1, theImage:width() do
for y = 1, theImage:height() do
tX = math.cos(angle)*(x-theImage:width()) - math.sin(angle) * (y-theImage:height())
tY = math.sin(angle)*(x-theImage:width()) + math.cos(angle) * (y-theImage:height())
screen:fillRect(tX + 240, tY + 136, 2, 2, screen:pixel(x, y))
end
end
end
while true do
rotateImage(sfond,360)
......... etc
i get an error line 29 wich is the screen:fillrect, an argument was incorrect