Anytime
It is currently October 6th, 2024, 9:06 am
How to make color transfusion
-
- Posts: 246
- Joined: July 8th, 2021, 11:30 pm
- Location: The King's Avenue, Golden Kingdom
Re: How to make color transfusion
the DA GALLERY For some Reason, the square root of X2 does not involve X
-
- Posts: 14
- Joined: June 10th, 2022, 10:47 am
Re: How to make color transfusion
maybe one more question can i add a little image in front of the clock ? like a few pixels enough to fit in the taskbar
-
- Rainmeter Sage
- Posts: 8355
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: How to make color transfusion
Just an advice for the future - most of the things related to syntax, like time formatting and others, are found in the manual as well. The idea is that for such things, the user can easily search for the desired setting, especially since the manual explains stuff much better than a targeted answer could. Obviously, only looking in the manual won't be enough for more complex tasks, but it's a great starting point, all that's needed is reasonable navigation skills.
-
- Rainmeter Sage
- Posts: 8355
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: How to make color transfusion
Sure you can, take a look here. The simplest form of it is basically just:
Code: Select all
[SomeImage]
Meter=Image
ImageName=PathToTheImage
In your specific case something like:
Code: Select all
[SomeImage]
X=probably 0 if you want it at the left
...
[YourText]
X=0R
...
EDIT: In case you didn't figure it out by now, replacing the MeterClock with an Image meter and itself in your code:
Code: Select all
[MeterImage]
Meter=Image
ImageName=#@#a.png
[MeterClock]
Meter = STRING
MeasureName = MeasureClock
MeterStyle = FontStyle
FontColor = [Transition]
X = ([MeterImage:W]+#w#/2)
Y = 6
; LeftMouseUpAction=[!UnpauseMeasure Transition][!ToggleMeasure Transition][!SetVariable Quantifier #StartColor#][!SetVariable Alternator 0][!UpdateMeasure Transition][!UpdateMeter *][!Redraw]
; MiddleMouseUpAction=[!TogglePauseMeasure Transition]
UpdateDivider=1
DynamicVariables=1
You do not have the required permissions to view the files attached to this post.
-
- Posts: 14
- Joined: June 10th, 2022, 10:47 am
Re: How to make color transfusion
Code: Select all
[Rainmeter]
Name = Windows Taskbar Clock
Author = lynxNZL
OnRefreshAction=[!ZPos "2"]
Update=#FastUpdate#
DefaultUpdateDivider=#UpdateDivider#
[Variables]
text_color = 0,255,0,255
bg_color = 0,0,0,1
font = Segoe UI SemiLight
fontsize = 9
w = 320
h = 30
FastUpdate=1
SlowUpdate=10
UpdateDivider=(#SlowUpdate#/#FastUpdate#)
Increment=3
Direction=1
StartColor=0
Quantifier=#StartColor#
Alternator=0
[Transition]
; Disabled=1
Measure=Calc
Formula=((#CURRENTSECTION#+#Increment#)%256)
RegExpSubstitute=1
Substitute="^(.*)$":"(255*(1*(1+(#Direction#))/2+#Alternator#*(1-(#Direction#))/2)-((#Direction#)*(\1)*((1-(#Direction#))/2+(#Direction#)*#Alternator#))),0,(255*(1*(1-(#Direction#))/2+#Alternator#*(1+(#Direction#))/2)+((#Direction#)*(\1)*((1+(#Direction#))/2-(#Direction#)*#Alternator#))),255","^((?:[^,]*,){#Quantifier#})((?:[^,]*,)*)(.*)$":"\2\1\3","\\\d":""
IfCondition=((#CURRENTSECTION#+#Increment#)>=256)
IfTrueAction=[!SetVariable Alternator (1-#Alternator#)][!SetVariable Quantifier ((3+#Quantifier#+#Direction#*#Alternator#*1)%3)]
IfConditionMode=1
UpdateDivider=1
DynamicVariables=1
[MeasureClock]
Timezone = +2
Measure = Time
Format =Gal Ferencz time:[%H:%M] date:[%#m/%d]
[FontStyle]
FontFace = #font#
FontSize = #fontsize#
FontColor = #text_color#
StringAlign = center
AntiAlias = 1
[Size]
Meter = Image
SolidColor = #bg_color#
w = #w#
h = #h#
[MeterClock]
Meter = STRING
MeasureName = MeasureClock
MeterStyle = FontStyle
FontColor = [Transition]
X = (#w#/2)
Y = 6
; LeftMouseUpAction=[!UnpauseMeasure Transition][!ToggleMeasure Transition][!SetVariable Quantifier #StartColor#][!SetVariable Alternator 0][!UpdateMeasure Transition][!UpdateMeter *][!Redraw]
; MiddleMouseUpAction=[!TogglePauseMeasure Transition]
UpdateDivider=1
DynamicVariables=1
[SomeImage]
X=0
Meter=Image
ImageName=C:\Users......
-
- Posts: 14
- Joined: June 10th, 2022, 10:47 am
Re: How to make color transfusion
nevermind, i found it. i had to add .jpg at the and. now i need to figure it out how to resize the image or to move it..
-
- Rainmeter Sage
- Posts: 8355
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: How to make color transfusion
Check my edit above and just replace the path in the ImageName option with your own. In the code you posted now, you don't even have a valid path to an image, and your image meter is AFTER the text meter. The image meter should be be BEFORE the text meter if you want to easily position the text AFTER the image.GFTs wrote: ↑June 10th, 2022, 6:29 pmdon't know what i did wrong.Code: Select all
[Rainmeter] Name = Windows Taskbar Clock Author = lynxNZL OnRefreshAction=[!ZPos "2"] Update=#FastUpdate# DefaultUpdateDivider=#UpdateDivider# [Variables] text_color = 0,255,0,255 bg_color = 0,0,0,1 font = Segoe UI SemiLight fontsize = 9 w = 320 h = 30 FastUpdate=1 SlowUpdate=10 UpdateDivider=(#SlowUpdate#/#FastUpdate#) Increment=3 Direction=1 StartColor=0 Quantifier=#StartColor# Alternator=0 [Transition] ; Disabled=1 Measure=Calc Formula=((#CURRENTSECTION#+#Increment#)%256) RegExpSubstitute=1 Substitute="^(.*)$":"(255*(1*(1+(#Direction#))/2+#Alternator#*(1-(#Direction#))/2)-((#Direction#)*(\1)*((1-(#Direction#))/2+(#Direction#)*#Alternator#))),0,(255*(1*(1-(#Direction#))/2+#Alternator#*(1+(#Direction#))/2)+((#Direction#)*(\1)*((1+(#Direction#))/2-(#Direction#)*#Alternator#))),255","^((?:[^,]*,){#Quantifier#})((?:[^,]*,)*)(.*)$":"\2\1\3","\\\d":"" IfCondition=((#CURRENTSECTION#+#Increment#)>=256) IfTrueAction=[!SetVariable Alternator (1-#Alternator#)][!SetVariable Quantifier ((3+#Quantifier#+#Direction#*#Alternator#*1)%3)] IfConditionMode=1 UpdateDivider=1 DynamicVariables=1 [MeasureClock] Timezone = +2 Measure = Time Format =Gal Ferencz time:[%H:%M] date:[%#m/%d] [FontStyle] FontFace = #font# FontSize = #fontsize# FontColor = #text_color# StringAlign = center AntiAlias = 1 [Size] Meter = Image SolidColor = #bg_color# w = #w# h = #h# [MeterClock] Meter = STRING MeasureName = MeasureClock MeterStyle = FontStyle FontColor = [Transition] X = (#w#/2) Y = 6 ; LeftMouseUpAction=[!UnpauseMeasure Transition][!ToggleMeasure Transition][!SetVariable Quantifier #StartColor#][!SetVariable Alternator 0][!UpdateMeasure Transition][!UpdateMeter *][!Redraw] ; MiddleMouseUpAction=[!TogglePauseMeasure Transition] UpdateDivider=1 DynamicVariables=1 [SomeImage] X=0 Meter=Image ImageName=C:\Users......
In other words, meters are drawn in the skin in the order they are placed in the code. Same for the execution of measures.
-
- Posts: 14
- Joined: June 10th, 2022, 10:47 am
Re: How to make color transfusion
my image is just to big. can i resize it from the code ? ore to make to fit as the clock height and width ?
-
- Rainmeter Sage
- Posts: 8355
- Joined: February 27th, 2015, 2:38 pm
- Location: Terra Yincognita
Re: How to make color transfusion
You resize it by changing the W or H or both. You move it by changing the X or Y or both.
Yes, you should do something like this:
Code: Select all
H=[MeterClock:H]
PreserveAspectRatio=1
DynamicVariables=1
Or you could just set the H of the image to a different numerical value, according to what you'd like visually.
-
- Posts: 14
- Joined: June 10th, 2022, 10:47 am
Re: How to make color transfusion
Hi there. Hope you are well, never got the oportunity to thank you because i lost my laptop in the company that i worked for, and today as i searched for a cooling system in our deposit, i found my old laptop that i used, found every paswords, accounts, even the clock was working very well, kinde miss it.
Also, if i can bother you with one more qurstion, is it possible to measure the temperature of the cpu, gpu, ram and even disk , then return that value into the clock ? Or even better, both temperature and usages of the cpu, gpu, ram and disk. Like "CPU: 38°|75% GPU: 45°|56%" and so on
Also, if i can bother you with one more qurstion, is it possible to measure the temperature of the cpu, gpu, ram and even disk , then return that value into the clock ? Or even better, both temperature and usages of the cpu, gpu, ram and disk. Like "CPU: 38°|75% GPU: 45°|56%" and so on