Mutliple flags for a path

Please check here FIRST if you are having difficulties with Context Free. This forum contains answers to the most common questions users have.

Moderators: MtnViewJohn, chris, mtnviewmark

Post Reply
ColorMeImpressed
Posts: 7
Joined: Tue May 05, 2009 5:07 pm

Mutliple flags for a path

Post by ColorMeImpressed »

How do I Stroke a path that has both the CF::RoundCap and CF::RoundJoin flags at the same time?

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

Re: Mutliple flags for a path

Post by MtnViewJohn »

You add them: CF::RoundCap + CF::RoundJoin

User avatar
pakin
Posts: 43
Joined: Sat Apr 21, 2007 8:59 pm
Location: United States
Contact:

Re: Mutliple flags for a path

Post by pakin »

MtnViewJohn wrote:
Tue Feb 05, 2013 2:04 pm
You add them: CF::RoundCap + CF::RoundJoin
That doesn't seem to work for ARCTO:

Code: Select all

ARCTO(328, 48, 56, 56, 0, CF::ArcCW + CF::ArcLarge)
produces

Code: Select all

error: Flag expressions must be constant
at least in cfdg 3.3(v33) on Linux.

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

Re: Mutliple flags for a path

Post by MtnViewJohn »

You're right. That's a bug. Looks like I have to put out a new release.

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

Re: Mutliple flags for a path

Post by MtnViewJohn »

I just pushed a commit to Github that fixes this issue. Cfdg v3.4(35).

User avatar
pakin
Posts: 43
Joined: Sat Apr 21, 2007 8:59 pm
Location: United States
Contact:

Re: Mutliple flags for a path

Post by pakin »

Cool, thanks!

Post Reply