The new NodeBox forum is live! Everything from support.nodebox.net moved here: sign in with the same email to pick up your old posts. Something not working? Write to forum-support@nodebox.net.

NodeBox 1ArchiveFrom the old forum

inheritFromContext

1 reply Last reply

  1. What does path.inheritFromContext do ?

    Copy link
  2. NodeBox team

    Normally, when you create a BezierPath using beginpath and drawpath it takes the curent fill and stroke settings from the drawing context. If you create a BezierPath by calling its constructor, it doesn't. If you dow want to use the currently set fill and stroke color, you can use inheritFromContext.

    All NodeBox drawing functions, including drawpath, use inheritFromContext internally. (For example rect)

    Copy link

Know something that helps?

Sign in with your email address to reply. No password needed.

Sign in to reply