Set the fillGradient

Alejandro Tejada capellan2000 at gmail.com
Mon Sep 5 15:24:36 EDT 2016


Hi All,

Years ago, Scott Rossi published this stack:
http://www.tactilemedia.com/site_files/downloads/gradient_explorer.rev.zip

Does Scott Rossi still sells a Palette to
work with gradients?

By the way, there a few different ways to paste
a gradient in another graphic.

For example:
1) paste a gradient of exact size
on the location of a new graphic.

2) paste a gradient of exact size
at a new angle on the location
of a new graphic.

3) paste a gradient proportionally
on the rectangle of a new graphic.

4) paste a gradient proportionally
at a new angle on the rectangle
of a new graphic.

Creating these handlers just require
basic math and the most scarce resource
of all: Time, quality time to devote to
this task. :)

Have a nice week!

Alejandro


Randy Hengst wrote,
On Thursday, Sep 1 2016:

> To make this work via script, I’ve done two things…
> the easiest is to set the grc that I want to change
> to the size and position of the a grc master with
> the fill gradient I want to match… in this example,
> the script is in the grc to be changed:

on mouseDown
   local tStartLoc
   put the loc of target into tStartLoc
   set the loc of target to the loc of grc "Blue MasterChip"
   set the fillGradient of target to the fillGradient of grc "Blue MasterChip"
   set the loc of target to tStartLoc
end mouseDown




More information about the use-livecode mailing list