It is currently April 20th, 2024, 9:12 am

How to make color transfusion

Get help with creating, editing & fixing problems with skins
dart sinister
Posts: 12
Joined: April 29th, 2020, 4:57 pm

How to make color transfusion

Post by dart sinister »

I found on the Internet a skin in which a static background color. how can I make the color change automatically

Code: Select all

[Variables]


Language=English
Location=SPXX0050
Unit=m
Player=Winamp
Format=H
Hidden=0
Hidden2=1
TextColor=255,255,255
BackgroundColor=0,162,255
(I don’t understand how to write skins, but I can connecting @Include :D ;-) )
User avatar
Yincognito
Rainmeter Sage
Posts: 7128
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: How to make color transfusion

Post by Yincognito »

dart sinister wrote: April 29th, 2020, 5:17 pm I found on the Internet a skin in which a static background color. how can I make the color change automatically

Code: Select all

[Variables]


Language=English
Location=SPXX0050
Unit=m
Player=Winamp
Format=H
Hidden=0
Hidden2=1
TextColor=255,255,255
BackgroundColor=0,162,255
(I don’t understand how to write skins, but I can connecting @Include :D ;-) )
First, the code you posted is incomplete, it's only a part of the [Variables] section in that skin, which doesn't tell much about what happens in the skin, therefore not really useful by itself when asking for help here.

Secondly, you should answer to the following questions, in order for us to be able to help you with this:
- what color do you want to "automatically change" your background color to?
- when (i.e. in which circumstances) do you want that change to happen?

Bottom line, helping you is impossible until you post the code and answer to the two questions above.
(I don’t understand how to draw lines, but I can connecting dots :D ;-) )
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
dart sinister
Posts: 12
Joined: April 29th, 2020, 4:57 pm

Re: How to make color transfusion

Post by dart sinister »

Hello! Thanks for the answer. I would like to constantly overflow through the rainbow.

Code: Select all

[Variables]


Language=English
Location=SPXX0050
Unit=m
Player=Winamp
Format=H
Hidden=0
Hidden2=1
TextColor=255,255,255
BackgroundColor=0,162,255
;-------------------------------------------------------------
;-------------------------------------------------------------

;DOCK SETTINGS:

;This below is the settings for the dock with icons.
;If you are not familiar with Rainmeter from earlier,please don't edit anything!
;It's too complicated and sensitive,if you don't know what you doing!
;But i will try to explain to you as much as i can.This "#@#\" is shortened for "@Resources" folder.It's a folder where the icons and other parts of the skin are located.
;If you want to change icon-s,new icon-s,you must put in "@Resources" folder.Also,icons must be in PNG file format.
;When you change "icon and name path",for example if you want to change "My Computer" icon to "CCleaner",it should look like this:

;This is example for some program:

;Icon1NameAndPath=#@#\CCleaner.png
;Icon1Text=CCleaner
;LocationPath1=["C:\Program Files\CCleaner\CCleaner64.exe"]

;This is example for some internet links:

;Icon4NameAndPath=#@#\Twitter.png
;Icon4Text=Twitter
;LocationPath4=["https://twitter.com/?lang=en"]

;etc..

;On this site : https://docs.rainmeter.net/manual/getting-started/customizing/
;you can find all information,about customizing some skin.To change color,font,size,etc..
;You can also learn how to make your first skin. :)
;Thank you for your understanding! :)


;----------------------Internet Links Settings-------------------
;----------------------------------------------------------------


LinkIcon1NameAndPath=#@#\Google.png
Link1Text=Google
LinkLocationPath1=["https://google.com"]

LinkIcon2NameAndPath=#@#\Youtube.png
Link2Text=Youtube
LinkLocationPath2=["https://www.youtube.com/"]

LinkIcon3NameAndPath=#@#\Gmail.png
Link3Text=Gmail
LinkLocationPath3=["https://mail.google.com/mail/"]

LinkIcon4NameAndPath=#@#\Vk.png
Link4Text=Vk
LinkLocationPath4=["https://vk.com"]

LinkIcon5NameAndPath=#@#\Twitter.png
Link5Text=Twitter
LinkLocationPath5=["https://twitter.com/"]

LinkIcon6NameAndPath=#@#\Unsplash.png
Link6Text=Unsplash
LinkLocationPath6=["https://unsplash.com/"]
Here is the whole code, if necessary, I'll throw off all the skins in this pack
User avatar
balala
Rainmeter Sage
Posts: 16148
Joined: October 11th, 2010, 6:27 pm
Location: Gheorgheni, Romania

Re: How to make color transfusion

Post by balala »

dart sinister wrote: April 29th, 2020, 7:34 pm Here is the whole code, if necessary, I'll throw off all the skins in this pack
No, this is not the code of your skin, but the code of the included (probably) .inc file, which keeps the variables. As Yincognito said, we need the code of the skin, which for sure is a .ini file and it has a @Include=THE-PATH-OF-THE-FILE-CONTAINING-THE-POSTED-VARIABLES option under its [Variables] section.
Please right click the skin and click Edit skin (if your Rainmeter is set Spanish click Editar piel). The skin opens into the default text editor. Copy the entire code and post it here.
User avatar
Yincognito
Rainmeter Sage
Posts: 7128
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: How to make color transfusion

Post by Yincognito »

dart sinister wrote: April 29th, 2020, 7:34 pmI would like to constantly overflow through the rainbow.
By "overflow through the rainbow" you mean going through the basic ROYGBIV rainbow colors, or something more complex than that (like other intermediary colors as well)?

Also, by "constantly" you mean that you want the above to happen on every update of the skin, right?

Regarding the code, this is probably just the Variables.inc file in the pack. It would be better to either tell the name of the pack (if it's the original code, downloaded from somewhere, say, DeviantArt or from this forum) so that we can search and download it, or post the whole pack as an attachement (easier than posting the code from every file in the pack, obviously).
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
dart sinister
Posts: 12
Joined: April 29th, 2020, 4:57 pm

Re: How to make color transfusion

Post by dart sinister »

here is the code of the skin itself

Code: Select all

[Rainmeter]
Update=1000
Author=Connect-R
DynamicWindowSize=1
AccurateText=1
BackgroundMode=2
SolidColor=0,0,0,1
LeftMouseDoubleClickAction=!ToggleConfig "Nelamint\Settings" "Settings.ini"


[Variables]
@include=#@#Variables.inc
@include2=#@#Language\#Language#.inc

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterBgComponent1]
Meter=Image
X=0
Y=0
W=8
H=135
SolidColor=#BackgroundColor#
UpdateDivider=-1

[MeterBgComponent2]
Meter=Image
X=12
Y=0
W=300
H=135
SolidColor=#BackgroundColor#
SolidColor2=0,0,0,0
GradientAngle=0
UpdateDivider=-1

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureCheckNetwork]
Measure=Plugin
Plugin=SysInf
SysInfoType=INTERNET_CONNECTIVITY
SysInfoData=Best
OnChangeAction=[!CommandMeasure MeasureCurrent "Update"][!CommandMeasure MeasureUnits "Update"]

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureCurrent]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=900
Url=http://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#
RegExp="(?siU)<head>.*<ut>(.*)</ut>.*<tmp>(.*)</tmp>.*<t>(.*)</t>"

[MeasureUnits]
Measure=Plugin
Plugin=WebParser.dll
UpdateRate=900
Url=http://wxdata.weather.com/wxdata/weather/local/#Location#?cc=*&unit=#Unit#&dayf=1
RegExp="(?siU)<head>.*<locale>(.*)</locale>.*<form>(.*)</form>.*<ud>(.*)</ud>.*<us>(.*)</us>.*<up>(.*)</up>"

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureTempUnit]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=1
Substitute="C":"#Celsius#","F":"#Fahrenheit#"

[MeasureWeatherTemp]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=2

[MeasureWeatherCond]
Measure=Plugin
Plugin=WebParser.dll
Url=[MeasureCurrent]
StringIndex=3
Substitute=#Conditions#

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeasureTime]
Measure=Time
Format=%#Format#:%M

[MeasureAMPM]
Measure=Time
Format=%p

[MeasureDay]
Measure=Time
Format=%A
Substitute=#Date#

[MeasureDate]
Measure=Time
Format=%d %B %Y
Substitute=#Date#

;-------------------------------------------------------------
;-------------------------------------------------------------

[MeterClock24h]
Meter=String
MeasureName=MeasureTime
StringAlign=Left
FontColor=#TextColor#
FontFace=Fivo Sans Heavy
FontSize=70
X=150
Y=15
Text="%1"
AntiAlias=1
Hidden=#Hidden#

[MeterClock12h]
Meter=String
MeasureName=MeasureTime
MeasureName2=MeasureAMPM
StringAlign=Left
FontColor=#TextColor#
FontFace=Fivo Sans Heavy
FontSize=50
X=150
Y=15
Text="%1%2"
InlinePattern="[MeasureAMPM]"
InlineSetting=Size | 15
DynamicVariables=1
AntiAlias=1
Hidden=#Hidden2#

[MeterDay]
Meter=String
MeasureName=MeasureDay
StringAlign=CenterCenter
StringCase=Upper
FontColor=#TextColor#
FontFace=Fivo Sans Heavy
FontSize=12
X=20
Y=75
Text="%1"
Angle=(Rad(-90))
AntiAlias=1

[MeterDate]
Meter=String
MeasureName=MeasureDate
StringAlign=Left
FontColor=#TextColor#
FontFace=Fivo Sans Thin
FontSize=20
X=150
Y=105
Text="%1"
AntiAlias=1

;-------------------------------------------------------------
;-------------------------------------------------------------


and by transfusion I mean something like this.
but by "constantly" I mean that all the time should be poured like a video.

dart sinister
Posts: 12
Joined: April 29th, 2020, 4:57 pm

Re: How to make color transfusion

Post by dart sinister »

User avatar
Yincognito
Rainmeter Sage
Posts: 7128
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: How to make color transfusion

Post by Yincognito »

dart sinister wrote: April 29th, 2020, 8:28 pmand by transfusion I mean something like this.
but by "constantly" I mean that all the time should be poured like a video.
This is doable by setting a very low update rate in the skin and setting the UpdateRate / UpdateDivider options of the other measures and meters to higher values than 1 (ActionTimer won't work on this one, as it hangs on endless animations), but we'll all (including yourself, LOL) have to figure out the formula(s) for that color transition. It surely exists somewhere on the internet (or can be deduced if one didn't skip math classes in school), but why make a greater effort than needed, right?
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth
dart sinister
Posts: 12
Joined: April 29th, 2020, 4:57 pm

Re: How to make color transfusion

Post by dart sinister »

I found a skin with the same animation as I wanted. maybe there is a way to take color from this skin
https://www.deviantart.com/alatsombath/art/Fountain-of-Colors-desktop-music-visualizer-518894563
User avatar
Yincognito
Rainmeter Sage
Posts: 7128
Joined: February 27th, 2015, 2:38 pm
Location: Terra Yincognita

Re: How to make color transfusion

Post by Yincognito »

dart sinister wrote: April 29th, 2020, 9:21 pm I found a skin with the same animation as I wanted. maybe there is a way to take color from this skin
https://www.deviantart.com/alatsombath/art/Fountain-of-Colors-desktop-music-visualizer-518894563
Well, I didn't try it, but from looking at the details of that skin, it isn't exactly the same color sequence as in the video. If you're fine with that, that's ok. If you're not, I had already identified the principle behind the color sequence in the video when at the time of your post, and it's pretty simple: it starts out at full Red, followed by Blue increasing while Red decreases, followed by Green increasing while Blue decreases, followed by Red increasing while Green decreases, all that repeating over and over again. Basically, the pattern of increasing is the reverse of R-G-B order (i.e. B-G-R) while the pattern of decreasing is the right side neighbours of R-G-B colors (i.e. R-B-G).

Anyway, the Fountain of Colors process is Smurfier's ColorChanger script, so that's one solved issue.
Profiles: Rainmeter ProfileDeviantArt ProfileSuites: MYiniMeterSkins: Earth