oursin.lines

Functions

create

Creates lines

delete

Deletes lines

set_color

Set the color of line renderer

set_position

Set the position of line renderer

create(line_names)[source]

Creates lines

Parameters

line_nameslist of strings

IDs of lines being created

>>> urn.create(['l1', 'l2','l3'])
delete(line_names)[source]

Deletes lines

Parameters

line_nameslist of strings

IDs of lines being deleted

>>> urn.delete(['l1', 'l2'])
set_position(line_pos)[source]

Set the position of line renderer

Parameters

line_posdict {stringlist of three floats}

dictionary of IDs and vertex positions of the line

>>> urn.set_position({'l1': [[0, 0, 0], [1, 1, 1]]})
set_color(line_color)[source]

Set the color of line renderer

Parameters

line_colordict {stringstring hex color}

dictionary of IDs and new color of the line

>>> urn.set_color({'l1': '#FFFFFF'})