It is currently April 27th, 2024, 12:48 am
Roundline reverse effect
-
- Posts: 5
- Joined: April 24th, 2018, 1:44 pm
Roundline reverse effect
Does anybody have an idea if it is possible to create with roundline this kind of animation/use for a clock for example... Kind of like the material loading thing.
You do not have the required permissions to view the files attached to this post.
Last edited by AdurVonRob on April 24th, 2018, 3:29 pm, edited 1 time in total.
-
- Moderator
- Posts: 1387
- Joined: April 11th, 2013, 8:08 pm
- Location: Italy
Re: Roundline reverse comeback
In one word, yes.
You only need to set up some math to have the Roundline going backwards, from full to empty.
You only need to set up some math to have the Roundline going backwards, from full to empty.
-
- Developer
- Posts: 22631
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: Roundline reverse comeback
Code: Select all
[Rainmeter]
Update=16
BackgroundMode=2
SolidColor=0,0,0,1
AccurateText=1
[Metadata]
Name=SweepSeconds
Author=JSMorley
Information=Date and time with sweeping seconds indicator
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Version=April 17, 2018
[MeasureDate]
Measure=Time
Format=%A, %B %#d, %Y
UpdateDivider=62.5
[MeasureTime]
Measure=Time
Format=%#I:%M %p
[MeasureSeconds]
Measure=Time
Format=%#S
AverageSize=62.5
[MeasureSecondsNum]
Measure=Calc
Formula=(MeasureSeconds % 59) / 60
[MeterSeconds]
Meter=Roundline
MeasureName=MeasureSecondsNum
X=240
W=140
H=140
StartAngle=(Rad(270))
RotationAngle=(Rad(370))
LineLength=70
LineStart=68
LineColor=175,193,204,255
Solid=1
AntiAlias=1
[MeterDate]
Meter=String
MeasureName=MeasureDate
W=350
H=25
X=350
Y=33
StringAlign=Right
FontFace=Fira Sans
FontWeight=300
FontSize=20
FontColor=228,239,241,255
AntiAlias=1
[MeterTime]
Meter=String
MeasureName=MeasureTime
W=350
H=25
X=350
Y=5R
StringAlign=Right
FontFace=Fira Sans
FontWeight=300
FontSize=30
FontColor=228,239,241,255
AntiAlias=1
You do not have the required permissions to view the files attached to this post.
-
- Posts: 5
- Joined: April 24th, 2018, 1:44 pm
Re: Roundline reverse comeback
https://forum.rainmeter.net/posting.php?mode=reply&f=4&t=28333#pr147649
Well not exactly what I'm trying to write from about three days, look on the gif
Well not exactly what I'm trying to write from about three days, look on the gif
-
- Rainmeter Sage
- Posts: 16174
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Roundline reverse comeback
My approach:
Code: Select all
[Rainmeter]
Update=1000
[MeasureCount]
Measure=Calc
Formula=( COUNTER % 18 )
[MeasureCounter]
Measure=Calc
Formula=(( MeasureCount <= 8 ) ? MeasureCount : ( 17 - MeasureCount ))
MinValue=0
MaxValue=8
[MeterTotalDisk]
Meter=Roundline
MeasureName=MeasureCounter
X=0
Y=0
W=120
H=120
StartAngle=4.712
RotationAngle=(([MeasureCount]<=8)?6.283:(-6.283))
LineLength=60
LineStart=50
LineColor=220,220,220
Solid=1
AntiAlias=1
SolidColor=60,60,60,160
DynamicVariables=1
-
- Posts: 826
- Joined: November 20th, 2012, 11:58 pm
Re: Roundline reverse comeback
Nice approach, but I noticed that you lose at least 2 seconds (if we talk in terms of time)balala wrote:My approach:Code: Select all
[Rainmeter] Update=1000 [MeasureCount] Measure=Calc Formula=( COUNTER % 18 ) [MeasureCounter] Measure=Calc Formula=(( MeasureCount <= 8 ) ? MeasureCount : ( 17 - MeasureCount )) MinValue=0 MaxValue=8 [MeterTotalDisk] Meter=Roundline MeasureName=MeasureCounter X=0 Y=0 W=120 H=120 StartAngle=4.712 RotationAngle=(([MeasureCount]<=8)?6.283:(-6.283)) LineLength=60 LineStart=50 LineColor=220,220,220 Solid=1 AntiAlias=1 SolidColor=60,60,60,160 DynamicVariables=1
-
- Posts: 5
- Joined: April 24th, 2018, 1:44 pm
Re: Roundline reverse comeback
Nice one This time you don't loose any seconds but it would be hard to match with system time:balala wrote:My approach:Code: Select all
[Rainmeter] Update=1000 [MeasureCount] Measure=Calc Formula=( COUNTER % 18 ) [MeasureCounter] Measure=Calc Formula=(( MeasureCount <= 8 ) ? MeasureCount : ( 17 - MeasureCount )) MinValue=0 MaxValue=8 [MeterTotalDisk] Meter=Roundline MeasureName=MeasureCounter X=0 Y=0 W=120 H=120 StartAngle=4.712 RotationAngle=(([MeasureCount]<=8)?6.283:(-6.283)) LineLength=60 LineStart=50 LineColor=220,220,220 Solid=1 AntiAlias=1 SolidColor=60,60,60,160 DynamicVariables=1
[Rainmeter]
Update=1000
[MeasureCount]
Measure=Calc
Formula=( COUNTER % 120 )
[MeasureCounter]
Measure=Calc
Formula=(( MeasureCount <= 60 ) ? MeasureCount : ( 120 - MeasureCount ))
MinValue=0
MaxValue=60
[MeterSeconds]
Meter=Roundline
MeasureName=MeasureCounter
X=0
Y=0
W=120
H=120
StartAngle=(Rad(270))
RotationAngle=(([MeasureCount]<=60)?6.283:(-6.283))
LineLength=60
LineStart=50
LineColor=220,220,220
Solid=1
AntiAlias=1
DynamicVariables=1
-
- Posts: 860
- Joined: August 22nd, 2016, 11:32 pm
- Location: Surrey, B.C., Canada
Re: Roundline reverse effect
My suggestion
Code: Select all
[Rainmeter]
Update=1000
[Metadata]
Author=CyberTheWorm
Version=1.0.0
License=Creative Commons Attribution-Non-Commercial-Share Alike 3.0
Information=Circle Clock
;-------------------- Measures ----------------------------
[MeasureSecs]
Measure=Time
Format=%S
MaxValue=59
[MeasureSecond]
Measure=Time
Format=%#S
[MeasureSecondAngle]
Measure=Calc
Formula=(MeasureSecond * 6)
[MeasureMinute]
Measure=Time
Format=%#M
[MeasureMinuteAngle]
Measure=Calc
Formula=(MeasureMinute * 6) + (MeasureSecond / 60 * 6)
[MeasureHour]
Measure=Time
Format=%#I
[MeasureHourAngle]
Measure=Calc
Formula=(MeasureHour * 30) + (MeasureMinute / 60 * 30) + (MeasureSecond / 3600 * 30)
;--------------------- Meters --------------------------------
;Transparent background to enable click anywhere on meter
[MeterBackground]
Meter=Roundline
X=0
Y=0
H=200
W=200
StartAngle=(Rad(0))
RotationAngle=(Rad(360))
LineLength=200
LineColor=0,0,0,1
Solid=1
AntiAlias=1
[MeterSecBackground]
Meter=Roundline
X=0
Y=0
H=200
W=200
StartAngle=(Rad(0))
RotationAngle=(Rad(360))
LineLength=90
LineStart=100
LineColor=127,127,127,127
Solid=1
AntiAlias=1
[MeterSeconds]
Meter=Roundline
MeasureName=MeasureSecs
X=0
Y=0
H=200
W=200
StartAngle=(Rad(270))
RotationAngle=(Rad(360))
LineLength=90
LineStart=100
LineColor=255,255,255,255
Solid=1
AntiAlias=1
[MeterHands]
Meter=Shape
X=100
Y=0
Shape=Line 0,100,0,20 | StrokeWidth 5 | Stroke Color 255,255,255,255 | StrokeEndCap Triangle | Rotate [MeasureMinuteAngle],2.5,80
Shape2=Line 0,100,0,40 | StrokeWidth 7 | Stroke Color 255,255,255,255 | StrokeEndCap Triangle | Rotate [MeasureHourAngle],3,60
Shape3=Ellipse 0,100,6 | StrokeWidth 0 | Fill Color 255,255,255,255
AntiAlias=1
DynamicVariables=1
The only source of knowledge is experience. Albert Einstein
Deviant Art Page
Deviant Art Page
-
- Posts: 5
- Joined: April 24th, 2018, 1:44 pm
Re: Roundline reverse effect
This is my actual clock that I have:
Not fully circular - only 180 degrees, but it's pretty creative I think. For colors I help myself with photoshop And it looks like on the picture. Now I would like to change everything to 360 degrees but with the effect as in the topic, hard to make
Code: Select all
[Rainmeter]
Update=#UpdateSpeed#
[Variables]
UpdateSpeed=50
[MeasureTime]
Measure=Time
AverageSize=(1000/#UpdateSpeed#)
[MeasureSec]
Measure=Calc
Formula=MeasureTime * (1000/#UpdateSpeed#)
[Seconds]
Meter=Roundline
MeasureName=MeasureSec
LineStart=175
LineLength=185
X=0
Y=0
W=500
H=500
StartAngle=(Rad(90))
RotationAngle=(Rad(180))
LineColor=255,127,127,200
ValueRemainder=(60 * (1000/#UpdateSpeed#))
Solid=1
AntiAlias=1
[Seconds2]
Meter=Roundline
MeasureName=MeasureSec
LineStart=175
LineLength=185
X=0
Y=0
W=500
H=500
StartAngle=(Rad(90))
RotationAngle=(Rad(-180))
LineColor=130,195,255,200
ValueRemainder=(60 * (1000/#UpdateSpeed#))
Solid=1
AntiAlias=1
[MeterMinutesBar]
Meter=Roundline
MeasureName=MeasureTime
X=0
Y=0
W=500
H=500
StartAngle=(Rad(90))
RotationAngle=(Rad(180))
LineLength=195
LineStart=185
AntiAlias=1
LineColor=247,102,102,200
Solid=1
ValueReminder=3600
[MeterMinutesBar2]
Meter=Roundline
MeasureName=MeasureTime
X=0
Y=0
W=500
H=500
StartAngle=(Rad(90))
RotationAngle=(Rad(-180))
LineLength=195
LineStart=185
AntiAlias=1
LineColor=103,174,241,200
Solid=1
ValueReminder=3600
[MeterHoursBar]
Meter=Roundline
MeasureName=MeasureTime
X=0
Y=0
W=500
H=500
StartAngle=(Rad(90))
RotationAngle=(Rad(180))
LineLength=205
LineStart=195
LineColor=239,76,76,200
Solid=1
AntiAlias=1
ValueReminder=86400
[MeterHoursBar2]
Meter=Roundline
MeasureName=MeasureTime
X=0
Y=0
W=500
H=500
StartAngle=(Rad(90))
RotationAngle=(Rad(-180))
LineLength=205
LineStart=195
LineColor=76,161,222,200
Solid=1
AntiAlias=1
ValueReminder=86400
[MeasureLeap]
Measure=Time
Format=28 + (((((%Y %% 4) = 0) && ((%Y %% 100) <> 0)) || ((%Y %% 400) = 0)) )
[MeasureDayTotal]
Measure=Time
Format=%m
Substitute="01":"31","03":"31","04":"30","05":"31","06":"30","07":"31","08":"31","09":"30","10":"31","11":"30","12":"31","02":"[MeasureLeap]"
DynamicVariables=1
[MeasureDayCurrent]
Measure=Time
Format=%d
MaxValue=([MeasureDayTotal])
DynamicVariables=1
[MeasureDayBar]
Meter=Roundline
MeasureName=MeasureDayCurrent
X=0
Y=0
W=500
H=500
StartAngle=(Rad(90))
RotationAngle=(Rad(180))
LineLength=215
LineStart=205
LineColor=231,51,51,200
AntiAlias=1
Solid=1
[MeasureDayBar2]
Meter=Roundline
MeasureName=MeasureDayCurrent
X=0
Y=0
W=500
H=500
StartAngle=(Rad(90))
RotationAngle=(Rad(-180))
LineLength=215
LineStart=205
LineColor=49,153,210,200
AntiAlias=1
Solid=1
[MeasureMonth]
Measure=Time
Format= "%m"
MaxValue=12
MinValue=1
[MeterMonthBar]
Meter=Roundline
MeasureName=MeasureMonth
X=0
Y=0
W=500
H=500
StartAngle=(Rad(90))
RotationAngle=(Rad(180))
LineLength=225
LineStart=215
LineColor=223,25,25,200
AntiAlias=1
Solid=1
[MeterMonthBar2]
Meter=Roundline
MeasureName=MeasureMonth
X=0
Y=0
W=500
H=500
StartAngle=(Rad(90))
RotationAngle=(Rad(-180))
LineLength=225
LineStart=215
LineColor=34,120,199,200
AntiAlias=1
Solid=1
You do not have the required permissions to view the files attached to this post.
-
- Rainmeter Sage
- Posts: 16174
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: Roundline reverse comeback
AdurVonRob wrote:Nice one This time you don't loose any seconds but it would be hard to match with system time:
Code: Select all
[Rainmeter]
Update=1000
[Variables]
Sec=0
[MeasureSecond]
Measure=Time
Format=%#S
IfCondition=(#CURRENTSECTION#=0)
IfTrueAction=[!SetVariable Sec "(1-#Sec#)"][!UpdateMeasure "MeasureSecond"][!UpdateMeasure "MeasureCount""][!UpdateMeter "MeterSecond"][!Redraw]
DynamicVariables=1
[MeasureCount]
Measure=Calc
Formula=(( #Sec# = 0 ) ? MeasureSecond : ( 60 - MeasureSecond ))
DynamicVariables=1
MinValue=0
MaxValue=60
[MeterSecond]
Meter=Roundline
MeasureName=MeasureCount
X=0
Y=0
W=120
H=120
StartAngle=4.712
RotationAngle=((#Sec#=0)?6.283:(-6.283))
LineLength=60
LineStart=50
LineColor=220,220,220
Solid=1
AntiAlias=1
SolidColor=60,60,60,160
DynamicVariables=1