It is currently May 18th, 2022, 2:18 am

Not really bugs...

Report bugs with the Rainmeter application and suggest features.
User avatar
Yincognito
Rainmeter Sage
Posts: 4694
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Not really bugs...

Post by Yincognito »

These two are technically not really bugs, but I'll still mention them, in case they will be looked into...

Sample skin:

Code: Select all

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

---Meters---

[Background]
Meter=Shape
Shape=Rectangle 0,0,600,600 | StrokeWidth 0 | Stroke Color 0,0,0,0 | Fill Color 0,0,0,255
UpdateDivider=-1

[Ellipse]
Meter=Shape
Shape=Ellipse 150,150,100,50 | Fill Color 0,0,0,0 | StrokeWidth 1 | Stroke LinearGradient EllipseXGradient | Scale 1,0
Shape2=Ellipse 450,150,100,0 | Fill Color 0,0,0,0 | StrokeWidth 1 | Stroke LinearGradient EllipseXGradient | Scale 1,1
Shape3=Ellipse 150,450,100,50 | Fill Color 0,0,0,0 | StrokeWidth 1 | Stroke LinearGradient Ellipse3Gradient
Shape4=Ellipse 450,450,100,50 | Fill Color 0,0,0,0 | StrokeWidth 1 | Stroke LinearGradient Ellipse4Gradient
EllipseXGradient=90 | 255,0,255,0 ; 0.0 | 255,0,255,0 ; 0.5  | 255,0,255,255 ; 0.5 | 255,0,255,255 ; 1.0
Ellipse3Gradient=-90 | 255,0,255,0 ; 0.0 | 255,0,255,0 ; 0.5  | 255,0,255,255 ; 0.5 | 255,0,255,255 ; 1.0
Ellipse4Gradient=-180 | 255,0,255,0 ; 0.0 | 255,0,255,0 ; 0.5  | 255,0,255,255 ; 0.5 | 255,0,255,255 ; 1.0
DynamicVariables=1
Result:
Ellipses & Gradients.png
Issues:
- the (vertically, but horizontally it's the same) 0 scaled ellipse in the top left corner doesn't look like the similar 0 height one in the top right corner, only half of it is drawn; the way it looks on the right should be the norm, at least for consistency across implemenations
- while Ellipse3's -90 angle works for the bottom left ellipse to invert the 90 degree direction of the gradient, bottom right Ellipse4's -180 angle does not, and you can check out by changing them to positive values; the workaround is obviously to use either 0 or 180 for right to left vs left to right directions, but I thought that since -90 or even -45 worked, any negative value including -180 would as well, especially since the manual states that the "angle is defined as any number of degrees" here - again, just a matter of consistency
You do not have the required permissions to view the files attached to this post.
User avatar
ikarus1969
Posts: 473
Joined: February 28th, 2011, 3:20 pm
Location: Vienna, Austria

Re: Not really bugs...

Post by ikarus1969 »

Yincognito wrote: November 27th, 2021, 2:42 am Issues:
- while Ellipse3's -90 angle works for the bottom left ellipse to invert the 90 degree direction of the gradient, bottom right Ellipse4's -180 angle does not, and you can check out by changing them to positive values; the workaround is obviously to use either 0 or 180 for right to left vs left to right directions, but I thought that since -90 or even -45 worked, any negative value including -180 would as well, especially since the manual states that the "angle is defined as any number of degrees" here - again, just a matter of consistency
for the -180/180 degrees case: both start and end at the same point - as you know by sure. Starting at 0 degrees at the right, no matter if you go -180° or +180°, you end up at the same point, at the right - the opposite of the starting point. So both have to show the same picture. From my point of view everything is alright.
As you wrote in the topic-title it's not really a bug - everything's fine.
For any other value (as long it's not a multiple of 180 of course) there will be always a difference in the picture.
User avatar
Yincognito
Rainmeter Sage
Posts: 4694
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Not really bugs...

Post by Yincognito »

ikarus1969 wrote: November 29th, 2021, 6:11 am for the -180/180 degrees case: both start and end at the same point - as you know by sure. Starting at 0 degrees at the right, no matter if you go -180° or +180°, you end up at the same point, at the right - the opposite of the starting point. So both have to show the same picture. From my point of view everything is alright.
As you wrote in the topic-title it's not really a bug - everything's fine.
For any other value (as long it's not a multiple of 180 of course) there will be always a difference in the picture.
True, that crossed my mind as well, but I guess I incorrectly expected that the sign would change the direction. I probably got a bit lost between the easier matter of gradient direction and the more complex matter of projecting 3D space circles (meridian and parallels) to 2D space using ellipses I was working on - the bottom line is that I shouldn't have mentioned this particular non-issue indeed. :oops:
User avatar
Yincognito
Rainmeter Sage
Posts: 4694
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Not really bugs...

Post by Yincognito »

Ok, so I've discovered another "not really a bug" - defining the gradients from 1.0 to 0.0 doesn't work as expected (or maybe it isn't designed to be used that way) - to the right is the 0.0 to 1.0 way and to the left is the attempted 1.00 to 0.0 way:

Code: Select all

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

---Meters---

[Background]
Meter=Shape
Shape=Rectangle 0,0,600,300 | StrokeWidth 0 | Stroke Color 0,0,0,0 | Fill Color 0,0,0,255
UpdateDivider=-1

[Ellipse]
Meter=Shape
Shape=Ellipse 150,150,100,50 | Fill Color 0,0,0,0 | StrokeWidth 1 | Stroke LinearGradient EllipseGradient
Shape2=Ellipse 450,150,100,50 | Fill Color 0,0,0,0 | StrokeWidth 1 | Stroke LinearGradient Ellipse2Gradient
EllipseGradient=180 | 255,0,255,0 ; 1.0 | 255,0,255,0 ; 0.5  | 255,0,255,255 ; 0.5 | 255,0,255,255 ; 0.0
Ellipse2Gradient=180 | 255,0,255,0 ; 0.0 | 255,0,255,0 ; 0.5  | 255,0,255,255 ; 0.5 | 255,0,255,255 ; 1.0
DynamicVariables=1
Inverse Gradient.jpg
Basically, trying to replicate inverting the gradient by decreasing the percentages (from 1.0 to 0.0 as opposed to from 0.0 to 1.0), instead of inverting it by manipulating the angle or the colors. Sometimes it's practical to try it this way, especially when you also want to dynamically change percentages in various cases.
You do not have the required permissions to view the files attached to this post.
User avatar
death.crafter
Rainmeter Sage
Posts: 1364
Joined: April 24th, 2021, 8:13 pm

Re: Not really bugs...

Post by death.crafter »

Yincognito wrote: November 30th, 2021, 3:18 pm Ok, so I've discovered another "not really a bug" - defining the gradients from 1.0 to 0.0 doesn't work as expected (or maybe it isn't designed to be used that way) - to the right is the 0.0 to 1.0 way and to the left is the attempted 1.00 to 0.0 way:

Basically, trying to replicate inverting the gradient by decreasing the percentages (from 1.0 to 0.0 as opposed to from 0.0 to 1.0), instead of inverting it by manipulating the angle or the colors. Sometimes it's practical to try it this way, especially when you also want to dynamically change percentages in various cases.
I think it can be passed as a bug. Since it's a pipe separated syntax, the order shouldn't matter.
from the Realm of Death
User avatar
Yincognito
Rainmeter Sage
Posts: 4694
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: Not really bugs...

Post by Yincognito »

death.crafter wrote: November 30th, 2021, 4:10 pm I think it can be passed as a bug. Since it's a pipe separated syntax, the order shouldn't matter.
Could be. Maybe the order matters when the pipe syntax is converted into the internal syntax / function in the Rainmeter code that produces the gradient though. Logically, that would somewhat justify why there's a need for a directional gradient angle, as opposed to an angle without directional meaning (e.g. an "inclination", so to speak).

But yeah, even if the internal syntax requires the percentages to be in "order", such an order could probably be achieved easily with some sort function and such. I'm curious about what the devs would say on this one (and the halved 0 scaled ellipse above).