RaspberryPi Stacks

Moderators: heatherlaine, Klaus, FourthWorld, robinmiller, kevinmiller

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1764
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: RaspberryPi Stacks

Post by [-hh] » Fri Feb 16, 2018 8:39 am

Raspberry Pi stacks collection #106 = beforeAfterImage.livecode

Before-After-Image = LC-Magick #12
version 1.0.0 of Feb 16, 2018

Before-After-Image shows an "original" image (image "before") and a selectable horizontal or vertical part of it visually replaced by the changed image (image "after").

A button (at bottom right) switches the order of "before" and "after" parts.
You select the proportions of the parts by sliders.

For use in your own stack you only have to provide *one* "before-image" and *one to many*
"after-images" -- as the demo shows.
  • Use LC 6.0.5 (or slower: 7.0.4) on Raspi.
  • Use LC 6.7.11 / 7.1.4 and 8.1.6/ 9.0.0 or later on Mac/Win/linux
The stack is too large for the forum. You can have it
  1. by opening an LC IDE, version as denoted above, then type in or copy-paste to msg:
    [EU] go stack url ("http://hyperhh.org/xstacks/beforeAfterI ... 0.livecode")
    [US] go stack url ("http://hh.on-rev.com/xstacks/beforeAfte ... 0.livecode")
    _or_
  2. by downloading in your browser
    [EU] http://hyperhh.org/xstacks/beforeAfterI ... vecode.zip
    [US] http://hh.on-rev.com/xstacks/beforeAfte ... vecode.zip
    Then open it in an LC IDE, version as denoted above.
Attachments
BeforeAfterV.png
Vertical "Before" and "After" (Dithered)
BeforeAfterV.png (151.66 KiB) Viewed 778 times
beforeAfter.png
Horizontal "Before" and "After" (Dithered)
beforeAfter.png (151.46 KiB) Viewed 783 times
shiftLock happens

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1764
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: RaspberryPi Stacks

Post by [-hh] » Thu Sep 20, 2018 9:19 am

Raspberry Pi stacks collection #107 = ControlHandles67

ControlHandles is a group of handles (polygon and graphics) that essentialy work, in browse mode, as the object handles in pointer mode.

It is all in one menu button by which you include/exclude which controls are selectable as target. The rest is done by the button.

controlhandles.png
controlhandles.png (3.74 KiB) Viewed 410 times

This works for *ALL* LC controls:
CLICK ACTIONS
  • 1,3,5,7: Resize
    1,3,5,7 + Shift- or RightClick: Resize proportionally
  • 2,6: Height
  • 4,8: Width
  • 9,10,11,12: Grab
    9,10,11,12 + Cmd or RightClick: Hide Poly
    9,10,11,12 + Shift: Hide Control and Poly
While using the handles, width x height and the rect of the control are displayed.

Scripts are 'essentially' commented. For this stack
  • use LC 6.0.5 (or slower: 7.0.4) on Raspi.
  • use LC 6.7.11/ 7.1.4/ 8.1.9/ 9.0.0 on Mac/Win/linux
An identical version of this stack that contains widgets (requires LC 8/9) is available from "Sample Stacks"
or from http://livecodeshare.runrev.com/stack/902

## v1.0.4 Sep 20, 2018
 
Attachments
ControlHandles67_v104.livecode.zip
(228.81 KiB) Downloaded 75 times
controlhandles67.png
controlhandles67.png (13.12 KiB) Viewed 410 times
shiftLock happens

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1764
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: RaspberryPi Stacks

Post by [-hh] » Thu Sep 20, 2018 9:44 am

I lost oversight, a table of contents may be also comfortable for you.

[Table of contents (as of Sep 20, 2018)
shiftLock happens

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

Re: RaspberryPi Stacks

Post by bogs » Thu Sep 20, 2018 1:10 pm

Every time you post, I'm amazed -hh. Awesome stuff there.
Image

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1764
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: RaspberryPi Stacks

Post by [-hh] » Thu Sep 20, 2018 1:37 pm

So there is at least one user but me! Thanks bogs.
shiftLock happens

SparkOut
Posts: 1797
Joined: Sun Sep 23, 2007 4:58 pm

Re: RaspberryPi Stacks

Post by SparkOut » Thu Sep 20, 2018 8:09 pm

You know there is more than one who thinks [-hh] and all his work is awesome

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1764
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: RaspberryPi Stacks

Post by [-hh] » Thu Sep 20, 2018 9:53 pm

So there are at least two users but me! Thanks SparkOut.
shiftLock happens

Klaus
Posts: 10327
Joined: Sat Apr 08, 2006 8:41 am
Location: Germany
Contact:

Re: RaspberryPi Stacks

Post by Klaus » Thu Sep 20, 2018 9:57 pm

Count me in, folks! 8)

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1764
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: RaspberryPi Stacks

Post by [-hh] » Thu Sep 20, 2018 9:59 pm

So there are at least three users but me! Thanks Klaus.
shiftLock happens

Simon
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 3901
Joined: Sat Mar 24, 2007 2:54 am
Location: Palo Alto

Re: RaspberryPi Stacks

Post by Simon » Thu Sep 20, 2018 11:56 pm

I'll come out of hiding to be counted.
Awesome work -hh
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!

[-hh]
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 1764
Joined: Thu Feb 28, 2013 11:52 pm
Location: Göttingen, DE

Re: RaspberryPi Stacks

Post by [-hh] » Fri Sep 21, 2018 12:17 am

So there are at least four users but me! Thanks Simon.


____________
There are three kinds of mathematicians. One kind can count and the other can not count ...
shiftLock happens

Post Reply

Return to “Raspberry Pi”