RxLongShadow2D
Support By [ Cloud Rx (https://rxapis.com) ].
- Testing is available until the end of the year.
- Create Long Shadow into 2d Canvas
- Create Canvas
- func CreateCanvas : (target, canvasCount, resize) return (Array) canvas
const target = document.getElementById('testDom');
const canvas = RxLongShadow2D.CreateCanvas(target, 2, true);
- constructor
const point3d = new RxDriveLongShadow2D.POINT3D(x, y, z);
- constructor
- new RxLongShadow2D.Quadrangle( parent, x, y, width, height, color )
- func draw : (ctx)
- func update : ()
- func GetVertexes : () return Array
const poly = new RxLongShadow2D.Quadrangle(undefined, x, y, size, size, color);
- constructor
- new RxLongShadow2D.Shadow()
- func draw : (ctx)
- func update : ()
- func SetLight : ({x, y})
- func SetColor : (String)
- func SetParentVertexes : (Array)
const shadow = new RxLongShadow2D.Shadow();