It is currently December 5th, 2021, 4:54 pm

pie chart

Skins with graphics and animations
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

pie chart

Post by moshi »

was just playing with this. might be useful for some.
Untitled-1.jpg

Code: Select all

[Variables]
Color1=ff0000
Color2=ffff00


[Measure1]
Measure=PhysicalMemory

[Measure2]
Measure=Calc
Formula=1

[Color1a]
Measure=Calc
Formula=1
Substitute="1":"#Color1#","1":"0","2":"0","3":"0","4":"1","5":"2","6":"3","7":"4","8":"5","9":"6","a":"7","b":"8","c":"9","d":"a","e":"b","f":"c"

[Color2a]
Measure=Calc
Formula=1
Substitute="1":"#Color2#","1":"0","2":"0","3":"0","4":"1","5":"2","6":"3","7":"4","8":"5","9":"6","a":"7","b":"8","c":"9","d":"a","e":"b","f":"c"


[Style]
LineLength=40
StartAngle=(RAD(320))
RotationAngle=(-(RAD(360)))
Antialias=1
Solid=1
W=200
H=200
X=0
Y=0
DynamicVariables=1

[Style2a]
MeasureName=Measure2
LineColor=[Color2a]

[Style1a]
MeasureName=Measure1
LineColor=[Color1a]

[Style2]
MeasureName=Measure2
LineColor=#Color2#

[Style1]
MeasureName=Measure1
LineColor=#Color1#


[Meter24]
MeterStyle=Style|Style2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; -55; -16

[Meter14]
MeterStyle=Style|Style1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; -55; -16

[Meter23]
MeterStyle=Style|Style2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; -55; -17

[Meter13]
MeterStyle=Style|Style1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; -55; -17

[Meter22]
MeterStyle=Style|Style2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; -55; -18

[Meter12]
MeterStyle=Style|Style1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; -55; -18

[Meter21]
MeterStyle=Style|Style2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; -55; -19

[Meter11]
MeterStyle=Style|Style1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; -55; -19

[Meter2]
MeterStyle=Style|Style2
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; -55; -20

[Meter1]
MeterStyle=Style|Style1
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; -55; -20


You do not have the required permissions to view the files attached to this post.
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: pie chart

Post by moshi »

improved this a little to avoid color bleeding.

Code: Select all

[Variables]
Color1=ff0000
Color2=ffff00


[Measure]
Measure=PhysicalMemory

[Measure1]
Measure=Calc
Formula=(([Measure:%])/100)
DynamicVariables=1

[Measure2]
Measure=Calc
Formula=(1-(([Measure:%])/100))
DynamicVariables=1

[Color1a]
Measure=Calc
Formula=1
Substitute="1":"#Color1#","1":"0","2":"0","3":"0","4":"1","5":"2","6":"3","7":"4","8":"5","9":"6","a":"7","b":"8","c":"9","d":"a","e":"b","f":"c"

[Color2a]
Measure=Calc
Formula=1
Substitute="1":"#Color2#","1":"0","2":"0","3":"0","4":"1","5":"2","6":"3","7":"4","8":"5","9":"6","a":"7","b":"8","c":"9","d":"a","e":"b","f":"c"


[Style]
LineLength=40
StartAngle=(RAD(320))
Antialias=1
Solid=1
W=200
H=200
X=0
Y=0
DynamicVariables=1

[Style2a]
MeasureName=Measure2
LineColor=[Color2a]
RotationAngle=((RAD(360)))

[Style1a]
MeasureName=Measure1
LineColor=[Color1a]
RotationAngle=(-(RAD(360)))

[Style2]
MeasureName=Measure2
LineColor=#Color2#
RotationAngle=((RAD(360)))

[Style1]
MeasureName=Measure1
LineColor=#Color1#
RotationAngle=(-(RAD(360)))


[Meter24]
MeterStyle=Style|Style2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; -55; -16

[Meter14]
MeterStyle=Style|Style1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; -55; -16

[Meter23]
MeterStyle=Style|Style2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; -55; -17

[Meter13]
MeterStyle=Style|Style1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; -55; -17

[Meter22]
MeterStyle=Style|Style2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; -55; -18

[Meter12]
MeterStyle=Style|Style1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; -55; -18

[Meter21]
MeterStyle=Style|Style2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; -55; -19

[Meter11]
MeterStyle=Style|Style1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; -55; -19

[Meter2]
MeterStyle=Style|Style2
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; -55; -20

[Meter1]
MeterStyle=Style|Style1
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; -55; -20
User avatar
Mordasius
Posts: 1084
Joined: January 22nd, 2011, 4:23 pm
Location: GMT +8

Re: pie chart

Post by Mordasius »

Sweet. Like PacMan after being hit by a steamroller.

Would I be right in guessing you could use the same TransformationMatrix=0; 0.4; 1; 0; -55; -19 or -20 to make a Roundline based clock or gauge on it's side?
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: pie chart

Post by moshi »

something like this?

Code: Select all

[Rainmeter]
AppVersion=2005000
Update=100
BackgroundMode=1

