Filler

Filler

new Filler(x, y, w, h)

Source:

Create an instance of Filler

Example
// creates a filler
const { Filler } = require('lucid-dream');
const filler = new Filler(20, 100, 10, 50);
Parameters:
Name Type Description
x Number

The x position of the filler.

y Number

The y position of the filler.

w Number

The width of the filler.

h Number

The height of the filler.

Methods

toDict() → {Object}

Source:

Encode a filler into a dictionary

Example
// returns encoded filler dictionary
const { Filler } = require('lucid-dream');
const filler = new Filler(20, 100, 10, 50);
filler.toDict();
Returns:

An object containing the encoded filler dicitonary

Type
Object