As I only use one transparency method anyway I could also fix this by passing a
numeric instead of a pair and use the standard withtransparency (I don’t like
overriding a standard MetaFun method, one never knows what might break in
future updates).
vardef Foo( expr w, h, fillColor,
On 4/9/2020 4:58 PM, Gerben Wierda wrote:
\starttext
\startMPpage[instance=doublefun]
vardef Foo( expr w, h, fillColor, fillTransparency) =
show "FOO:", w, h, fillColor, fillTransparency;
save pic; picture pic;
save circ; path circ;
circ := (fullcircle xyscaled (h,h));
pic :=
I have refactored my code to use withtransparency and separate parameters for
colors, sizes, transparency, etc. But I’m running into a problem. The
fillTransparency parameter is a pair primary (as can be seen from the show
command)
Here is a pretty minimum example (in reality there are