new Stimulus()
Creates a new Stimulus.
- Source:
Extends
Members
-
<static> borderStyles :Array
-
By default, Stimulus items get a border style randomly selected from a predetermined list.
Type:
- Array
- Source:
Methods
-
init(options=)
-
Initializes an instance.
Parameters:
Name Type Argument Default Description options=
Object <optional>
A map of initial properties. options.mass
Array <optional>
50 Mass. options.isStatic
Array <optional>
true isStatic. options.width
Array <optional>
50 Width. options.height
Array <optional>
50 Height. options.opacity
Array <optional>
0.75 Opacity. [options.color
Array = [255, 255, 255]] Color. options.borderWidth
number <optional>
this.width / getRandomNumber(2, 8) Border width. options.borderStyle
string <optional>
'double' Border style. [options.borderColor
Array = [220, 220, 220]] Border color. options.borderRadius
number <optional>
100 Border radius. options.boxShadowSpread
number <optional>
this.width / getRandomNumber(2, 8) Box-shadow spread. [options.boxShadowColor
Array = [200, 200, 200]] Box-shadow color. - Source: