It is currently March 28th, 2024, 11:17 pm

Outer Glow and possible rainbow/chromatic effect on meter images?

Get help with creating, editing & fixing problems with skins
Ao Nuu Shin
Posts: 128
Joined: May 2nd, 2015, 9:13 am

Re: Outer Glow and possible rainbow/chromatic effect on meter images?

Post by Ao Nuu Shin »

balala wrote: January 26th, 2019, 3:19 pm With this code? Weird, because using your code, with thickness set to 12, this is what I get:
Notepad.png

Ok, then we'll use ActionTimer plugin measure to animate the rainbow. Here is a first attempt. If it's not good enough, we'll improve it. The animation is started when you're hovering the mouse over the skin. Initially a random color is generated, then, when you're hovering the mouse over, it changes randomly, for 1 second:

Code: Select all

[Rainmeter]
Update=-1
AccurateText=1
DynamicWindowSize=1

[Metadata]
Author=Agios
Information=Opens Notepad
Version=1.2

[Variables]
GlowColor=220,220,220
Thickness=12
Start=0

[MeasureRainbow]
Measure=Plugin
Plugin=ActionTimer
Group=Sliders
ActionList1=Repeat Go,100,10
Go=[!UpdateMeasureGroup "Offset"][!UpdateMeter "MeterBackground"][!Redraw]
DynamicVariables=1

[MeasureStartRed]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=-1

[MeasureStartGreen]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=-1

[MeasureStartBlue]
Measure=Calc
Formula=Random
LowBound=0
HighBound=255
UpdateDivider=-1

[MeasureOffsetRed]
Measure=Calc
Formula=Random
LowBound=-2
HighBound=2
UpdateRandom=1
UpdateDivider=-1
Group=Offset

[MeasureOffsetGreen]
Measure=Calc
Formula=Random
LowBound=-2
HighBound=2
UpdateRandom=1
UpdateDivider=-1
Group=Offset

[MeasureOffsetBlue]
Measure=Calc
Formula=Random
LowBound=-2
HighBound=2
UpdateRandom=1
UpdateDivider=-1
Group=Offset

