Number parameter in path STROKE width

If you're having trouble using Context Free or don't understand the language, ask for help here.

Moderators: MtnViewJohn, chris, mtnviewmark

Post Reply
User avatar
DeFleur
Posts: 41
Joined: Sat Feb 07, 2009 7:49 am
Location: Switzerland

Number parameter in path STROKE width

Post by DeFleur »

Want to inform that I tried the following which leads CF3 to exit
//code
startshape PATHover
path CIRC(number STrK) {
MOVETO(-10,0) ARCREL(20,0,10)
ARCREL(-20,0,10) STROKE(STrK) [ ]
}
shape PATHover {CIRC(1) [ ]}
//code
Is this part of the rules ?
kind regards from DeFleur

User avatar
MtnViewJohn
Site Admin
Posts: 882
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California
Contact:

Re: Number parameter in path STROKE width

Post by MtnViewJohn »

<Peewee Herman voice>
I meant to do that!
</Peewee Herman voice>

That's a bug. There is no workaround. But a new beta release is coming out soon.

User avatar
MtnViewJohn
Site Admin
Posts: 882
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California
Contact:

Re: Number parameter in path STROKE width

Post by MtnViewJohn »

And as an aside, this path will have artfacts unless you close the path:

Code: Select all

path CIRC(number STrK) {
  MOVETO(-10,0)
  ARCREL(20,0,10)
  ARCREL(-20,0,10)
  CLOSEPOLY()
  STROKE(STrK) [ ]
}

User avatar
DeFleur
Posts: 41
Joined: Sat Feb 07, 2009 7:49 am
Location: Switzerland

Re: Number parameter in path STROKE width

Post by DeFleur »

Got it ! and merci.
kind regards from DeFleur

Post Reply