Re: Scaling Gradients

2012-08-01 Thread Alejandro Tejada
Hi All, You could download this stack from: http://andregarzia.on-rev.com/alejandro/stacks/penToolv032h.zip In this stack, you could import Adobe Ilustrator files 7 or minor that uses gradients. Then, using the Transformation palette you could scale, rotate, reflect and skew this imported file. I

Re: Scaling Gradients

2012-08-01 Thread Alejandro Tejada
Hi Scott, Scott Rossi wrote > > How I would do this -- 1) determine the offsets of all 3 gradient > coordinates from the graphic's loc, and 2) rotate the gradient coordinates > in alignment with however much the graphic is rotated, keeping in mind > offsets from the center. > Now it is working

Re: Scaling Gradients

2012-07-31 Thread Scott Rossi
Hi Alejandro: How I would do this -- 1) determine the offsets of all 3 gradient coordinates from the graphic's loc, and 2) rotate the gradient coordinates in alignment with however much the graphic is rotated, keeping in mind offsets from the center. Regards, Scott Rossi Creative Director Tactil

Re: Scaling Gradients

2012-07-31 Thread Alejandro Tejada
In that case... Monte Goulding wrote > > Why don't you rotate around the via property > of the gradient. That way it will be right. > it would be a translation and a rotation of these gradient properties. Let's see how that works. Al -- View this message in context: http://runtime-revol

Re: Scaling Gradients

2012-07-31 Thread Monte Goulding
> Look what happen when I rotate this graphic > filled with a gradient: > > http://andregarzia.on-rev.com/alejandro/img/Gradients05.jpg Why don't you rotate around the via property of the gradient. That way it will be right. -- M E R Goulding Software development services Bespoke application d

Re: Scaling Gradients

2012-07-31 Thread Alejandro Tejada
Hi Monte, Monte Goulding wrote > > 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

Re: Scaling Gradients

2012-07-31 Thread Mark Wieder
Monte- Tuesday, July 31, 2012, 7:05:14 PM, you wrote: > 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 re

Re: Scaling Gradients

2012-07-31 Thread Monte Goulding
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/

Re: Scaling Gradients

2012-07-31 Thread Thomas McGrath III
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 3mcgr...@comcast.net On Jul 31, 2012, at 9:00 PM, Alejandro Tejada wrote: > Hi Mark, > > > Mark Wieder wrote >> >> [snip] >> Hmmm. How about creating

Re: Scaling Gradients

2012-07-31 Thread Alejandro Tejada
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 gr

Re: Scaling Gradients

2012-07-31 Thread Mark Wieder
Alejandro- Tuesday, July 31, 2012, 4:55:00 PM, you wrote: > I scale the graphics by setting the points of the polygons, > "set the point of grc id 1345 to tListofPoints" > Probably, you are setting the rect, width, height and location > of these vector graphics, but this would not work for rotat

Re: Scaling Gradients

2012-07-31 Thread Alejandro Tejada
Hi Scott, Scott Rossi wrote > > Maybe the answer depends on how you're scaling the graphic. > I scale graphics that contain gradients all the time and the > gradient scales with the graphic. > FWIW, the UI components in tmControl are all vector-based controls, > with gradients -- no images (exce

Re: Scaling Gradients

2012-07-31 Thread Scott Rossi
Hi Alejandro: Maybe the answer depends on how you're scaling the graphic.  I scale graphics that contain gradients all the time and the gradient scales with the graphic. FWIW, the UI components in tmControl are all vector-based controls, with gradients -- no images (except for icons). Regards,