new Parallax(dataopt)
- Source:
Creates an instance of Parallax
Example
// creates a parallax
const { Parallax } = require('lucid-dream');
const parallax = new Parallax();
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
data |
Object |
<optional> |
{}
|
An object containing the attributes to define the parallax. |
Methods
toDict() → {Object}
- Source:
Encode a parallax into a dictionary
Example
// returns encoded parallax dictionary
const { Parallax } = require('lucid-dream');
const parallax = new Parallax();
parallax.toDict();
Returns:
An object containing the encoded parallax dicitonary
- Type
- Object