Like the topic title says, how does TileImage work? I've written a little demo but it doesn't tile the image that is created, why?
Graphics 640, 480, 0
'-- CONSTANTS ---------------------------------------------------
Const WIDTH = 100
Const HEIGHT = 100
Const DOTS = 100
'-- END CONSTANTS -----------------------------------------------
'-- IMAGES -------------------------------------------------------
dotImage = CreateImage(WIDTH, HEIGHT)
'-- END IMAGES ---------------------------------------------------
SeedRnd MilliSecs()
LockImage dotImage
For counter = 0 To DOTS
Plot Rnd(WIDTH), Rnd(HEIGHT)
Next
UnlockImage dotImage
'-- MAIN LOOP ----------------------------------------------------
While Not KeyHit(KEY_ESCAPE)
TileImage dotImage
FlushMem
Flip
Wend
'-- END MAIN LOOP ------------------------------------------------
End
Thanks, Nicolas.
Graphics 640, 480, 0
'-- CONSTANTS ---------------------------------------------------
Const WIDTH = 100
Const HEIGHT = 100
Const DOTS = 100
'-- END CONSTANTS -----------------------------------------------
'-- IMAGES -------------------------------------------------------
dotImage = CreateImage(WIDTH, HEIGHT)
'-- END IMAGES ---------------------------------------------------
SeedRnd MilliSecs()
LockImage dotImage
For counter = 0 To DOTS
Plot Rnd(WIDTH), Rnd(HEIGHT)
Next
UnlockImage dotImage
'-- MAIN LOOP ----------------------------------------------------
While Not KeyHit(KEY_ESCAPE)
TileImage dotImage
FlushMem
Flip
Wend
'-- END MAIN LOOP ------------------------------------------------
End
Thanks, Nicolas.