It is currently July 19th, 2019, 3:30 pm

Roundline reverse effect

General topics related to Rainmeter.
AdurVonRob
Posts: 5
Joined: April 24th, 2018, 1:44 pm

Roundline reverse effect

AdurVonRob » April 24th, 2018, 1:49 pm

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.
User avatar
fonpaolo
Moderator
Posts: 1351
Joined: April 11th, 2013, 8:08 pm
Location: Italy

Re: Roundline reverse comeback

fonpaolo » April 24th, 2018, 1:59 pm

In one word, yes.
You only need to set up some math to have the Roundline going backwards, from full to empty.
User avatar
jsmorley
Developer
Posts: 19294
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Roundline reverse comeback

jsmorley » April 24th, 2018, 2:07 pm

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
GIF.gif
You do not have the required permissions to view the files attached to this post.
AdurVonRob
Posts: 5
Joined: April 24th, 2018, 1:44 pm

Re: Roundline reverse comeback

AdurVonRob » April 24th, 2018, 2:12 pm

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 :-(
User avatar
balala
Rainmeter Sage
Posts: 8376
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Roundline reverse comeback

balala » April 24th, 2018, 3:29 pm

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
User avatar
FreeRaider
Posts: 783
Joined: November 20th, 2012, 11:58 pm

Re: Roundline reverse comeback

FreeRaider » April 24th, 2018, 4:04 pm

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
Nice approach, but I noticed that you lose at least 2 seconds (if we talk in terms of time)
AdurVonRob
Posts: 5
Joined: April 24th, 2018, 1:44 pm

Re: Roundline reverse comeback

AdurVonRob » April 24th, 2018, 4:09 pm

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
Nice one :o This time you don't loose any seconds but it would be hard to match with system time:

[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
User avatar
CyberTheWorm
Posts: 651
Joined: August 22nd, 2016, 11:32 pm
Location: Surrey, B.C., Canada

Re: Roundline reverse effect

CyberTheWorm » April 24th, 2018, 4:18 pm

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
AdurVonRob
Posts: 5
Joined: April 24th, 2018, 1:44 pm

Re: Roundline reverse effect

AdurVonRob » April 24th, 2018, 4:51 pm

This is my actual clock that I have:

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
Not fully circular - only 180 degrees, but it's pretty creative I think. For colors I help myself with photoshop :D 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
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 8376
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Roundline reverse comeback

balala » April 24th, 2018, 5:15 pm

AdurVonRob wrote:Nice one :o 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