[MeterBackground]
Meter=Shape
X=1
Y=1
Shape=Rectangle 0,0,([Meter:W]+30),([Meter:H]+30) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor (Clamp(([MeasureStartRed]+50*[MeasureOffsetRed]),0,255)),(Clamp(([MeasureStartGreen]+50*[MeasureOffsetGreen]),0,255)),(Clamp(([MeasureStartBlue]+50*[MeasureOffsetBlue]),0,255)),(255-255*(15/(Clamp(#Thickness#,0.000001,15))))
Shape2=Rectangle 1,1,([Meter:W]+28),([Meter:H]+28) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor (Clamp(([MeasureStartRed]+50*[MeasureOffsetRed]),0,255)),(Clamp(([MeasureStartGreen]+50*[MeasureOffsetGreen]),0,255)),(Clamp(([MeasureStartBlue]+50*[MeasureOffsetBlue]),0,255)),(255-255*(14/(Clamp(#Thickness#,0.000001,15))))
Shape3=Rectangle 2,2,([Meter:W]+26),([Meter:H]+26) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor (Clamp(([MeasureStartRed]+50*[MeasureOffsetRed]),0,255)),(Clamp(([MeasureStartGreen]+50*[MeasureOffsetGreen]),0,255)),(Clamp(([MeasureStartBlue]+50*[MeasureOffsetBlue]),0,255)),(255-255*(13/(Clamp(#Thickness#,0.000001,15))))
Shape4=Rectangle 3,3,([Meter:W]+24),([Meter:H]+24) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor (Clamp(([MeasureStartRed]+50*[MeasureOffsetRed]),0,255)),(Clamp(([MeasureStartGreen]+50*[MeasureOffsetGreen]),0,255)),(Clamp(([MeasureStartBlue]+50*[MeasureOffsetBlue]),0,255)),(255-255*(12/(Clamp(#Thickness#,0.000001,15))))
Shape5=Rectangle 4,4,([Meter:W]+22),([Meter:H]+22) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor (Clamp(([MeasureStartRed]+50*[MeasureOffsetRed]),0,255)),(Clamp(([MeasureStartGreen]+50*[MeasureOffsetGreen]),0,255)),(Clamp(([MeasureStartBlue]+50*[MeasureOffsetBlue]),0,255)),(255-255*(11/(Clamp(#Thickness#,0.000001,15))))
Shape6=Rectangle 5,5,([Meter:W]+20),([Meter:H]+20) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor (Clamp(([MeasureStartRed]+50*[MeasureOffsetRed]),0,255)),(Clamp(([MeasureStartGreen]+50*[MeasureOffsetGreen]),0,255)),(Clamp(([MeasureStartBlue]+50*[MeasureOffsetBlue]),0,255)),(255-255*(10/(Clamp(#Thickness#,0.000001,15))))
Shape7=Rectangle 6,6,([Meter:W]+18),([Meter:H]+18) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor (Clamp(([MeasureStartRed]+50*[MeasureOffsetRed]),0,255)),(Clamp(([MeasureStartGreen]+50*[MeasureOffsetGreen]),0,255)),(Clamp(([MeasureStartBlue]+50*[MeasureOffsetBlue]),0,255)),(255-255*(9/(Clamp(#Thickness#,0.000001,15))))
Shape8=Rectangle 7,7,([Meter:W]+16),([Meter:H]+16) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor (Clamp(([MeasureStartRed]+50*[MeasureOffsetRed]),0,255)),(Clamp(([MeasureStartGreen]+50*[MeasureOffsetGreen]),0,255)),(Clamp(([MeasureStartBlue]+50*[MeasureOffsetBlue]),0,255)),(255-255*(8/(Clamp(#Thickness#,0.000001,15))))
Shape9=Rectangle 8,8,([Meter:W]+14),([Meter:H]+14) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor (Clamp(([MeasureStartRed]+50*[MeasureOffsetRed]),0,255)),(Clamp(([MeasureStartGreen]+50*[MeasureOffsetGreen]),0,255)),(Clamp(([MeasureStartBlue]+50*[MeasureOffsetBlue]),0,255)),(255-255*(7/(Clamp(#Thickness#,0.000001,15))))
Shape10=Rectangle 9,9,([Meter:W]+12),([Meter:H]+12) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor (Clamp(([MeasureStartRed]+50*[MeasureOffsetRed]),0,255)),(Clamp(([MeasureStartGreen]+50*[MeasureOffsetGreen]),0,255)),(Clamp(([MeasureStartBlue]+50*[MeasureOffsetBlue]),0,255)),(255-255*(6/(Clamp(#Thickness#,0.000001,15))))
Shape11=Rectangle 10,10,([Meter:W]+10),([Meter:H]+10) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor (Clamp(([MeasureStartRed]+50*[MeasureOffsetRed]),0,255)),(Clamp(([MeasureStartGreen]+50*[MeasureOffsetGreen]),0,255)),(Clamp(([MeasureStartBlue]+50*[MeasureOffsetBlue]),0,255)),(255-255*(5/(Clamp(#Thickness#,0.000001,15))))
Shape12=Rectangle 11,11,([Meter:W]+8),([Meter:H]+8) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor (Clamp(([MeasureStartRed]+50*[MeasureOffsetRed]),0,255)),(Clamp(([MeasureStartGreen]+50*[MeasureOffsetGreen]),0,255)),(Clamp(([MeasureStartBlue]+50*[MeasureOffsetBlue]),0,255)),(255-255*(4/(Clamp(#Thickness#,0.000001,15))))
Shape13=Rectangle 12,12,([Meter:W]+6),([Meter:H]+6) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor (Clamp(([MeasureStartRed]+50*[MeasureOffsetRed]),0,255)),(Clamp(([MeasureStartGreen]+50*[MeasureOffsetGreen]),0,255)),(Clamp(([MeasureStartBlue]+50*[MeasureOffsetBlue]),0,255)),(255-255*(3/(Clamp(#Thickness#,0.000001,15))))
Shape14=Rectangle 13,13,([Meter:W]+4),([Meter:H]+4) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor (Clamp(([MeasureStartRed]+50*[MeasureOffsetRed]),0,255)),(Clamp(([MeasureStartGreen]+50*[MeasureOffsetGreen]),0,255)),(Clamp(([MeasureStartBlue]+50*[MeasureOffsetBlue]),0,255)),(255-255*(2/(Clamp(#Thickness#,0.000001,15))))
Shape15=Rectangle 14,14,([Meter:W]+2),([Meter:H]+2) | Fill Color 0,0,0,0 | StrokeWidth 1 | StrokeColor (Clamp(([MeasureStartRed]+50*[MeasureOffsetRed]),0,255)),(Clamp(([MeasureStartGreen]+50*[MeasureOffsetGreen]),0,255)),(Clamp(([MeasureStartBlue]+50*[MeasureOffsetBlue]),0,255)),(255-255*(1/(Clamp(#Thickness#,0.000001,15))))
Shape16=Rectangle 15,15,[Meter:W],[Meter:H] | Fill Color 0,0,0 | StrokeWidth 1 | StrokeColor (Clamp(([MeasureStartRed]+50*[MeasureOffsetRed]),0,255)),(Clamp(([MeasureStartGreen]+50*[MeasureOffsetGreen]),0,255)),(Clamp(([MeasureStartBlue]+50*[MeasureOffsetBlue]),0,255)),(255-255*(0/(Clamp(#Thickness#,0.000001,15))))
DynamicVariables=1

[Meter]
Meter=Image
ImageName=#@#test1.png
MouseOverAction=[!CommandMeasure "MeasureRainbow" "Stop 1"][!CommandMeasure "MeasureRainbow" "Execute 1"]
LeftMouseUpAction=["notepad"]
X=15r
Y=15r
W=130
H=30
AntiAlias=1
ToolTipText=Left click opens Notepad.

[MeterString]
Meter=String
FontFace=Alex Brush
FontColor=255,255,255,255
StringEffect=Border
FontEffectColor=0,0,0,0
FontSize=15
AntiAlias=1
Y=3r
X=32r
Text=Notepad

[MeterContainer]
Meter=Shape
Shape=Rectangle 10,10,8,8,8
X=-28r
Y=-2r
Notepad.gif
THIS! This is actually what I had in mind! Is there ANY way to make it animated on its own without hovering? If there's no way, let's just leave it at that, looks good. The ONLY thing that bugs me hard now and I can't change no matter what I try, is this new border that comes out around my image, same as before....

Balala, I am so sorry....so sorry for bothering you with this, but, I really, REALLY, am at my wits end. I don't know which code is the faulty one, I am 100% sure I have a wrong code somewhere....but where??? That's what I don't get.
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Outer Glow and possible rainbow/chromatic effect on meter images?

Post by balala »

Ao Nuu Shin wrote: January 26th, 2019, 4:53 pm Is there ANY way to make it animated on its own without hovering?
Yeah, definitely is, but when the animation should play? If on start, remove the MouseOverAction option of the [Meter] meter and add the following one, to the [Rainmeter] section: OnRefreshAction=[!CommandMeasure "MeasureRainbow" "Execute 1"]. But in this case the animation will run only once, on refresh, to run it again, you have to refresh the skin, which isn't a good idea: https://forum.rainmeter.net/viewtopic.php?f=5&t=22739&p=120238&hilit=refresh+balala#p120238
So, the question is when you would like to run the animation, if not on start or when hovering the mouse over the skin?
Ao Nuu Shin wrote: January 26th, 2019, 4:53 pm The ONLY thing that bugs me hard now and I can't change no matter what I try, is this new border that comes out around my image, same as before....

Balala, I am so sorry....so sorry for bothering you with this, but, I really, REALLY, am at my wits end. I don't know which code is the faulty one, I am 100% sure I have a wrong code somewhere....but where??? That's what I don't get.
Not sure what to say, because as I said I have no this bug. However, to can better check what's going on, please pack the whole config which contains the skin and upload it.
And don't worry, you're not bothering me, I help with pleasure when I can.
Don't worry, be happy...
Ao Nuu Shin
Posts: 128
Joined: May 2nd, 2015, 9:13 am

Re: Outer Glow and possible rainbow/chromatic effect on meter images?

Post by Ao Nuu Shin »

balala wrote: January 26th, 2019, 5:05 pm Yeah, definitely is, but when the animation should play? If on start, remove the MouseOverAction option of the [Meter] meter and add the following one, to the [Rainmeter] section: OnRefreshAction=[!CommandMeasure "MeasureRainbow" "Execute 1"]. But in this case the animation will run only once, on refresh, to run it again, you have to refresh the skin, which isn't a good idea: https://forum.rainmeter.net/viewtopic.php?f=5&t=22739&p=120238&hilit=refresh+balala#p120238
So, the question is when you would like to run the animation, if not on start or when hovering the mouse over the skin?

Not sure what to say, because as I said I have no this bug. However, to can better check what's going on, please pack the whole config which contains the skin and upload it.
And don't worry, you're not bothering me, I help with pleasure when I can.
Don't worry, be happy...
Hey, I am thinking of making it play on its own automatically like, from left to right, the colors, or something like that. Meaning, more simple, the moment this specific skin is gonna be loaded, it will have a mind on its own. Completely autonomous. Like, when you open a .GIF for example? Isn't it playing non stop on its own as long as you have it opened? Something like that!

Here is the skin! With everything I did so far.
You do not have the required permissions to view the files attached to this post.
Last edited by Ao Nuu Shin on January 26th, 2019, 8:07 pm, edited 1 time in total.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Outer Glow and possible rainbow/chromatic effect on meter images?

Post by balala »

Ao Nuu Shin wrote: January 26th, 2019, 7:59 pm Hey, I am thinking of making it play on its own automatically like, from left to right, the colors, or something like that. Meaning, more simple, the moment this specific skin is gonna be loaded, it will have a mind on its own. Completely autonomous. Like, when you open a .GIF for example? Isn't it playing non stop on its own as long as you have it opened? Something like that!
So, let me understand. You would like to make continuous playing? In this case we have to reduce drastically the Update value, which will load the CPU. Not sure it worth, but definitely doable.
Ao Nuu Shin wrote: January 26th, 2019, 7:59 pm Here is the skin! With everything I did so far.
Where? Have you forgot to attach it?
Ao Nuu Shin
Posts: 128
Joined: May 2nd, 2015, 9:13 am

Re: Outer Glow and possible rainbow/chromatic effect on meter images?

Post by Ao Nuu Shin »

balala wrote: January 26th, 2019, 8:06 pm So, let me understand. You would like to make continuous playing? In this case we have to reduce drastically the Update value, which will load the CPU. Not sure it worth, but definitely doable.

Where? Have you forgot to attach it?
Ah, ok, nevermind then. She'll definitely kill me if this stress her CPU. Probably before she'll kill me I'd kill myself If I ruin her machine...haha.

Anyway! Yeah, let's forget that! I am happy with what I have right now!!! Seriously! Besides, I was the one who said it should be a simple, basic and easy but aesthetically pleasing as possible as a skin! Let's not make this more complicated....I think my brain will burst out.

Sorry! I forgot to upload it, should be fixed now! Check the comment above, please!
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Outer Glow and possible rainbow/chromatic effect on meter images?

Post by balala »

Ao Nuu Shin wrote: January 26th, 2019, 8:09 pm Ah, ok, nevermind then. She'll definitely kill me if this stress her CPU. Probably before she'll kill me I'd kill myself If I ruin her machine...haha.
Take care...
Ao Nuu Shin wrote: January 26th, 2019, 8:09 pm Anyway! Yeah, let's forget that! I am happy with what I have right now!!! Seriously! Besides, I was the one who said it should be a simple, basic and easy but aesthetically pleasing as possible as a skin! Let's not make this more complicated....I think my brain will burst out.
So, it is alright now?
Ao Nuu Shin wrote: January 26th, 2019, 8:09 pm Sorry! I forgot to upload it, should be fixed now! Check the comment above, please!
I still don't have that second border:
Thickness=2:
Notepad2.png
Thickness=6:
Notepad6.png
Thickness=10:
Notepad10.png
Thickness=12:
Notepad12.png
Thickness=15:
Notepad15.png
These screenshots was made using your last posted package, but the recoloring isn't included. Where is it?
Also note that you shouldn't use those sections separators (formed by those equal signs), or at least comment them out (;============================, instead of ============================). These don't make the code not to work, but it's better to comment out what don't belong to the code.
Now, I don't know what to say more about this issue, as I can't replicate it. What Rainmeter version are you using (although I don1t think this would count too much)?
Or maybe someone else here can test it. Just download Ao Nuu Shin's last package, posted above, install it, try to set the Thickness variable to 12 and refresh. There appeared a second border around the skin? Thanks you.
You do not have the required permissions to view the files attached to this post.
Ao Nuu Shin
Posts: 128
Joined: May 2nd, 2015, 9:13 am

Re: Outer Glow and possible rainbow/chromatic effect on meter images?

Post by Ao Nuu Shin »

balala wrote: January 26th, 2019, 8:31 pm Take care...


So, it is alright now?


I still don't have that second border:
Thickness=2: Notepad2.png
Thickness=6:
Notepad6.png
Thickness=10:
Notepad10.png
Thickness=12:
Notepad12.png
Thickness=15:
Notepad15.png
These screenshots was made using your last posted package, but the recoloring isn't included. Where is it?
Also note that you shouldn't use those sections separators (formed by those equal signs), or at least comment them out (;============================, instead of ============================). These don't make the code not to work, but it's better to comment out what don't belong to the code.
Now, I don't know what to say more about this issue, as I can't replicate it. What Rainmeter version are you using (although I don1t think this would count too much)?
Or maybe someone else here can test it. Just download Ao Nuu Shin's last package, posted above, install it, try to set the Thickness variable to 12 and refresh. There appeared a second border around the skin? Thanks you.
Oh, so, should I put this ";" in the lines of "=====" ? Ok, I will! Yeah, I just like to keep them separated a bit to make the code easier to read. I haven't encountered any problem with these lines in the past. I'll try with the Greek question mark, then.

The colorful notepad is located in the chromatic counterbug prgm folder in the rainmeter.

I was about to check my rm's version and I found out this has like 2 errors on that skin...hmm...
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Outer Glow and possible rainbow/chromatic effect on meter images?

Post by balala »

Ao Nuu Shin wrote: January 26th, 2019, 8:38 pm Oh, so, should I put this ";" in the lines of "=====" ? Ok, I will! Yeah, I just like to keep them separated a bit to make the code easier to read. I haven't encountered any problem with these lines in the past. I'll try with the Greek question mark, then.
It's good to separate them and those lines definitely don't create problems, however you should have to get used to comment out everything which doesn't belong to the code. I think this is a good practice.
Ao Nuu Shin wrote: January 26th, 2019, 8:38 pm The colorful notepad is located in the chromatic counterbug prgm folder in the rainmeter.
Oh, I see them now. But I don't have the border issue nor with these skins. To be honest have no idea what's going on there.
Although I read your next sentence, you still didn't say what version of Rainmeter are you using.
Ao Nuu Shin wrote: January 26th, 2019, 8:38 pm I was about to check my rm's version and I found out this has like 2 errors on that skin...hmm...
Probably an image used in the skin is missing. In the log you can check the name of this missing image, but in the posted screenshot, it's not visible. Check what is missing and check the appropriate folder to see if it's really missing or that's just a typo somewhere in the appropriate option of the skin. However what is weird is that I don't have any error message in the log. :confused:
Ao Nuu Shin
Posts: 128
Joined: May 2nd, 2015, 9:13 am

Re: Outer Glow and possible rainbow/chromatic effect on meter images?

Post by Ao Nuu Shin »

balala wrote: January 26th, 2019, 9:03 pm It's good to separate them and those lines definitely don't create problems, however you should have to get used to comment out everything which doesn't belong to the code. I think this is a good practice.

Oh, I see them now. But I don't have the border issue nor with these skins. To be honest have no idea what's going on there.
Although I read your next sentence, you still didn't say what version of Rainmeter are you using.

Probably an image used in the skin is missing. In the log you can check the name of this missing image, but in the posted screenshot, it's not visible. Check what is missing and check the appropriate folder to see if it's really missing or that's just a typo somewhere in the appropriate option of the skin. However what is weird is that I don't have any error message in the log. :confused:
I swear to you, Balala, I am not lying, I am not kidding you. I am starting to feel scared...I don't know what's going on with this code anymore. lmao

I have this border and I have no idea how/what is causing it, and I doubt anyone else here will confirm it...so, basically I am screwed hard right now..
You do not have the required permissions to view the files attached to this post.
User avatar
balala
Rainmeter Sage
Posts: 16110
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Outer Glow and possible rainbow/chromatic effect on meter images?

Post by balala »

Ao Nuu Shin wrote: January 26th, 2019, 11:02 pm I swear to you, Balala, I am not lying, I am not kidding you. I am starting to feel scared...I don't know what's going on with this code anymore. lmao

I have this border and I have no idea how/what is causing it, and I doubt anyone else here will confirm it...so, basically I am screwed hard right now..
No, no, I didn't say you would lying or kidding. Although I don't think this would solve the problem, try to upgrade your Rainmeter to the latest 4.3 r3279, available on https://www.rainmeter.net/
If you do a such upgrade, please let me know if the problem persist.