Round Corners

Visuals, audio, animation. Blended, not stirred. If LiveCode is part of your rich media production toolbox, this is the forum for you.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

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

Round Corners

Post by richmond62 » Thu Mar 31, 2016 11:39 am

There's been a lot of "Hoo Haa" over on the Use-List:
RoundCorners.gif
The stack is here:

https://www.dropbox.com/s/ce57yiy7xj4k9 ... e.zip?dl=0

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

Re: Round Corners

Post by richmond62 » Thu Mar 31, 2016 11:45 am

If one really wants to be daft this can be extended to ridiculous lengths:
Attachments
Silly.gif

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

Re: Round Corners

Post by richmond62 » Sun Apr 03, 2016 3:59 pm

Here's a "moronic start" to a stack for importing images and rounding their corners,
then exporting the result:
chop.gif
In NO way should this be considered "a done deal":

1. Suggest changes / improvements to me,

or

2. Change / improve the thing yourself and upload it here.
Last edited by richmond62 on Mon Apr 04, 2016 8:05 am, edited 1 time in total.

capellan
Posts: 654
Joined: Wed Aug 15, 2007 11:09 pm

Re: Round Corners

Post by capellan » Sun Apr 03, 2016 9:42 pm

Hi Richmond,

Where is the stack "Floater" named in the script?

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

Re: Round Corners

Post by richmond62 » Mon Apr 04, 2016 8:06 am

Ha, Ha, Ha: "Floater" is a stack in my Devawriter Pro stacks: I swiped some of the code from there.

Well spotted, that man!

Here's an "adjusted" version.

Now removed as superseded by stack below.
Last edited by richmond62 on Mon Apr 04, 2016 4:19 pm, edited 1 time in total.

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

Re: Round Corners

Post by richmond62 » Mon Apr 04, 2016 4:19 pm

Here's the next step; using absolutely the most bog-basic code you can imagine

(all you purists can check out the button script in "Export Image" and get upset)

will export the image with rounded corners AND ink effects.
chop2.gif
chop3.gif
Attachments
CHOPPER.livecode.zip
Here's the stack.
(45.32 KiB) Downloaded 356 times

Post Reply