Class: Base

Base

new Base(opt_options=)

Creates a new Base.
Parameters:
Name Type Argument Default Description
opt_options= Object <optional>
A map of initial properties.
opt_options.width boolean <optional>
10 Width.
opt_options.height boolean <optional>
10 Height.
opt_options.color boolean <optional>
0 Color.
opt_options.perlin boolean <optional>
true Set to true to move the base via perlin noise.
opt_options.perlinSpeed number <optional>
0.0001 Perlin speed.
opt_options.perlinTime number <optional>
100 Initial perlin time.
opt_options.initialLocation Object <optional>
null Initial base location.
opt_options.amplitude Object <optional>
null Limit of the base location.
opt_options.opacity number <optional>
0 Opacity.
Source:

Methods

configure(world)

Configures an instance.
Parameters:
Name Type Description
world Object A world.
Source: