Gradients (was "Re: Table field")

Peter Haworth pete at lcsql.com
Wed Jun 27 02:24:53 EDT 2012


Thanks Bernd.  I think I'm finally beginning to understand at least some of
the gradient parameters. I still can't figure out how to do this in the
Inspector though but that's OK, the scripts from everyone work great.
Pete
lcSQL Software <http://www.lcsql.com>



On Tue, Jun 26, 2012 at 2:07 PM, BNig <niggemann at uni-wh.de> wrote:

> Pete,
>
> the ramp of the gradient has 4 positons. 1 at 0, 2 at .50001 and 1 at
> 1.0000
> the ramp is what you work on in the inspector.
>
> the first two define the first color and the other two the second color. By
> setting the color of the pair of the positions to the same color and making
> the middle position the same you get the homogenous colors and the sharp
> dividing line.
>
> in Ken's wonderful stack you could fill these values in
>
> Type:   linear
> To:     377,400
> Quality:        good
> Ramp:   0.00000,255,255,255
>        0.50001,255,255,255
>        0.50001,241,245,250
>        1.00000,241,245,250
> From:   374,191
> Via:    469,191
> Mirror: false
> Repeat: 1
> Wrap:   true
>
> That is the fillgradient from the graphic alternatingLines. The To, Via,
> and
> From values are for Ken's stack.
>
> It is helpful to make a little script that gets the fillgradient (or
> strokegradient) of a graphic:
>
> ----------------
> put the fillgradient of grc "myGraphic" into tData
> combine tData by return and tab
> put tData into field "myField"
> ---------------------
>
> Kind regards
> Bernd
>
> --
> View this message in context:
> http://runtime-revolution.278305.n4.nabble.com/Table-field-tp4651080p4651323.html
> Sent from the Revolution - User mailing list archive at Nabble.com.
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list