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.massArray <optional>
50 Mass. options.isStaticArray <optional>
true isStatic. options.widthArray <optional>
50 Width. options.heightArray <optional>
50 Height. options.opacityArray <optional>
0.75 Opacity. [options.colorArray = [255, 255, 255]] Color. options.borderWidthnumber <optional>
this.width / getRandomNumber(2, 8) Border width. options.borderStylestring <optional>
'double' Border style. [options.borderColorArray = [220, 220, 220]] Border color. options.borderRadiusnumber <optional>
100 Border radius. options.boxShadowSpreadnumber <optional>
this.width / getRandomNumber(2, 8) Box-shadow spread. [options.boxShadowColorArray = [200, 200, 200]] Box-shadow color. - Source: