Page 2 of 4

Re: Plugin: ColorExtract

Posted: October 11th, 2015, 1:51 pm
by redsaph
This is pretty great! The things we can do with this plugin... :o

Re: Plugin: ColorExtract

Posted: December 21st, 2015, 2:21 pm
by Kriust
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

Re: Plugin: ColorExtract

Posted: December 21st, 2015, 2:23 pm
by jsmorley
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.

Re: Plugin: ColorExtract

Posted: December 21st, 2015, 2:26 pm
by Kriust
Can't belive I forgot about that

Re: Plugin: ColorExtract

Posted: February 20th, 2017, 2:37 am
by caseyt
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?

Re: Plugin: ColorExtract

Posted: June 19th, 2018, 6:01 pm
by Vetsus
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!

Re: Plugin: ColorExtract

Posted: June 19th, 2018, 6:14 pm
by balala
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.

Re: Plugin: ColorExtract

Posted: June 19th, 2018, 6:31 pm
by Vetsus
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?

Re: Plugin: ColorExtract

Posted: June 19th, 2018, 6:38 pm
by balala
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.

Re: Plugin: ColorExtract

Posted: June 19th, 2018, 8:08 pm
by Vetsus
<snip>