sparkar-wow-lib

1.0.1 • Public • Published

Spark AR - WoW lib

Description

Adds the WoW factor to any Spark AR SceneObject.

Usage

const WOWLib = require('sparkar-wow-lib');

...

const Scene = require('Scene');
const FaceTracking = require('FaceTracking');

...

const hatObject = Scene.root.find('hat');
const mouth = FaceTracking.face(0).mouth;

// Needs to be configured using mouth from FaceTracking
WOWLib.configure(mouth);

// WOWLib.addWowFactor(sceneObject, minScale, maxScale)
// sceneObject : any object from the Scene
// minScale: minimum scale the object should have when scaling down
// maxScale: maximum scale the object should have when scaling up

WOWLib.addWowFactor(hatObject,0.05,0.1);

Demo

Spark AR WOW Lib

/sparkar-wow-lib/

    Package Sidebar

    Install

    npm i sparkar-wow-lib

    Weekly Downloads

    1

    Version

    1.0.1

    License

    MIT

    Unpacked Size

    1.91 kB

    Total Files

    3

    Last publish

    Collaborators

    • ahmed-shehata