Alright I poked around in my test app and it looks like this is what's happening:
Because of the difference in the shade of red between the center and the edges, when Chameleon reduces the image's colors it basically becomes black, dark red and light red. Because the light red is in the center and doesn't have any pixels touching the edge, Chameleon picks the dark red for the primary background color. Then since the light red is still a possible option, and there's so much of it, it picks that for the primary foreground color. Then it sees the "black" in the corners and picks that for the secondary background, leaving only the white for the secondary foreground. Because the light red and dark red don't have enough contrast, it then forces the foreground towards white.
Granted, this is for the full image; if Chameleon is doing any cropping that will affect things.
Not sure what to do about it beyond changing weights and increasing the number of colors Chameleon is allowed to work with.
It is currently September 20th, 2024, 12:07 am
Plugin: Chameleon
-
- Posts: 105
- Joined: August 25th, 2015, 6:40 pm
-
- Posts: 12
- Joined: June 26th, 2016, 10:41 pm
Re: Plugin: Chameleon
Ah ok, thanks! It's not a big deal for me if it doesn't see the black for the foreground. Pretty interesting seeing how it decides what is what!
Thanks!
Thanks!
-
- Posts: 11
- Joined: June 16th, 2016, 5:04 pm
Re: Plugin: Chameleon
Waw ! Thank you for this explanation ! I understand much better how it works.
-
- Posts: 826
- Joined: November 20th, 2012, 11:58 pm
Re: Plugin: Chameleon
Hello Socks the Fox, I have two questions:
the first: if I use in parent measure File option, is it necessary to use CropDesktop=0?
the second: is Crop{X,Y, W, H} based on the real dimensions of an image?
For example: if I have an image 2048x1960 pixels but I use a meter image like this, to capture the colours that they are in the lower right, do I need to use CropX = 2030 and so on or CropX = 220 and so on ?
Thanks in advance
the first: if I use in parent measure File option, is it necessary to use CropDesktop=0?
the second: is Crop{X,Y, W, H} based on the real dimensions of an image?
For example: if I have an image 2048x1960 pixels but I use a meter image like this
Code: Select all
[MeterImage]
Meter=Image
MeasureName=MeasureImage
X=0
Y=0
W=250
H=150
AntiAlias=1
Thanks in advance
-
- Posts: 105
- Joined: August 25th, 2015, 6:40 pm
Re: Plugin: Chameleon
Hello! If you're using the File option instead of letting Chameleon use the desktop, then you do not need the CropDesktop option.
The cropping info is the real dimensions of the image, so you'll need to figure out whatever offsets and whatnot manually.
The cropping info is the real dimensions of the image, so you'll need to figure out whatever offsets and whatnot manually.
-
- Posts: 11
- Joined: June 16th, 2016, 5:04 pm
Re: Plugin: Chameleon
Hi Socks The Fox,
I'm (always ^^) on my project and I'm asking me if it it possible to artificially create a third ForeGround and BackGround color ? I noticed that sometimes, Chameleon provides colors which are not "important" in the image (or simply not present in the picture). So maybe that adding a third color, the result is more likely to be "accurate" ?
Have a nice day !
I'm (always ^^) on my project and I'm asking me if it it possible to artificially create a third ForeGround and BackGround color ? I noticed that sometimes, Chameleon provides colors which are not "important" in the image (or simply not present in the picture). So maybe that adding a third color, the result is more likely to be "accurate" ?
Have a nice day !
-
- Posts: 12
- Joined: June 26th, 2016, 10:41 pm
Re: Plugin: Chameleon
Hey,
So having a little more issues with setting it up.
I've managed to get it working with DINAJ but when I try using it in Circuitous its only showing white.
I think I have done the same thing in both, so I can't work out why it wont work.
Here is the code in the appearance.txt for C2:
Does anything look out of place or anything that you know could be causing this?
So having a little more issues with setting it up.
I've managed to get it working with DINAJ but when I try using it in Circuitous its only showing white.
I think I have done the same thing in both, so I can't work out why it wont work.
Here is the code in the appearance.txt for C2:
Code: Select all
[ChameleonDesktop]
Measure=Plugin
Plugin=Chameleon
Type=Desktop
[DesktopFG2]
Measure=Plugin
Plugin=Chameleon
Parent=ChameleonDesktop
Color=Foreground2
[Variables]
; color settings
innerRingColor=0,0,0,255
outerRingColor=#innerRingColor#
pieBgColor=246,138,30,255
pieColor=0,0,0,255
textMainColor=[DesktopFG2]
textSubColor=#innerRingColor#
bgBarColor=0,0,0,255
; size and scaling
radius=30
innerRadius=(#radius#*0.55)
edging=(#radius#*0.3)
orient=right
pieSize=1.0
pieStart=4.712
; show and hide skin components
hideInnerEdge=0
hideOuterEdge=0
hidePieBg=0
hideDivider=0
hideSubText=0
-
- Rainmeter Sage
- Posts: 5527
- Joined: April 12th, 2012, 9:40 pm
- Location: Cedar Point, Ohio, USA
Re: Plugin: Chameleon
You need to add DynamicVariables=1 to your meters that use Chameleon colors. See this post: https://forum.rainmeter.net/viewtopic.php?p=125280#p125280Flayre1 wrote:Hey,
So having a little more issues with setting it up.
I've managed to get it working with DINAJ but when I try using it in Circuitous its only showing white.
I think I have done the same thing in both, so I can't work out why it wont work.
Here is the code in the appearance.txt for C2:
Does anything look out of place or anything that you know could be causing this?Code: Select all
[ChameleonDesktop] Measure=Plugin Plugin=Chameleon Type=Desktop [DesktopFG2] Measure=Plugin Plugin=Chameleon Parent=ChameleonDesktop Color=Foreground2 [Variables] ; color settings innerRingColor=0,0,0,255 outerRingColor=#innerRingColor# pieBgColor=246,138,30,255 pieColor=0,0,0,255 textMainColor=[DesktopFG2] textSubColor=#innerRingColor# bgBarColor=0,0,0,255 ; size and scaling radius=30 innerRadius=(#radius#*0.55) edging=(#radius#*0.3) orient=right pieSize=1.0 pieStart=4.712 ; show and hide skin components hideInnerEdge=0 hideOuterEdge=0 hidePieBg=0 hideDivider=0 hideSubText=0
:: My DA Gallery :: Rainmeter DA Gallery :: Rainmeter Workshops :: Rainmeter Documentation :: BBCode Guide ::
-
- Posts: 12
- Joined: June 26th, 2016, 10:41 pm
Re: Plugin: Chameleon
Yeah, sorry about that! I did have that in, I pasted the wrong code. Even with that line in its not working correctly and the colours only show white.eclectic-tech wrote:You need to add DynamicVariables=1 to your meters that use Chameleon colors. See this post: https://forum.rainmeter.net/viewtopic.php?p=125280#p125280
Sorry to confuse that bit, thanks for the pointer though!
-
- Posts: 105
- Joined: August 25th, 2015, 6:40 pm
Re: Plugin: Chameleon
Not sure if this is the cause but could you try adding an alpha value to your textMainColor? Something like textMainColor=[DesktopFG2]FF (since the default is hex)
I just want to narrow down the possibilities :3
I just want to narrow down the possibilities :3