1. NodeBox 1
    1. Homepage
    2. NodeBox 3Node-based app for generative design and data visualization
    3. NodeBox OpenGLHardware-accelerated cross-platform graphics library
    4. NodeBox 1Generate 2D visuals using Python code (Mac OS X only)
  2. Gallery
  3. Documentation
  4. Forum
  5. Blog

Boolean a line

Posted by Onato on Nov 14, 2009

I am just trying Nodebox for the first time after years of processing.

I would like to add a bunch of lines together to get the outline around them. For example I would line to draw the outline around a cross by with two calls to line() instead of 12.

It seems I can only boolean closed paths. At present is seems my only option would be to create a linePath() function that takes stroke and cap type into account to create a closed path using beginPath()...endPath().

Am I correct here or is there an easier solution?


 
Posted by anonymous on Nov 14, 2009

Found what I was after here...
http://nodebox.net/code/index.php/shared_2009-10-09-13-33-21

With this I can create a path by drawing a line and defining the stroke width and cap style.