Color blending
I’ve never been super into adjusting color through shifting HSL values - let alone RGB. Blending colors the “old fashioned” way has always worked better in my head. This resulted in me overlaying one semi-transparent color over another color and adjusting to get the color I wanted. For example, if I wanted to “cool down” an orange, I would place a blueish color on top of my orange and then spot sample the resulting color. But that process was slow, so I finally took the time to make the process programmatic.
Instructions
- Copy the code below into a file on your machine. Let’s name it
colors.js
- Install Node.js
- Edit
BACKGROUND_COLOR
,FOREGROUND_COLOR
andBLEND_AMOUNT
to fit your needs - Fire up a Terminal window and
cd
to the directory where you saved thecolors.js
file - Run
node blend-colors.js
in your terminal - Read out the results returned in the terminal