This way I can pick a main color for my theme, and generate their variants with fixed parameters.
I have worked my way trough this Perlre manual to find a way to split the root color in R, G and B values. But I haven't learned a single useful bit for this case yet.
What I have in mind to start with is something like:
Code: Select all
;My styles.inc
[Variables]
rootcolor=152,141,25,255
downcolor="[downred],[downgreen],[downblue],255"
overcolor="[overred],[overgreen],[overblue],255"
morecolorvariants=...
[FindRed]
measure=Calc
formula=....some formula that can extract the "152" out of #rootcolor#...
[findgreen]
... same ...
[findblue]
... same ...
[downred]
measure=Calc
formula=([findred] * #modificationfactor#)
etc.....
And also because just multiplying ((#rootcolor#)*(#factor#)) returns weird results, being mostly black, but not always.
I'm currently stuck with observing the string output of my colors to notice any patterns in the behavior.
Any useful hint to get me away from splitting my colors up would be greatly appreciated!