nativescript-three
Installation
npm i three nativescript-three
Usage
;
Creating a Renderer
TNSTHREE.Renderer({ gl: WebGLRenderingContext, width: number, height: number, pixelRatio: number, ...extras })
Given a gl (context)
from an
TNSCanvas
, return a
THREE.WebGLRenderer
that draws into it.
; ;; canvas; // TNSCanvas instanceinit;animate;
E.G Output
E.G Output
License
Apache License Version 2.0, January 2004