VertexColors#

VertexColors#

Constructor#

VertexColors(colors, n_colors[, alpha, ...])

info dict +------------+-----------------------------------------------------------+----------------------------------------------------------------------------------+ | dict key | value type | value description | +============+===========================================================+==================================================================================+ | key | int | slice | np.ndarray[int | bool] | tuple[slice, ...] | key at which colors were indexed/sliced | +------------+-----------------------------------------------------------+----------------------------------------------------------------------------------+ | value | np.ndarray | new color values for points that were changed, shape is [n_points_changed, RGBA] | +------------+-----------------------------------------------------------+----------------------------------------------------------------------------------+ | user_value | str | np.ndarray | tuple[float] | list[float] | list[str] | user input value that was parsed into the RGBA array | +------------+-----------------------------------------------------------+----------------------------------------------------------------------------------+

Properties#

VertexColors.buffer

managed buffer

VertexColors.shared

Number of graphics that share this buffer

VertexColors.value

numpy array object representing the data managed by this buffer

Methods#

VertexColors.add_event_handler(handler)

Add an event handler.

VertexColors.block_events(val)

Block all events from this feature

VertexColors.clear_event_handlers()

Clear all event handlers

VertexColors.remove_event_handler(handler)

Remove a registered event handler.

VertexColors.set_value(graphic, value)

Sets values on entire array