Rotator meter 回転計

Meter=Rotator displays an image that rotates around a point based on a measure.Meter=Rotator メジャーに基づいてポイントを中心に回転する画像を表示します。

The values for StartAngle and RotationAngle are defined in RadiansStartAngleおよびRotationAngleの値はラジアンで定義されています

Optionsオプション

General meter options一般メーターオプション
All general meter options are valid.一般的なメーターオプションはすべて有効です。
General image options一般的な画像オプション
All general image options are valid for ImageName.すべての一般的な画像オプションはに有効です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.パーセント値で回転角度を制御するメジャーの名前。尺度がなければなりませんpercentual値をか持ってMinValueプロパティMaxValueをセットします。
OffsetX, OffsetY Default: 0.0OffsetXOffsetY デフォルト:0.0
X-offset and Y-offset of the center of rotation.回転中心のXオフセットとYオフセット
StartAngle Default: 0.0StartAngle デフォルト: 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)RotationAngle デフォルト: (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.画像の回転角度のサイズ(ラジアン)。これは、StartAngle測定値が100%のときにメーターが円周上を移動する距離をラジアンで定義します。反時計回りに負の値を使用してください。

ValueRemainder Default: 0ValueRemainder デフォルト: 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:これは主にアナログ時計を描くのに使われます。MeasureNameTimeメジャーの値と共に使用すると、メーターは内部でモジュロ数学演算子を使用し、Timeメジャーの秒数を次の値で割ったときの余りに基づいてメーターを計算します。%

  • Hours Hand: ValueRemainder=43200 Seconds in a 12-hour analog clock face.ValueRemainder=43200時針:12時間表示のアナログ時計の文字盤の秒。
  • Minutes Hand: ValueRemainder=3600 Seconds in an hour.分針:ValueRemainder=36001時間に1秒。
  • Seconds Hand: ValueRemainder=60 Seconds in a minute.秒針:ValueRemainder=601分で秒。

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.回転中心は、メーターに指定された高さと幅の中心に配置されます。高さと幅が指定されていない場合、回転の中心はメーターに提供されているX座標とY座標に配置されます。高さと幅が指定されていない場合、スキンウィンドウの外側にあるメーターの部分は切り取られることを覚えておくことも重要です。

Here is an example of how to Rotate an Image Around its Center.これは中心を中心に画像回転させる方法の例です。

Example

[Rainmeter]
Update=1000

[Metadata]
Name=ExampleMeterRotator
Author=The Rainmeter Team
Information=Example of the Rotator meter
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=1.0

[MeasureTime]
Measure=Time

[MeterClockFace]
Meter=Image
ImageName=#@#Images\ClockFace.png
W=110
H=116

[MeterHoursHand]
Meter=ROTATOR
MeasureName=MeasureTime
X=0
Y=0
W=110
H=116
ImageName=#@#Images\Hours.png
OffsetX=3
OffsetY=3
StartAngle=4.7124
RotationAngle=6.2832
ValueRemainder=43200

[MeterMinutesHand]
Meter=ROTATOR
MeasureName=MeasureTime
X=0
Y=0
W=110
H=116
ImageName=#@#Images\Minutes.png
OffsetX=3
OffsetY=3
StartAngle=4.7124
RotationAngle=6.2832
ValueRemainder=3600

[MeterSecondsHand]
Meter=ROUNDLINE
MeasureName=MeasureTime
X=0
Y=0
W=110
H=116
LineLength=52
LineColor=247,220,129,255
LineWidth=2
AntiAlias=1
StartAngle=4.7124
RotationAngle=6.2832
ValueRemainder=60

An example skin demonstrating a Rotator meter.Rotatorメーターを示すサンプルスキン

関連記事

スポンサーリンク

body要素の内容領域をはみ出す部分がレンダリングされない

ホームページ製作・web系アプリ系の製作案件募集中です。

上に戻る