[Metadata]
Author=Alex Becherer
Name=Pie Clock
Information=
Version=1.0
License=Creative Commons BY-NC-SA 3.0




[Variables]
Color1=666666
Color2=ffffff

[Color1a]
Measure=Calc
Formula=1
Substitute="1":"#Color1#","1":"0","2":"0","3":"0","4":"1","5":"2","6":"3","7":"4","8":"5","9":"6","a":"7","b":"8","c":"9","d":"a","e":"b","f":"c"

[Color2a]
Measure=Calc
Formula=1
Substitute="1":"#Color2#","1":"0","2":"0","3":"0","4":"1","5":"2","6":"3","7":"4","8":"5","9":"6","a":"7","b":"8","c":"9","d":"a","e":"b","f":"c"

[SecondsMeasure]
Measure=Time
Format=%S
AverageSize=10
MinValue=0
MaxValue=60

[SecondsMeasure1]
Measure=Time
Format=%S
AverageSize=10
MinValue=0
MaxValue=60

[SecondsMeasure2]
Measure=Calc
Formula=(1-(([SecondsMeasure])/60))
DynamicVariables=1

[SecondsStyle]
LineLength=97
LineStart=91

[SecondsStyle2a]
MeasureName=SecondsMeasure2
LineColor=[Color2a]
RotationAngle=((RAD(360)))
StartAngle=(RAD(180))
Antialias=1
Solid=1
W=200
H=200
X=0
Y=0
DynamicVariables=1

[SecondsStyle1a]
MeasureName=SecondsMeasure1
LineColor=[Color1a]
RotationAngle=(-(RAD(360)))
StartAngle=(RAD(180))
Antialias=1
Solid=1
W=200
H=200
X=0
Y=0
DynamicVariables=1

[SecondsStyle2]
MeasureName=SecondsMeasure2
LineColor=#Color2#
RotationAngle=((RAD(360)))
StartAngle=(RAD(180))
Antialias=1
Solid=1
W=200
H=200
X=0
Y=0
DynamicVariables=1

[SecondsStyle1]
MeasureName=SecondsMeasure1
LineColor=#Color1#
RotationAngle=(-(RAD(360)))
StartAngle=(RAD(180))
Antialias=1
Solid=1
W=200
H=200
X=0
Y=0
DynamicVariables=1

[SecondsMeter24]
MeterStyle=SecondsStyle|SecondsStyle2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 10

[SecondsMeter14]
MeterStyle=SecondsStyle|SecondsStyle1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 10

[SecondsMeter23]
MeterStyle=SecondsStyle|SecondsStyle2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 9

[SecondsMeter13]
MeterStyle=SecondsStyle|SecondsStyle1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 9

[SecondsMeter22]
MeterStyle=SecondsStyle|SecondsStyle2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 8

[SecondsMeter12]
MeterStyle=SecondsStyle|SecondsStyle1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 8

[SecondsMeter21]
MeterStyle=SecondsStyle|SecondsStyle2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 7

[SecondsMeter11]
MeterStyle=SecondsStyle|SecondsStyle1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 7

[SecondsMeter2]
MeterStyle=SecondsStyle|SecondsStyle2
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 6

[SecondsMeter1]
MeterStyle=SecondsStyle|SecondsStyle1
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 6


[MinutesMeasure]
Measure=Time
Format=%M

[MinutesMeasure1]
Measure=Calc
Formula=(([MinutesMeasure])/60)
DynamicVariables=1

[MinutesMeasure2]
Measure=Calc
Formula=(1-(([MinutesMeasure])/60))
DynamicVariables=1

[MinutesStyle]
LineLength=70
LineStart=62

[MinutesStyle2a]
MeasureName=MinutesMeasure2
LineColor=[Color2a]
RotationAngle=((RAD(360)))
StartAngle=(RAD(180))
Antialias=1
Solid=1
W=200
H=200
X=0
Y=0
DynamicVariables=1

[MinutesStyle1a]
MeasureName=MinutesMeasure1
LineColor=[Color1a]
RotationAngle=(-(RAD(360)))
StartAngle=(RAD(180))
Antialias=1
Solid=1
W=200
H=200
X=0
Y=0
DynamicVariables=1

[MinutesStyle2]
MeasureName=MinutesMeasure2
LineColor=#Color2#
RotationAngle=((RAD(360)))
StartAngle=(RAD(180))
Antialias=1
Solid=1
W=200
H=200
X=0
Y=0
DynamicVariables=1

[MinutesStyle1]
MeasureName=MinutesMeasure1
LineColor=#Color1#
RotationAngle=(-(RAD(360)))
StartAngle=(RAD(180))
Antialias=1
Solid=1
W=200
H=200
X=0
Y=0
DynamicVariables=1

[MinutesMeter26]
MeterStyle=MinutesStyle|MinutesStyle2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 7

[MinutesMeter16]
MeterStyle=MinutesStyle|MinutesStyle1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 7

[MinutesMeter25]
MeterStyle=MinutesStyle|MinutesStyle2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 6

[MinutesMeter15]
MeterStyle=MinutesStyle|MinutesStyle1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 6

