> Am 23.04.2021 um 20:21 schrieb Jean Abou Samra <j...@abou-samra.fr>: > > Le 22/04/2021 à 03:37, Michael Blankenship a écrit : > >> I'm just hoping to confirm that Lilypond does not have any way to generate >> or apply continuous color gradients to grobs. It certainly doesn't seem like >> it, since a search for the term returns zero results, a first for me. >> >> So, no color gradients, right? > > There is this LSR snippet: > > https://lsr.di.unimi.it/LSR/Item?id=1060 > > It works for \markup \path. > > To apply a gradient to an arbitrary grob, > you'd need Scheme code to generate the > appropriate commands in PostScript. > > After some hours trying to do that, I gave up > due to poor understanding of PostScript. > Sorry!
When I used to write PostScript code, I could only use PS level 2, and that doesn’t contain gradients – you can just simulate them with loops that draw stripes. But PS level 3 (published in 1997) has some support. Maybe this helps: https://stackoverflow.com/questions/7500185/postscript-drawing-a-gradient But getting into PS isn’t easier than getting into Scheme, and I guess you need to understand both. Hraban