Skip to content

Function: markerPointSource() ​

ts
function markerPointSource(markers): PointSource2D;

Experimental

Adapt a MarkerSet as a 2D point source. It indexes the RTC positions exactly as drawn (so patch() streaming is covered) and follows setTransform live through the world scale/offset.

Parameters ​

ParameterType
markersMarkerPositionsLike

Returns ​

PointSource2D

Released under the MIT License.