here are two pretty simple clocks I made, with each two variations.
the first kind has changing aspects for every hour/second/minute, but the second one is just an average clock with hands
I'll be honest, I'd need to simplify the code for the first batch but hey !! not everyone can be perfect !!
here's a download link ! https://cdn.discordapp.com/attachments/392645116860563456/392800962751758336/aspect_clocks_413.612.1025.rmskin
I'm open to advice about the "hundreds and hundreds of lines so to individually code the picture every single second, every single minute, every single hour displays" problem and for anything else really !
https://cdn.discordapp.com/attachments/392645116860563456/392799224993153025/NUT_413.612.rmskin
It is currently March 19th, 2024, 2:23 am
homestuck aspects clock !
- eclectic-tech
- Rainmeter Sage
- Posts: 5364
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
- Contact:
Re: homestuck aspects clock !
Nice work!AlphaEdd wrote:here are two pretty simple clocks I made, with each two variations.
{clip}
I'll be honest, I'd need to simplify the code for the first batch but hey !! not everyone can be perfect !!
{clip}
You can simplify the code quite a bit by using Substitution and Modulo math on the "Adjusted" measures.
You are using 12 images which are displayed in sequence as the hours, minutes, and seconds as the time changes.
By using Modulo math on the current time measures, you can adjust the values to be returned as a sequence: "0, 1, 2, ... 11, 0, 1, 2, ...". Look at the formula in the "Adjusted" measures.
Code: Select all
[measureMinuteAdjusted]
Measure=calc
Formula=measureMinute%12
Substitute=#SubstImages#
With that done all you need are 3 image meters (with DynamicVariables=1 added) that point to the "Adjusted" measures for their image name.
Simplified code
Code: Select all
[Variables]
Note=C:\Users\impin\Desktop\edd\Shimeji_Future_Edd\Shimeji-ee.exe
SubstImages="11":"Breath","10":"Blood","1":"Time","2":"Mind","3":"Heart","4":"Void","5":"Light","6":"Doom","7":"Life","8":"Rage","9":"Hope","0":"Space"
[measureSecond]
Measure=Time
Format=%S
[measureMinute]
Measure=Time
Format=%M
[measureHour]
Measure=Time
Format=%H
[measureHourAdjusted]
Measure=calc
Formula=measureHour%12
Substitute=#SubstImages#
[measureMinuteAdjusted]
Measure=calc
Formula=measureMinute%12
Substitute=#SubstImages#
[measureSecondAdjusted]
Measure=calc
Formula=measureSecond%12
Substitute=#SubstImages#
[SpaceHours]
Meter=IMAGE
ImageName=#@#[MeasureHourAdjusted].png
X=0
Y=0
y=5
LeftMouseDoubleClickAction=!Execute ["#Note#"][!RainmeterRedraw]
DynamicVariables=1
[SpaceMinutes]
Meter=IMAGE
ImageName=#@#[MeasureMinuteAdjusted].png
X=0
Y=100
LeftMouseDoubleClickAction=!Execute ["#Note#"][!RainmeterRedraw]
DynamicVariables=1
[SpaceSeconds]
Meter=IMAGE
ImageName=#@#[MeasureSecondAdjusted].png
X=0
Y=200
LeftMouseDoubleClickAction=!Execute ["#Note#"][!RainmeterRedraw]
DynamicVariables=1
[styleTwo]
StringAlign=Center
StringCase=Upper
StringStyle=Bold
StringEffect=Shadow
FontEffectColor=0,0,0,255
FontColor=255,255,255,255
FontFace=Courier New
FontSize=17
AntiAlias=1
ClipString=1
[meterSeconds]
Meter=String
MeterStyle=styleTwo
MeasureName=MeasureSecond
X=49
Y=238
Text=%1
[meterMinutes]
Meter=String
MeterStyle=styleTwo
MeasureName=MeasureMinute
X=49
Y=138
Text=%1
[meterHours]
Meter=String
MeterStyle=styleTwo
MeasureName=MeasureHour
X=49
Y=38
Text=%1
Again, Nice skin!
Re: homestuck aspects clock !
hello !
I tested what you said here, it works perfectly and it's so short compared to the original code I might cry
thank you for your help, praise, and also for the explanation !! it's really helpful and I wanna see if I can reuse that sort of stuff in future skins ! I'm gonna look deeper into substitution codes cause it actually could help me shorten a lot of my stuff
also, loving your penguin icon, pengus are adorable c:
I tested what you said here, it works perfectly and it's so short compared to the original code I might cry
thank you for your help, praise, and also for the explanation !! it's really helpful and I wanna see if I can reuse that sort of stuff in future skins ! I'm gonna look deeper into substitution codes cause it actually could help me shorten a lot of my stuff
also, loving your penguin icon, pengus are adorable c:
- eclectic-tech
- Rainmeter Sage
- Posts: 5364
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
- Contact:
Re: homestuck aspects clock !
Don't cry!
Yeah, penguins are cute!
Always glad to help.
Yeah, penguins are cute!
Always glad to help.