- generate(settings) ⇒
String
entry method
- generateBatch(settings, n) ⇒
Array.<String>
entry method
Kind: global class
Properties
Name | Type | Description |
---|---|---|
width | number |
width of the generated SVG image |
height | number |
height of the generated SVG image |
points | number |
amount of points on the x axis |
lines | number |
amount of lines that should be generated |
colors | Array.<GradientStop> |
SVG gradient over the x axis |
settings.random : ParkMiller
Kind: instance property of Settings
settings.colors : Array.<GradientStop>
Kind: instance property of Settings
Param | Type | Description |
---|---|---|
offset | number |
gradient offset |
color | string |
gradient color. |
Kind: global class
simple Random generator code is based on this gist https://gist.github.com/blixt/f17b47c62508be59987b
Param | Type | Description |
---|---|---|
seed | number |
generators seed |
returns next random int number
Kind: instance method of ParkMiller
returns next random float number
Kind: instance method of ParkMiller
returns next random int between min and max
Kind: instance method of ParkMiller
Param | Type |
---|---|
min | number |
max | number |
returns next random float between min and max
Kind: instance method of ParkMiller
Param | Type |
---|---|
min | number |
max | number |
entry method
Kind: global function
Returns: String
- Generated SVG image as string
Param | Type |
---|---|
settings | Settings |
entry method
Kind: global function
Returns: Array.<String>
- An array of generated SVG images as strings
Param | Type |
---|---|
settings | Settings |
n | number |