Rotating images

Randall Reetz randall at
Sat Apr 25 15:07:10 EDT 2009

What no one has told me yet is if these images one can rotate in rev are images in containers or images as bitmaps.  In supercard, you can assign an image as path to disc image file to any grahic object.  That object acts as a bounding mask of the image it contains and is independent of the image manipulatins performed to the bitmap within.  If you rotate the polygon that holds an image, the image remains virtically oriented while the bounding polygon rotates around it.  Or, using quad functionality, you can rotate the internal image and leave the polygon static.  But weirdly, it is almost imposible to do manipulate both image and holding graphic in lockstep.

How about rev?
-----Original Message-----
From: "James Hurley" <jhurley0305 at>
To: use-revolution at
Sent: 4/25/2009 7:09 AM
Subject: Re: Rotating images

> --------------------------
> Message: 12
> Date: Fri, 24 Apr 2009 17:49:05 -0700
> From: Scott Rossi <scott at>
> Subject: Re: Rotating images
> To: Revolution Mail List <use-revolution at>
> Message-ID: <C617AC11.411B3%scott at>
> Content-Type: text/plain;	charset="US-ASCII"
> Recently, Randall Reetz wrote:
>> Can one rotate images by degree or fraction of degree?
> You should be able to rotate an image simply by using:
>  set the angle of img "myCoolImage" to 45
> The docs say the numeric value is an integer so like most position- 
> based
> things in Rev you can only use whole numbers, no fractions.  Until  
> Rev gets
> subpixel positioning, we won't be able to accomplish fine  
> positioning of
> graphics and images.
> Regards,
> Scott Rossi
> Creative Director
> Tactile Media, Multimedia & Design

Scott (and Randall),

I've been playing with moving images around a loop while keeping the  
image oriented along the tangent and found some strange things about  
the input that RR allows.

It turns out that RR will truncate a fractional angle for you. (See  
script below.)
It will also accept fractional input to "move image from pt1 to pt2"  
where the two points have fractional items, but will not accept a  
fractional input to "Move image to tPt" if tPt contains fractional  

Nor will RR accept fractional input to setLoc but there will be no  
error message. It just interest a return into the list of points and  
you get a gap in the line, or nothing if all the points are fractional.

I put in a request many years ago asking that RR do all the truncating  
in the engine. Sooo much simpler. If that request is still active, I  
would appreciate your vote. (The trouble is that I means I have to  
keep two sets of books for the graphic points, one for calculating the  
tangent angle and one for setting the graphic points to display the  

So in summary:

Accepts fractional input:
    Move object  from pointA to pointB
    Set angle  of image to tAngle

Does not accept fractional input:
    Move object to tPoint

[truncated by sender]

More information about the use-livecode mailing list