Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-20 Thread Hans Hagen
On 2/20/2020 10:29 AM, Jan U. Hasecke wrote: Am 18.02.20 um 19:24 schrieb Jan U. Hasecke: Am 18.02.20 um 19:17 schrieb mf: Il 18/02/20 19:07, Jan U. Hasecke ha scritto: Am 18.02.20 um 14:53 schrieb Hans Hagen: \setupcolors[rgb=no] \startMPcode draw lmt_svg [ filename = "sample.svg" ]

Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-20 Thread Jan U. Hasecke
Am 18.02.20 um 19:24 schrieb Jan U. Hasecke: > Am 18.02.20 um 19:17 schrieb mf: >> Il 18/02/20 19:07, Jan U. Hasecke ha scritto: >>> Am 18.02.20 um 14:53 schrieb Hans Hagen: >>> \setupcolors[rgb=no] \startMPcode draw lmt_svg [ filename = "sample.svg" ] ; \stopMPcode >>> I

Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread Jan U. Hasecke
Am 18.02.20 um 19:17 schrieb mf: > Il 18/02/20 19:07, Jan U. Hasecke ha scritto: >> Am 18.02.20 um 14:53 schrieb Hans Hagen: >> >>> \setupcolors[rgb=no] >>> \startMPcode >>> draw lmt_svg [ filename = "sample.svg" ] ; >>> \stopMPcode >> I get this error. >> >> ! Not implemented: (unknown

Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread mf
Il 18/02/20 19:07, Jan U. Hasecke ha scritto: Am 18.02.20 um 14:53 schrieb Hans Hagen: \setupcolors[rgb=no] \startMPcode     draw lmt_svg [ filename = "sample.svg" ] ; \stopMPcode I get this error. ! Not implemented: (unknown numeric)=(string). ] <*> ... ; p := lmt_svg [ filename =

Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread Jan U. Hasecke
Am 18.02.20 um 14:53 schrieb Hans Hagen: > > \setupcolors[rgb=no] > \startMPcode >     draw lmt_svg [ filename = "sample.svg" ] ; > \stopMPcode I get this error. ! Not implemented: (unknown numeric)=(string). ] <*> ... ; p := lmt_svg [ filename = "sample.svg" ] juh

Re: [NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread Hans Hagen
On 2/18/2020 12:18 PM, mf wrote: Hello list, I tried this: \starttext \startMPcode picture p ; p := lmt_svg [ filename = "sample.svg" ] ; draw p ; color black_rgb ; black_rgb := ( 0, 0, 0 ) ; color red_rgb   ; red_rgb   := ( 1, 0, 0 ) ; remapcolor( black_rgb, red_rgb ) ; recolor p ; draw p

[NTG-context] metapost: remapping colors of an SVG picture

2020-02-18 Thread mf
Hello list, I tried this: \starttext \startMPcode picture p ; p := lmt_svg [ filename = "sample.svg" ] ; draw p ; color black_rgb ; black_rgb := ( 0, 0, 0 ) ; color red_rgb ; red_rgb := ( 1, 0, 0 ) ; remapcolor( black_rgb, red_rgb ) ; recolor p ; draw p shifted ( bbwidth(p) + 5mm, 0) ;