Rotate around Center of Mass
Mark Schonewille
m.schonewille at economy-x-talk.com
Sat Jan 7 14:02:39 EST 2012
Hi Mark,
You could export a snapshot of the left and right sides of the image and "rotate" them around their right and left edges.
--
Best regards,
Mark Schonewille
Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553
Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission!
On 7 jan 2012, at 19:15, AcidJazz wrote:
> Is there a way to rotate an image around it's center of mass? I teach
> statistics, and one of the definitions of the mean is that it is the balance
> point of a distribution. I'd like to actually show a distribution
> "balancing" back and forth, or actually spinning around its mean. But, if
> I take an image of a very skewed distribution of scores (long tail) and
> tried to rotate it, it would rotate around the center of the /image/, which
> would not necessarily be the mean of the distribution. I image that the
> solution involves extending the size of the image so that it is now centered
> on the mean, but without altering or moving the actual distribution. In
> BlueMango's Clarify, after you take a snapshot, you can extend the size of
> the image without stretching the picture. I would need a way to do that
> programmatically so that the horizontal center is the mean of the
> distribution. Any suggestions??
>
> Mark
>
>
More information about the use-livecode
mailing list