Rotator meter
Meter=Rotator
displays an image that rotates around a point based on a measure.
The values for StartAngle and RotationAngle are defined in Radians
Options
- General meter options
- All general meter options are valid.
- General image options
-
All general image options are valid for
ImageName
. ImageName
- Path of the image file.
MeasureName
- 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.
OffsetX
,OffsetY
Default:0.0
- X-offset and Y-offset of the center of rotation.
StartAngle
Default:0.0
-
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.
RotationAngle
Default:(2 * pi)
-
The size of the rotation angle in radians for the image. This defines the distance in radians from
StartAngle
that the meter will travel around the circle when the measure value is 100%. Use a negative value for counter-clockwise rotation. ValueRemainder
Default:0
-
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=43200
Seconds in a 12-hour analog clock face. - Minutes Hand:
ValueRemainder=3600
Seconds in an hour. - Seconds Hand:
ValueRemainder=60
Seconds in a minute.
- Hours Hand:
Remarks
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.
Example
[Rainmeter] |