View difference between Paste ID: TdjzLSUc and H4DGTKA9
SHOW: | | - or go back to the newest paste.
1-
    def build(px, py, structure):
1+
    def build(px, py, structure, default_color):
2
3
        pz = int(hmap.get(px,py)*63)
4
5
        for xyz, color in structure.iteritems():
6
            x, y, z = xyz
7
            x, y, z = x + px, y + py, z + pz
8-
            vxl.set_point(x, y, z, (255,0,216))
8+
            vxl.set_point(x, y, z, color or default_color) #if color is none, use default_color