Meter=Rotator displays an image that rotates around a point based on a measure.
- General meter options
- All general meter options are valid.
- General image options
All general image options are valid for
- Path of the image file.
- Name of the measure whose percentual value controls the angle of rotation. The measure must be a percentual value or have MinValue and MaxValue set.
- X-offset and Y-offset of the center of rotation.
The starting angle in radians for the image. This defines the starting point on the circle that will be treated as zero percent. The zero angle is to the right of the center.
(2 * pi)
The size of the rotation angle in radians for the image. This defines the distance in radians from
StartAnglethat the meter will travel around the circle when the measure value is 100%. Use a negative value for counter-clockwise rotation.
Use a remainder instead of the actual measured value.
This is primarily used to draw an analog clock. When used with the value of a Time measure in MeasureName the meter will internally use the
%modulo mathematical operator, and calculate the meter based on the remainder when the number of seconds in the Time measure is divided by the following values:
- Hours Hand:
ValueRemainder=43200Seconds in a 12-hour analog clock face.
- Minutes Hand:
ValueRemainder=3600Seconds in an hour.
- Seconds Hand:
ValueRemainder=60Seconds in a minute.
- Hours Hand:
The center of rotation will be located at the center of the height and width specified for the meter. If height and width are not specified, the center of rotation will be located at the X and Y coordinates provided for the meter. It is also important to remember that if the height and width are not specified, any portion of the meter that lies outside of the skin window will be cut off.
Here is an example of how to Rotate an Image Around its Center.
An example skin demonstrating a Rotator meter.