[racket] rotate an image using 2htdp/image

From: Stephen Bloch (sbloch at adelphi.edu)
Date: Mon Jul 19 13:09:48 EDT 2010


On Jul 19, 2010, at 11:54 AM, Mathew Kurian <bluejamesbond at gmail.com> wrote:

> I am trying to rotate an image around a certain point. Using the 2htdp/image and its rotate function, it seems to be rotating the image.
> 
> But what is it rotating around?

In a sense, it's the center (more precisely, the center of the bounding rectangle).  But to do what you probably want to do, here's a little trick:  overlay it on a white or transparent circle large enough to completely contain it.  Wherever you put the center of the circle, that's what it'll rotate around.

Steve Bloch

Posted on the users mailing list.