Download : +

def pt():
# create a point
    from nodebox.graphics import Point
    p = Point(20, 20)
    return p

def pt2(a,b,c,d):
# 4 inputs -> we need 4 ports
    from nodebox.graphics import Point
    p = Point((a+c)*.5, (b+d)*.5)
    return p

def add(a, b):
    return a+b

def col():
# r = 255, g = 0, b = 0, a = 255
    c = '#ff0000ff'
    return c

def cols():
# We have to set the output range as 'list' in Nodebox
    c = ('#ff0000ff', '#ff0100ff', '#ff00ffff')
    return c

def string(s):
    s += "world"
    return s