I want an image of a circle with a pattern on it to rotate on screen. (The context is looking down on the north pole of the earth - an irregular pattern on the circle representing the ice- and seeing the earth rotate, showing where it is daylight and where it is night-time.)
I have tried using a photographic image and using a repeat of the rotate function moving 1 degree each time but the image quality just degrades as the image rotates. I also have failed to get a graphic to move using the rotate function.
Could someone please offer some guidance.
Many thanks
Richard
Rotation as an animation
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
-
- VIP Livecode Opensource Backer
- Posts: 4
- Joined: Fri May 13, 2011 4:54 pm
Re: Rotation as an animation
rotate by is a command, and performs an operation on the target object to change the renderable data. Repeated issues of the rotate command will be destructive to the original image.
the angle of an image is a property that you can set, where it has no effect on the image data but is used by the rendering engine to display the image at a particular angle of rotation.
Rather thanyou could
HTH
SparkOut
the angle of an image is a property that you can set, where it has no effect on the image data but is used by the rendering engine to display the image at a particular angle of rotation.
Rather than
Code: Select all
rotate image "theWorldFromAbove" by 1
Code: Select all
set the angle of image "theWorldFromAbove" to the angle of image "theWorldFromAbove" + 1
SparkOut
Re: Rotation as an animation
Hi SparkOut,
Is it possible to rotate group of objects? Is it posible to treat a group of objects as one object and then rotate all of them to a particular angle?
For eg. If I have an object "Oval" and in that different other objects such as Rectangle, line, polygon etc. Now is there any way to rotate the Oval as well as the objects inside it all at once?
Surbhit
Is it possible to rotate group of objects? Is it posible to treat a group of objects as one object and then rotate all of them to a particular angle?
For eg. If I have an object "Oval" and in that different other objects such as Rectangle, line, polygon etc. Now is there any way to rotate the Oval as well as the objects inside it all at once?
Surbhit
Re: Rotation as an animation
Hi Surbhit,
It work with polygons only but that is maybe a start for your experiments
Best regards
Jean-Marc
Yes.Have a look to the stack in attachments it possible to rotate group of objects?
It work with polygons only but that is maybe a start for your experiments
Best regards
Jean-Marc
- Attachments
-
- RotateGroupPolyByAngle.livecode.zip
- rotate a group of polygons
- (1.61 KiB) Downloaded 262 times
https://alternatic.ch
Re: Rotation as an animation
Thanks Jean-Marc
That helped a lot.
That helped a lot.
