I want to change the emacs fringe to a gradient of two colours.
(set-face-background 'fringe <gradient>)
As set-face-background
requires a colour name or hex, I'm unsure of how I can get it to show a gradient colour.
I believe the color.el
function color-gradient
could help with the interim step of determining the different shades of colours:
(color-gradient START STOP STEP-NUMBER)
(color-gradient '(255 192 203) '(250 128 114) 3)
But I'm unsure of how to take this list of colours and create the gradient colour along the fringe. I suspect I will need to advise the set-face-background
function, or perhaps a function responsible for displaying the fringe itself, but not sure where to start / how best to approach. Could anyone point me in the right direction?
color-gradient
just gives you a list of colors. How do you expect to use that in a single face? It's not clear what you are trying to do, in detail.set-face-background
, so convert your stuff into either format. If your question is simply how to convert a 255 192 203 to a hex, then there should be a function in color.el or in Drew's color / eye-dropper libraries. If your question is how to merge two of those (255 192 203 / 250 128 114) into one hex, then consider editing your question to say how do I merge these two animals into one hex ...?