gradient background

Chipp Walters chipp at chipp.com
Mon Jul 21 17:23:01 EDT 2003


I generally import a small JPG gradient image and then stretch it to fit.
Keeps the filesize small.

-Chipp

> -----Original Message-----
> From: use-revolution-admin at lists.runrev.com
> [mailto:use-revolution-admin at lists.runrev.com]On Behalf Of Dar Scott
> Sent: Monday, July 21, 2003 2:32 PM
> To: use-revolution at lists.runrev.com
> Subject: Re: gradient background
>
>
>
> On Monday, July 21, 2003, at 10:15 AM, rtamesis at cox.net wrote:
>
> > I want to create a gradient background for my stack without having to
> > import an image for that purpose. Can anyone tell me how to accomplish
> > this?
>
> One approach: Group an image.  Set the backgroundBehavior to true.
> Make a group handler that makes sure the image size is right (a little
> hand waving, here) computes the gradient, builds an imageData string
> and sets the imageData of the image.  Perhaps it is based on custom
> properties and stack size.  At design time run the handler using the
> "Send Message" submenu on the context menu.  If it is fast enough, you
> might be able to do this at run time.  You might get bands; maybe
> adding a little noise before rounding to color values will help.
>
> Dar Scott
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list