Hi Pete: Use duplicate gradient stops in the ramp:
0.00000,255,0,0 -- red 0% 0.50000,255,0,0 -- red 50% 0.50000,0,255,0 -- green 50%, same position as above 1.00000,0,255,0 -- green 100% Regards, Scott Rossi Creative Director Tactile Media, UX Design Recently, Peter Haworth wrote: > Thanks Scott. As usual, a very useful learning tool. > > Here's what I can't figure out though. Your stack fades in the colors from > top to bottom. How can I get the graphic to contain two separate colors, > one that fills the top half of the graphic and another that fills in the > bottom half, with no fading just a clean horizontal break between them. > > Maybe gradients are not the way to do this, although Bern'ds table stack > uses them for the graphic involved in coloring alternate lines - I just > can't figure out all the values for the different gradient array keys. > > Pete > lcSQL Software <http://www.lcsql.com> > > > > On Mon, Jun 25, 2012 at 10:31 AM, Scott Rossi <sc...@tactilemedia.com>wrote: > >> Hi Peter: >> >> Execute the following in your LiveCode message box: >> >> go url >> "http://www.tactilemedia.com/site_files/downloads/gradient_explorer.rev" >> >> Regards, >> >> Scott Rossi >> Creative Director >> Tactile Media, UX Design >> >> >> >> Recently, Peter Haworth wrote: >> >>> I'm glad this came up because it's an opportunity for me to learn >>> yet another area of Livecode - gradients - for which there is precious >>> little published information. >> >> >> >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your >> subscription preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode >> > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode > _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode