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: chris, MtnViewMark, MtnViewJohn

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 » Wed Mar 07, 2012 9:41 am

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: 837
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California
Contact:

Re: Number parameter in path STROKE width

Post by MtnViewJohn » Wed Mar 07, 2012 1:58 pm

<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: 837
Joined: Fri May 06, 2005 2:26 pm
Location: Mountain View, California
Contact:

Re: Number parameter in path STROKE width

Post by MtnViewJohn » Wed Mar 07, 2012 10:08 pm

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 » Thu Mar 08, 2012 1:14 am

Got it ! and merci.
kind regards from DeFleur

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests