It is currently April 22nd, 2019, 11:04 am

Plugin: ColorExtract

Share and get help with Plugins and Addons
User avatar
redsaph
Posts: 26
Joined: October 24th, 2013, 8:15 am

Re: Plugin: ColorExtract

redsaph » October 11th, 2015, 1:51 pm

This is pretty great! The things we can do with this plugin... :o
User avatar
Kriust
Posts: 33
Joined: October 9th, 2014, 3:29 pm
Location: Europe

Re: Plugin: ColorExtract

Kriust » December 21st, 2015, 2:21 pm

Trying to change a bitmap color with " ImageTint=[Accent1] " and is not working.

Code: Select all

;---ColorExtract

[MeasureColorParent]
Measure=Plugin
Plugin=ColorExtract
ImagePath=[MeasureCover]
DynamicVariables=1

[BackgroundColor]
Measure=Plugin
Plugin=ColorExtract
ParentMeasure=[MeasureColorParent]
ColorType=Background

[Accent1]
Measure=Plugin
Plugin=ColorExtract
ParentMeasure=[MeasureColorParent]
ColorType=Accent1

[Accent2]
Measure=Plugin
Plugin=ColorExtract
ParentMeasure=[MeasureColorParent]
ColorType=Accent2

;---LightMeter

[Light]
Meter=Bitmap
MeasureName=measureAudioOut_RMS_L
X=0
Y=0
BitmapImage=#@#Light.png
Greyscale=1
ImageTint=[Accent1]
BitmapFrames=5
BitmapExtend=1
AntiAlias=1
User avatar
jsmorley
Developer
Posts: 19183
Joined: April 19th, 2009, 11:02 pm
Location: Fort Hunt, Virginia, USA

Re: Plugin: ColorExtract

jsmorley » December 21st, 2015, 2:23 pm

Kriust wrote:Trying to change a bitmap color with " ImageTint=[Accent1] " and is not working.

Code: Select all

;---ColorExtract

[MeasureColorParent]
Measure=Plugin
Plugin=ColorExtract
ImagePath=[MeasureCover]
DynamicVariables=1

[BackgroundColor]
Measure=Plugin
Plugin=ColorExtract
ParentMeasure=[MeasureColorParent]
ColorType=Background

[Accent1]
Measure=Plugin
Plugin=ColorExtract
ParentMeasure=[MeasureColorParent]
ColorType=Accent1

[Accent2]
Measure=Plugin
Plugin=ColorExtract
ParentMeasure=[MeasureColorParent]
ColorType=Accent2

;---LightMeter

[Light]
Meter=Bitmap
MeasureName=measureAudioOut_RMS_L
X=0
Y=0
BitmapImage=#@#Light.png
Greyscale=1
ImageTint=[Accent1]
BitmapFrames=5
BitmapExtend=1
AntiAlias=1
You need DynamicVariables=1 on the meter.
User avatar
Kriust
Posts: 33
Joined: October 9th, 2014, 3:29 pm
Location: Europe

Re: Plugin: ColorExtract

Kriust » December 21st, 2015, 2:26 pm

Can't belive I forgot about that
caseyt
Posts: 1
Joined: February 20th, 2017, 1:28 am

Re: Plugin: ColorExtract

caseyt » February 20th, 2017, 2:37 am

Thanks,

I am testing out the demo skin(https://github.com/QuietMisdreavus/PluginColorExtract) but The head, background, and body only update when i refresh the skin although the image updates as soon as I change it. Anybody know how to refresh the rest automatically?
Vetsus
Posts: 27
Joined: March 7th, 2017, 5:29 pm

Re: Plugin: ColorExtract

Vetsus » June 19th, 2018, 6:01 pm

does anyone know of a way to remove the transparency section from these values? i have have been toying with webparser, but if any of the RGB values are 255 it seems to mess with it as the transparency is always 255 (ie 123,456,789,255)

any help would be awesome, and if someone has this figured out already, great!
User avatar
balala
Rainmeter Sage
Posts: 8086
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Plugin: ColorExtract

balala » June 19th, 2018, 6:14 pm

Vetsus wrote:does anyone know of a way to remove the transparency section from these values?
Simply remove the last number (255): 123,456,789.
But take care that the values used into a color code usually have to be less or at most equal with 255. Having larger values isn't a great problem, but those values are reduced, to less than 255. Eg the 123,456,789 is the same as 123,(456-255),(789-3*255) = 123,201,24.
Vetsus wrote:but if any of the RGB values are 255 it seems to mess with it as the transparency is always 255
To be honest I never encountered a such problem.
Vetsus
Posts: 27
Joined: March 7th, 2017, 5:29 pm

Re: Plugin: ColorExtract

Vetsus » June 19th, 2018, 6:31 pm

i understand they are never higher than 255. anything beyond that is actually counted as 255. i used those numbers as examples. but how exactly do you remove the last value? so if it's rrr,ggg,bbb,ttt then how would you remove the ",ttt" from that value?
User avatar
balala
Rainmeter Sage
Posts: 8086
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: Plugin: ColorExtract

balala » June 19th, 2018, 6:38 pm

Vetsus wrote:but how exactly do you remove the last value? so if it's rrr,ggg,bbb,ttt then how would you remove the ",ttt" from that value?
As I said, leaving just rrr,ggg,bbb. 100,150,200,255 is the same as 100,150,200.
Vetsus
Posts: 27
Joined: March 7th, 2017, 5:29 pm

Re: Plugin: ColorExtract

Vetsus » June 19th, 2018, 8:08 pm

<snip>
Last edited by jsmorley on June 19th, 2018, 10:10 pm, edited 1 time in total.
Reason: Hostility and personal attacks against someone who is try to help you wil NEVER be allowed on these forums.