Bijoux Buttons

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: 9285
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Bijoux Buttons

Post by richmond62 » Tue Aug 07, 2018 10:06 pm

I received a link to a video from some sort of open-thing talk
by Scott Rossi a while back
where he started demonstrating various button effects that were extremely clever.

However, what with Heather and he doing sound checks and so on I began to drift off into fantasy land . . .

After popping through to the kitchen to knock together a 'path' game to make my nephew's life miserable, as one does:
-
pathPlay.jpg
-
Crude but functional and coming in at about $1.50.
-
I thought I'd muck about at the "fancy button game" myself.

I don't have quite the skill that Scott Rossi has, and I only spent 15 minutes at the first "offering".

I'll try for something a bit more slick-n-slinky later this week [anything to avoid flaming Python]:
-
FB1.png
-
FAUX BUTTONS #1.livecode.zip
Here's the stack.
(3.75 KiB) Downloaded 256 times

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

Re: Bijoux Buttons

Post by bogs » Wed Aug 08, 2018 3:40 am

richmond62 wrote:
Tue Aug 07, 2018 10:06 pm
I don't have quite the skill that Scott Rossi has...
He is something else, and quite imaginative. I remember watching one of his talks where he was showing projects that looked incredibly complex, until he took them apart showing nothing more than simple controls behind the effects.

That demonstration always makes me wonder if my head is just switched off or something.
Image

richmond62
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 9285
Joined: Fri Feb 19, 2010 10:17 am
Location: Bulgaria

Re: Bijoux Buttons

Post by richmond62 » Wed Aug 08, 2018 9:02 pm

on mouseDown
put 0 into ZHULT
repeat until ZHULT > 1
put (quote & ZHULT & ",255,255,102,0" & quote)
set the fillGradient["ramp"] of grc "xx" to SLOPE & return & "1.00000,255,0,0,233"
add 0.01 to ZHULT
wait 1 tick
end repeat
end mouseDown
Not good:

execution error at line 5 (graphic: bad gradient ramp), char 1

Why?

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9802
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Bijoux Buttons

Post by FourthWorld » Thu Aug 09, 2018 1:17 am

The Dictionary suggests removing the first line of the value you're trying to set it to.
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

Post Reply

Return to “Multimedia”