[NTG-context] Re: Gray gradient with Metapost

2023-10-07 Thread Keith McKay
Hi Fabrice, You could define you own shades of gray (I believe there are at least 50) by adjusting the rgb values as I've shown below. definecolor [ name = "verylightgray", r = 0.995, g = 0.995, b = 0.995 ] ; definecolor [ name = "lightergray", r = 0.55, g = 0.55, b = 0.55 ] ; draw

[NTG-context] Re: Gray gradient with Metapost

2023-10-07 Thread Fabrice Couvreur
Hi, Sorry for the late response. Thanks for the help. So I read the documents and managed to get a gradient even if it's not exactly like the figure. Fabrice draw lmt_shade [ path = (z0--z4--z5--z1--cycle), direction = "left", alternative = "linear",