Quantcast
Channel: Rainmeter Forums
Viewing all articles
Browse latest Browse all 1413

Community Tips & Tricks • Re: RGB Image Technique & Color Matrices

$
0
0
Well, the technique is certainly smart, but I'm not sure it is really necessary:

Code:

[Test]Meter=ImageImageName=#@#bg.pngColorMatrix1=1;0;0;0;0ColorMatrix2=0;1;0;0;0ColorMatrix3=0;0;1;0;0ColorMatrix4=0;0;0;1;0ColorMatrix5=1;0;0;0;1
ColorMatrix.jpg
The above is using the original background image poiru made for the Illustro skin, i.e. the 2nd image you posted above. No modification needed. The change is operated in the ColorMatrix5 option.

I don't know if it's what you envisioned, but if it is, I would suggest making yourself a test skin for the color matrix options (say, one where you can scroll to change each of the 25 values), so you can understand better what each of those values does. Personnally, I never truly understood practically what each value did until I used a matrix where I could change the values at will (I limited the change between -9.99 and 9.99 in my case, which was the plain Rainmeter version of this, which I can't post here since it's 9 GB of images - but you can see the little colored color matrix panels at the bottom of the screenshot). The color matrix guide in the manual is great, but it focuses on slightly different things like the brightness, contrast and saturation relation with the values, and not too much on what each of those values actually mean in practice.
The problem with your method is that it simply colorizes the whole image, look at the shadows for example. They're also red, as well as the stroke. To find the perfect spot where you could get a different color on each of them, would need a lot of tweaking, and of course, it would only work on that specific image (I think, haven't tried it). Whereas the method I described above will get you consistent results (if you design your images following some rule). The target are images that have light and shadows, there are times we want to preserve the overall look of the image, and only change the color hue without affecting the shadows nor the highlights, so shadows should always be black/grey and light white. Using your method, try making the image white, with a black stroke and black shadows:
Captura de pantalla 2024-03-24 135107.jpg
or maybe a red stroke?
Captura de pantalla 2024-03-24 135221.jpg
What if you wanted it to be dynamic? Using the method I described and the raincolors.lua script I can simply do this, and get any variant I want:

Code:

ColorMatrix1=[&C:matrix('[#Shadow]')];0;0ColorMatrix2=[&C:matrix('[#Color]')];0;0ColorMatrix3=[&C:matrix('[#Light]')];0;0

Statistics: Posted by RicardoTM — Today, 7:54 pm



Viewing all articles
Browse latest Browse all 1413

Trending Articles