* Clipping: a new clipping implementation that fixes all the bugs.
* The canvas: access all of your drawing through the canvas; the canvas is now a variable in your NodeBox script, that you can use to list all objects on it, or even save or clear it. Here's an example:
for i inrange(100):
rect(random(WIDTH), random(HEIGHT), 20, 20)
canvas.save("manyrects.png")
canvas.clear()
The "save" command saves the canvas as it is at that point (again, "save" supports pdf, png, tiff, jpeg or gif -- we use this method ourselves internally). The clear command clears out the entire canvas, and you'll end up with an empty canvas.
* Keyword arguments for setting color and fonts. These leave the state intact, so you can quickly throw an in-between object that has a different fill or stroke than what you're working with.
NodeBox 1.9.1
Posted by Frederik on Oct 02, 2007Hi folks!
We're very proud to release NodeBox 1.9.1 today. Amongst the new features are:
* Keyword arguments for setting color and fonts. These leave the state intact, so you can quickly
throw an in-between object that has a different fill or stroke than what you're working with.
* Change graphic objects ("grobs") attributes later on:
* Colors now output correct RGB values. If you'd rather have CMYK, use the outputmode command at the top of your script:
Additional changes are available in the Changes.txt that comes with NodeBox.