Skip to content

Documentation / @ripl/3d / createContext

Function: createContext()

createContext(target, options?): CanvasContext3D

Defined in: 3d/src/core/context.ts:611

Creates a Canvas 2D–backed 3D rendering context attached to the given DOM target.

Parameters

ParameterType
targetstring | HTMLElement
options?Context3DOptions

Returns

CanvasContext3D