[MinutesMeter24]
MeterStyle=MinutesStyle|MinutesStyle2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 5

[MinutesMeter14]
MeterStyle=MinutesStyle|MinutesStyle1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 5

[MinutesMeter23]
MeterStyle=MinutesStyle|MinutesStyle2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 4

[MinutesMeter13]
MeterStyle=MinutesStyle|MinutesStyle1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 4

[MinutesMeter22]
MeterStyle=MinutesStyle|MinutesStyle2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 3

[MinutesMeter12]
MeterStyle=MinutesStyle|MinutesStyle1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 3

[MinutesMeter21]
MeterStyle=MinutesStyle|MinutesStyle2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 2

[MinutesMeter11]
MeterStyle=MinutesStyle|MinutesStyle1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 2

[MinutesMeter2]
MeterStyle=MinutesStyle|MinutesStyle2
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 1

[MinutesMeter1]
MeterStyle=MinutesStyle|MinutesStyle1
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 1





[HoursMeasure]
Measure=Time
Format=%I

[HoursMeasure1]
Measure=Calc
Formula=(([HoursMeasure])/12)
DynamicVariables=1

[HoursMeasure2]
Measure=Calc
Formula=(1-(([HoursMeasure])/12))
DynamicVariables=1

[HoursStyle]
LineLength=40
LineStart=30

[HoursStyle2a]
MeasureName=HoursMeasure2
LineColor=[Color2a]
RotationAngle=((RAD(360)))
StartAngle=(RAD(180))
Antialias=1
Solid=1
W=200
H=200
X=0
Y=0
DynamicVariables=1

[HoursStyle1a]
MeasureName=HoursMeasure1
LineColor=[Color1a]
RotationAngle=(-(RAD(360)))
StartAngle=(RAD(180))
Antialias=1
Solid=1
W=200
H=200
X=0
Y=0
DynamicVariables=1

[HoursStyle2]
MeasureName=HoursMeasure2
LineColor=#Color2#
RotationAngle=((RAD(360)))
StartAngle=(RAD(180))
Antialias=1
Solid=1
W=200
H=200
X=0
Y=0
DynamicVariables=1

[HoursStyle1]
MeasureName=HoursMeasure1
LineColor=#Color1#
RotationAngle=(-(RAD(360)))
StartAngle=(RAD(180))
Antialias=1
Solid=1
W=200
H=200
X=0
Y=0
DynamicVariables=1

[HoursMeter28]
MeterStyle=HoursStyle|HoursStyle2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 4

[HoursMeter18]
MeterStyle=HoursStyle|HoursStyle1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 4

[HoursMeter27]
MeterStyle=HoursStyle|HoursStyle2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 3

[HoursMeter17]
MeterStyle=HoursStyle|HoursStyle1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 3

[HoursMeter26]
MeterStyle=HoursStyle|HoursStyle2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 2

[HoursMeter16]
MeterStyle=HoursStyle|HoursStyle1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 2

[HoursMeter25]
MeterStyle=HoursStyle|HoursStyle2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 1

[HoursMeter15]
MeterStyle=HoursStyle|HoursStyle1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 1

[HoursMeter24]
MeterStyle=HoursStyle|HoursStyle2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 0

[HoursMeter14]
MeterStyle=HoursStyle|HoursStyle1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; 0

[HoursMeter23]
MeterStyle=HoursStyle|HoursStyle2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; -1

[HoursMeter13]
MeterStyle=HoursStyle|HoursStyle1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; -1

[HoursMeter22]
MeterStyle=HoursStyle|HoursStyle2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; -2

[HoursMeter12]
MeterStyle=HoursStyle|HoursStyle1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; -2

[HoursMeter21]
MeterStyle=HoursStyle|HoursStyle2a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; -3

[HoursMeter11]
MeterStyle=HoursStyle|HoursStyle1a
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; -3

[HoursMeter2]
MeterStyle=HoursStyle|HoursStyle2
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; -4

[HoursMeter1]
MeterStyle=HoursStyle|HoursStyle1
Meter=Roundline
TransformationMatrix=0; 0.4; 1; 0; 0; -4


:bow:
User avatar
Mordasius
Posts: 1084
Joined: January 22nd, 2011, 4:23 pm
Location: GMT +8

Re: pie chart

Post by Mordasius »

Yes something like that (or this):
moshi_clock.png
Should I have found that on customize.org or is it something you have just churned out for typing practice?
You do not have the required permissions to view the files attached to this post.
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: pie chart

Post by moshi »

oh, i just wanted to try wether the old Photoshop fake-3D trick also works with Rainmeter.
User avatar
moshi
Posts: 1740
Joined: November 13th, 2012, 9:53 pm

Re: pie chart

Post by moshi »

whatever. i put it on Custo. maybe somebody uses it as a base for something cool. i doubt photo-realistic stuff is possible with TransformationMatrix though, at least i could not see how it would do perspectivic tranformations.
Untitled-1.jpg
http://customize.org/rainmeter/skins/65670455
You do not have the required permissions to view the files attached to this post.