Scaling Gradients

Monte Goulding monte at sweattechnologies.com
Tue Jul 31 22:05:14 EDT 2012


I don't see why you need to do this operation while scaling. It would appear to be a different use case. If you do need to rotate and scale at the same time then why not work out your scaling factor, rotate the points then scale the rect. Same as Mark's idea but no extra graphic created.

On 01/08/2012, at 11:58 AM, Thomas McGrath III wrote:

> Mark, Alejandro,
> 
> I think that is pure genius and I hope it works. Very cool idea.
> 
> Just saying
> 
> -- Tom McGrath III
> http://lazyriver.on-rev.com
> 3mcgrath at comcast.net
> 
> On Jul 31, 2012, at 9:00 PM, Alejandro Tejada wrote:
> 
>> Hi Mark,
>> 
>> 
>> Mark Wieder wrote
>>> 
>>> [snip]
>>> Hmmm. How about creating the list of points, creating a new invisible
>>> graphic, setting its points to the list, getting its rect, deleting
>>> it, and then setting the rect of your graphic to the new rect, then
>>> setting its points. That should scale the gradient first and then
>>> adjust to the new point layout. Just a thought.
>>> 
>> 
>> I suspect that your idea could work fine for scaling (locking the screen
>> to avoid the sudden changes of graphics position). Only testing could
>> tell if this could work for rotating, reflect and skew vector graphics
>> filled
>> with gradients.
>> 
>> Alejandro
>> 
>> 
>> 
>> 
>> --
>> View this message in context: http://runtime-revolution.278305.n4.nabble.com/Scaling-Gradients-tp4653156p4653177.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
> 
> 
> _______________________________________________
> 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

--
M E R Goulding 
Software development services
Bespoke application development for vertical markets

mergExt - There's an external for that!




More information about the use-livecode mailing list