Hello,
I would like some help with something related to chameleon plugin that I am working on.
I think it would be easiest for me to post the code, and share my objective, rather than just the objective.
There are 2 underlined sections of the code which I stole from @jsmorley in: https://forum.rainmeter.net/viewtopic.php?t=11185
EDIT: the lines weren't underlined. - the two lines were:
RegExp="(?siU)\[Variables\]\r\nColor1=(.-50*),(.-50*),(.-50*)
and
RegExp="(?siU)\[Variables\]\r\nColor1=(.+50*),(.+50*),(.+50*)
but me being new to rainmeter like I am, I thought I could just add + signs after the variables were there.
the goal is to check if the lumiance of the background is dark, and increase the brightness of the text if it is, and vice versa if it is dark.
However, nothing happens.
The clock will show up with the average color of the background, but there just isn't enough contrast for me. - and the colors aren't being added to the extracted RGB.
Any help is greatly appreciated!
Thank-You in advance.
I would like some help with something related to chameleon plugin that I am working on.
I think it would be easiest for me to post the code, and share my objective, rather than just the objective.
Code:
[Rainmeter]Update=1000Author=Connect-RBackgroundMode=2SolidColor=0,0,0,1DynamicWindowSize=1AccurateText=1MouseScrollUpAction=[!SetVariable Scale "(#Scale#+#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#+#ScrollMouseIncrement#)"][!Refresh] MouseScrollDownAction=[!SetVariable Scale "(#Scale#-#ScrollMouseIncrement# < 0.5 ? 0.5 : #Scale#-#ScrollMouseIncrement#)"][!WriteKeyValue Variables Scale "(#Scale#-#ScrollMouseIncrement# < 0.5 ? 0.5 : #Scale#-#ScrollMouseIncrement#)"][!Refresh] LeftMouseDoubleClickAction=!ToggleConfig "Mond\Settings" "Settings.ini"[Variables]@include=#@#Variables.inc@include2=#@#Language\#Language#.incScale=1; Chameleon Measures[ChameleonDesktop]Measure=PluginPlugin=ChameleonType=Desktop[AverageLight]Measure=PluginPlugin=ChameleonParent=ChameleonDesktopFormat=DecColor=AverageRegExp="(?siU)\[Variables\]\r\nColor1=(.+50*),(.+50*),(.+50*)OnChangeAction=[!UpdateMeasureGroup Luminance][AverageDark]Measure=PluginPlugin=ChameleonParent=ChameleonDesktopFormat=DecColor=AverageRegExp="(?siU)\[Variables\]\r\nColor1=(.-50*),(.-50*),(.-50*)OnChangeAction=[!UpdateMeasureGroup Luminance][ChameleonLuminance]Measure=PluginGroup=LuminancePlugin=ChameleonType=DesktopUpdateDivider=-1CropX=#CURRENTCONFIGX#CropY=#CURRENTCONFIGY#CropW=#CURRENTCONFIGWIDTH#CropH=#CURRENTCONFIGHEIGHT#DynamicVariables=1[Luminance]Measure=PluginGroup=LuminancePlugin=ChameleonParent=ChameleonLuminanceFormat=DecColor=LuminanceUpdateDivider=-1IfCondition=Luminance <= 0.5IfTrueAction=[!SetVariable Color1 "[AverageDark]"][!UpdateMeter *][!Redraw]IfFalseAction=[!SetVariable Color1 "[AverageLight]"][!UpdateMeter *][!Redraw]IfConditionMode=1;-------------------------------------------------------------;-------------------------------------------------------------[MeasureTime]Measure=TimeFormat="%#Format#:%M"[MeasureAmPm]Measure=TimeFormat="%p"[MeasureDay]Measure=TimeFormat=%ASubstitute=#Date#[MeasureDate]Measure=TimeFormat=%d %B, %Y.Substitute=#Date#;-------------------------------------------------------------;-------------------------------------------------------------[Meter24hClock]Meter=StringMeasureName=MeasureTimeStringAlign=CenterStringCase=UpperFontFace=QuicksandFontColor=#Color1#FontSize=(14*#Scale#)X=(340*#Scale#)Y=(120*#Scale#)Text="- %1 -"AntiAlias=1Hidden=#Hidden#DynamicVariables=1[Meter12hClock]Meter=StringMeasureName=MeasureTimeMeasureName2=MeasureAmPmStringAlign=CenterStringCase=UpperFontFace=QuicksandFontColor=[Average]FontSize=(14*#Scale#)X=(340*#Scale#)Y=(120*#Scale#)Text="- %1 %2 -"AntiAlias=1Hidden=#Hidden2#DynamicVariables=1[MeterDay]Meter=StringMeasureName=MeasureDayStringAlign=CenterStringCase=UpperFontFace=AnuratiFontColor=#Color1#FontSize=(40*#Scale#)X=(340*#Scale#)Y=(0*#Scale#)Text="%1"InlineSetting=CharacterSpacing | 10 | 10AntiAlias=1DynamicVariables=1[MeterDate]Meter=StringMeasureName=MeasureDateStringAlign=CenterStringCase=UpperFontFace=QuicksandFontColor=#Color1#FontSize=(14*#Scale#)X=(340*#Scale#)Y=(75*#Scale#)Text="%1"AntiAlias=1DynamicVariables=1
There are 2 underlined sections of the code which I stole from @jsmorley in: https://forum.rainmeter.net/viewtopic.php?t=11185
EDIT: the lines weren't underlined. - the two lines were:
RegExp="(?siU)\[Variables\]\r\nColor1=(.-50*),(.-50*),(.-50*)
and
RegExp="(?siU)\[Variables\]\r\nColor1=(.+50*),(.+50*),(.+50*)
but me being new to rainmeter like I am, I thought I could just add + signs after the variables were there.
the goal is to check if the lumiance of the background is dark, and increase the brightness of the text if it is, and vice versa if it is dark.
However, nothing happens.
The clock will show up with the average color of the background, but there just isn't enough contrast for me. - and the colors aren't being added to the extracted RGB.
Any help is greatly appreciated!
Thank-You in advance.
Statistics: Posted by Mr_House_Plants — Today, 9:29 am