It is currently March 29th, 2024, 3:37 pm

Rotating a skin.

Get help with creating, editing & fixing problems with skins
GoofyGoober
Posts: 1
Joined: July 25th, 2014, 12:34 pm

Rotating a skin.

Post by GoofyGoober »

Code: Select all

Update=10000

[Metadata]
Name=Drive Bars
Information=Shows how much space has been used in any two drives on your pc
; Change disk1 and disk2 variables to drives you want to show
; Change VerticalResolution to the resolution of your monitor (Mine is 1080)
Version=1.0

[Variables]
BGColor=0,0,0,100
BarColor=33FF00
TextColor=255,255,255,200
VerticalResolution=768
disk1=C:
disk2=E:
Font=HUN-din 1451
FontSize=25
ImageRotate=0.71

[BarStyle]
BarOrientation=Vertical
SolidColor=#BGColor#
BarColor=#BarColor#
RotationAngle=0.785398163

[TextStyle]
FontFace=#Font#
FontColor=#TextColor#
FontSize=#FontSize#
StringEffect=SHADOW
FontEffectColor=0,0,0,50
Angle=-1.570796
AntiAlias=1

[SpaceStyle]
FontFace=#Font#
FontColor=#TextColor#
FontSize=#FontSize#
StringEffect=SHADOW
FontEffectColor=0,0,0,50
Angle=-1.570796
AntiAlias=1
StringAlign=RIGHT

[Drive1Total]
Measure=FreeDiskSpace
Drive=#disk1#
total=1

[Drive2Total]
Measure=FreeDiskSpace
Drive=#disk2#
total=1

[Drive1Used]
Measure=FreeDiskSpace
Drive=#disk1#
InvertMeasure=1

[Drive2Used]
Measure=FreeDiskSpace
Drive=#disk2#
InvertMeasure=1

[Separator]
Measure=Calc
Formula=0

[Drive1Bar]
Meter=Bar
MeasureName=Drive1Used
X=0
Y=r
W=40
H=#VerticalResolution#
MeterStyle=BarStyle
LeftMouseUpAction=!Execute ["#disk1#\"]

[DriveSeparator]
Meter=Bar
MeasureName=Separator
X=R
Y=r
W=5
H=#VerticalResolution#
BarOrientation=VERTICAL
SolidColor=0,0,0,150

[Drive2Bar]
Meter=Bar
MeasureName=Drive2Used
X=R
Y=r
W=40
H=#VerticalResolution#
MeterStyle=BarStyle
LeftMouseUpAction=!Execute ["#disk2#\"]

[Drive1Text]
Meter=String
MeasureName=Drive1Used
MeasureName2=Drive1Total
X=7
Y=#VerticalResolution#
W=150
H=40
MeterStyle=TextStyle
Text="#Disk1#\     -     %1B    /    %2B"
AutoScale=1
NumOfDecimals=1

[Drive2Text]
Meter=String
MeasureName=Drive2Used
MeasureName2=Drive2Total
X=52
Y=#VerticalResolution#
W=150
H=40
MeterStyle=TextStyle
Text="#Disk2#\     -     %1B    /    %2B"
AutoScale=1
NumOfDecimals=1
Can anyone help me rotate this skin 45 degrees so that is flush with the edge of a triangle?
User avatar
eclectic-tech
Rainmeter Sage
Posts: 5384
Joined: April 12th, 2012, 9:40 pm
Location: Cedar Point, Ohio, USA

Re: Rotating a skin.

Post by eclectic-tech »

About the only way to accomplish that is by using the TransformationMatrix command.

Add this transformationmatrix line to all 5 of your meters to rotate the them 45 degrees clockwise:

Code: Select all

TransformationMatrix=0.8;0.707;-0.707;0.8;(#VerticalResolution#*0.71);0
Gets you this:
Image

You can modify the matrix numbers slightly to tweak the image; for example the X & Y scales could be a bit smaller (0.75, 0.7, etc.)... I would suggest reading the info linked above and the TransformationMatrix Guide for more details!

To slant them in a different direction is going to require other values, and also changes to the string meters... hope this gets you close.