What does path.inheritFromContext do ?
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
-
-
NodeBox team Normally, when you create a BezierPath using
beginpathanddrawpathit 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)