Hi balala
You are right...But;
Gibbs's Rule 25: If can not judge to add or not, add it!
Sorry, joking, and my bad English.
Such redundant things I often do in Rainmeter coding are... DynamicVariables=1, IfCondition(or Match)Mode=1, and the section variable brackets. What a noob!!
It is currently April 20th, 2024, 4:08 am
shapes and average
-
- Posts: 908
- Joined: December 30th, 2015, 9:47 am
-
- Posts: 908
- Joined: December 30th, 2015, 9:47 am
Re: shapes and average
Hi ItsJustRyan
Besides my attempts, I have a question. Why do you stick to shape meter? BarOrientation=Horizontal and Flip=1 options in Bar meter is not what you want?
Or...do you want to rotate CPU temperature bar to free angle, such as 45 degree? If so, shape meter seems to be a good solution. I have tested rotation in Bar meter using BarImage option, but it ended up with unexpected result (ImageRotate option bug? spec?).
Besides my attempts, I have a question. Why do you stick to shape meter? BarOrientation=Horizontal and Flip=1 options in Bar meter is not what you want?
Or...do you want to rotate CPU temperature bar to free angle, such as 45 degree? If so, shape meter seems to be a good solution. I have tested rotation in Bar meter using BarImage option, but it ended up with unexpected result (ImageRotate option bug? spec?).
-
- Rainmeter Sage
- Posts: 16147
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: shapes and average
-
- Rainmeter Sage
- Posts: 16147
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: shapes and average
Any kind of meter can be rotated with any angle and around any anchor point, through TransformationMatrix. Although not too easy, TransformationMatrix is an extremely powerful option, with a lot of things it can do. Don't be afraid to use it, it's not so hard as it seems at a first look.mak_kawa wrote: ↑December 5th, 2019, 11:05 am Or...do you want to rotate CPU temperature bar to free angle, such as 45 degree? If so, shape meter seems to be a good solution. I have tested rotation in Bar meter using BarImage option, but it ended up with unexpected result (ImageRotate option bug? spec?).
Interested?
-
- Posts: 81
- Joined: October 25th, 2019, 1:20 am
Re: shapes and average
Thanks This helped a lot.
I probably did some dumb sh*t which made it not work lmao
Also, I've read up the transformation matrix before, although i thought that the updated shape meter removed the need.
I probably did some dumb sh*t which made it not work lmao
Also, I've read up the transformation matrix before, although i thought that the updated shape meter removed the need.
-
- Posts: 81
- Joined: October 25th, 2019, 1:20 am
Re: shapes and average
mak_kawa wrote: ↑December 5th, 2019, 11:05 am Hi ItsJustRyan
Besides my attempts, I have a question. Why do you stick to shape meter? BarOrientation=Horizontal and Flip=1 options in Bar meter is not what you want?
Or...do you want to rotate CPU temperature bar to free angle, such as 45 degree? If so, shape meter seems to be a good solution. I have tested rotation in Bar meter using BarImage option, but it ended up with unexpected result (ImageRotate option bug? spec?).
I had failed to consider that xD.
-
- Posts: 908
- Joined: December 30th, 2015, 9:47 am
Re: shapes and average
Hi balala
Thanks for suggestion.
Interested, but...TranformationMatrix....That is what I fear most among Rainmeter functions.
Reading about that in Rainmeter document, I feel gibberish (ChinpunKanpun in Japnaene)...
Thanks for suggestion.
Interested, but...TranformationMatrix....That is what I fear most among Rainmeter functions.
Reading about that in Rainmeter document, I feel gibberish (ChinpunKanpun in Japnaene)...
-
- Posts: 908
- Joined: December 30th, 2015, 9:47 am
Re: shapes and average
Hi balala
No, I have a feeling that I am still a noob in Rainmeter world.
I am always stumbling on RegExp, IfCondition, Substitute, !EnableMeasure...every day, every time I write/modify Rainmeter code.
"Why, why doesn't this code work?!"
"Where does this error come from?"
"I can't figure out!!"
It's just a nightmare.
But, I am enjoying this Rainmeter nightmare.
Sorry for OT post > ItsJustRyan.
No, I have a feeling that I am still a noob in Rainmeter world.
I am always stumbling on RegExp, IfCondition, Substitute, !EnableMeasure...every day, every time I write/modify Rainmeter code.
"Why, why doesn't this code work?!"
"Where does this error come from?"
"I can't figure out!!"
It's just a nightmare.
But, I am enjoying this Rainmeter nightmare.
Sorry for OT post > ItsJustRyan.
-
- Rainmeter Sage
- Posts: 16147
- Joined: October 11th, 2010, 6:27 pm
- Location: Gheorgheni, Romania
Re: shapes and average
Yes, I think a lot of people are afraid of TransformationMatrix, matrices and some other mathematical calculation being involved, but if you try working with it, after a while you'll see it's not so hard as it seems at a first look.
The Shape meters are probably indeed easier to be rotated by their Rotate parameter. This technique has another great advantage in front of TransformationMatrix, the fact that if more shapes are used into one single Shape meter, with Rotate you can rotate just one of them, or can rotate the different shapes with different angles and so on. All these can't be done with TransformationMatrix.
However the Rotate parameter is available only on Shape meters, older meters (like String, Bar, or whatever else) can't use it. The most convenient way to rotate these meters in my opinion is TransformationMatrix. You can freely set the rotation angle, as well as the anchor point.
Unfortunately right now I have no enough time (due some other things I have to do) but a little bit later I'll post an example you to see what am I talking about.
Stay tuned, if interested...
-
- Developer
- Posts: 22629
- Joined: April 19th, 2009, 11:02 pm
- Location: Fort Hunt, Virginia, USA
Re: shapes and average
TransformationMatrix is the devil's work...
You do not have the required permissions to view the files attached to this post.