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

stroke()'s opacity param

Posted by Tom on Mar 29, 2007

Hi,

I'm new to NodeBox, thoroughy enjoying it so far.
I've been messing with the "Balls" example and tried to extend it a tiny bit to get a feel for the language and possibilities.

I tried giving the balls on the front grid an interesting "stroke".
I've run in to a small problem with

stroke
's alpha/opacity parameter... when I enter a value for
a
, for example:
stroke
(0.15,0.1,0.3, a=0.3) I get an error message:
TypeError: stroke() got an unexpected keyword argument 'a'



From looking at the reference page [http://nodebox.net/code/index.php/Reference_|_stroke()] I think my syntax is correct, but I'm not getting the expected results... What am I doing wrong here?

Thanks!

 


Posted by Tom De Smedt on Mar 29, 2007

Hi Tom,

Just leave out the "a=".
The documentation was kinda fuzzy here.



Posted by Tom on Mar 30, 2007

Ah, I see! Thanks for your help.