Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
image unroller
#1
A simple little image unroller that does an image reveal like a scroll being unrolled. Someone posted an example in a facebook group in their dialect of basic asking if other forms of basic could handle it. So I whipped this up. 

Code: (Select All)
' Picture unroller
img& = _LoadImage("hexmap0001.jpg", 32) 'your image here
w = _Width(img&)
h = _Height(img&)
sc& = _NewImage(w, h, 32)
Screen sc&
Cls: s = 3
For yc = 0 To h Step s:
    _Limit 30
    _PutImage (0, 0), img&, sc&, (0, 0)-(w, yc)
    _PutImage (0, yc - 6)-(w, yc + 6), img&, sc&, (0, yc)-(w, yc + 3)
Next yc
Reply


Messages In This Thread
image unroller - by James D Jarvis - 05-05-2022, 09:26 PM
RE: image unroller - by James D Jarvis - 05-05-2022, 09:35 PM
RE: image unroller - by euklides - 05-06-2022, 07:41 AM
RE: image unroller - by James D Jarvis - 05-06-2022, 01:11 PM



Users browsing this thread: 2 Guest(s)