Re: [NTG-context] How to define an array of pens

2020-06-22 Thread Alan Braslau
On 22/06/20 01:17, Otared Kavian wrote: for j = -1 step 1 until 1 : MyPens[j] := pencircle scaled 2pt ; % I would like to say here (2+j) pt endfor MyPens[j] := pencircle scaled (2+j)*pt ; pt is just a variable, and one can write 2pt implicitly implying the mul

Re: [NTG-context] How to define an array of pens

2020-06-22 Thread Otared Kavian
Thanks Taco! I added this and Hans' explanations to the wiki: https://wiki.contextgarden.net/variable_color but could not set a better title for that page such as « Variable arrays of colors, pens, paths ». Best regards: Otared > On 22 Jun 2020, at 09:28, Taco Hoekwater wrote: > >

Re: [NTG-context] How to define an array of pens

2020-06-22 Thread Taco Hoekwater
> On 22 Jun 2020, at 09:17, Otared Kavian wrote: > > Hi Hans, > > After learning from you how to define an array of colors and paths, I would > like to know how is it possible to define a variable pen size. > In the following working example below, I would like to replace > > MyPens[j

[NTG-context] How to define an array of pens

2020-06-22 Thread Otared Kavian
Hi Hans, After learning from you how to define an array of colors and paths, I would like to know how is it possible to define a variable pen size. In the following working example below, I would like to replace MyPens[j] := pencircle scaled 2pt ; by something like MyPens[j] :