Import "funny" snapshot

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Import "funny" snapshot

Post by richmond62 » Thu Aug 06, 2020 11:59 am

Well, not very funny, but, possibly, useful (Wow, my commas might run out in a minute).

I was musing, as one does, on windowShape and something I read the other day (which I now cannot locate)
about someone wanting to "punch holes" in stack windows using windowShape on the fly.

Initially that seemed a bit bonkers until I wondered about whether it might be possible to import a snapshot
of all or part of a stack windows to use as a mask for a windowShape.

It certainly seems to work.

bogs
Posts: 5480
Joined: Sat Feb 25, 2017 10:45 pm

Re: Import "funny" snapshot

Post by bogs » Thu Aug 06, 2020 2:17 pm

I'm not positive I understand the goal. You can certainly have a group of images (depending on how you want the holes to appear, an animated gif would do), and have the window shape change based on the image used.

For instance, this little time waster (press esc. to kill it).
minWalk.zip
I took a walk about...
(24.57 KiB) Downloaded 226 times
Image

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Re: Import "funny" snapshot

Post by richmond62 » Thu Aug 06, 2020 3:23 pm

Well . . .

Imagine a very goofy game where there was a drag-and-drop image, and when an end-user
having dragged the image then dropped it . . . and there were areas designated as where
the end-user could NOT drag the image, and those were desiganated by transparent patches
right through the stack to the underlying whatever (end-user's desktop, photo of end-user's
granny, windows of other apps, etc.).

Those transparent no-go areas changing dependent on where the image were dropped . . .

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 10099
Joined: Fri Feb 19, 2010 10:17 am

Re: Import "funny" snapshot

Post by richmond62 » Thu Aug 06, 2020 7:45 pm

I must be bonkers. 8)
-
bonkers.jpg
Attachments
Kinky shapes.livecode.zip
Here's the stack.
(3.72 KiB) Downloaded 180 times

Post Reply