Hello from Italy.
I'm an old programmer, just new to LUA and Rainmeter.
This is the embryo of a skin i'm trying to build.
Each of the 8 sectors is one of my CPU core and shows some data about it.
I would like to make them to change color from blue to red to show the core temp, and change the size (the external diameter) to show the core load.
Given that each sector has to make the same math, i THINK that some common functions could be a better solution than rewriting everything 8 times. And, for what i've understand, functions are a LUA scripts thing.
Am I right? Is LUA scripting the best solution?
I think that the function that calculates the color could be a good starting point: that function should take 3 values as inputs (Min,Max,Value) and returns the "color of the rainbow", with Blue when Value<=Min and Red when Value >=Max, passing from Cyan->Green->Yellow in between.
I think I could learn a lot by just looking at how this function is written and how to use it in the Rainmeter skin.
Could someone "kickstart" me by showing how a function like this should look, and how to implement it in the skin?
Thanks a lot.
I'm an old programmer, just new to LUA and Rainmeter.
This is the embryo of a skin i'm trying to build.
Each of the 8 sectors is one of my CPU core and shows some data about it.
I would like to make them to change color from blue to red to show the core temp, and change the size (the external diameter) to show the core load.
Given that each sector has to make the same math, i THINK that some common functions could be a better solution than rewriting everything 8 times. And, for what i've understand, functions are a LUA scripts thing.
Am I right? Is LUA scripting the best solution?
I think that the function that calculates the color could be a good starting point: that function should take 3 values as inputs (Min,Max,Value) and returns the "color of the rainbow", with Blue when Value<=Min and Red when Value >=Max, passing from Cyan->Green->Yellow in between.
I think I could learn a lot by just looking at how this function is written and how to use it in the Rainmeter skin.
Could someone "kickstart" me by showing how a function like this should look, and how to implement it in the skin?
Thanks a lot.
Statistics: Posted by Parduz — December 8th, 2024, 5:56 pm