1.0.0
The default filename when attempting to download.
Type: string
Constants purely to prevent magic numbers.
A tool to create super-cool vector interactivity.
(HTMLCanvasElement)
Canvas to draw to.
((SVGElement | string))
A string representation of an SVG file, or an
actual SVGElement.
Remove the viewBox attribute from the svg in order to prevent the visuals from being cut off.The viewBox basically acts like a big compound path.
((SVGElement | string))
A string representation of an SVG file, or an
actual SVGElement.
(SVGElement | string)
:
Create a gradient stroke.
(number)
The Y position of where the gradient should start.
(number)
The Y position of where the gradient should end.
(number
= 0
)
TODO:
(number
= 360
)
TODO:
{gradient: {stops: Array<string>}, origin: Array<any>, destination: Array<number>}
:
Veczor.createNeonColor(0, window.innerHeight);
Main update method. Hook this up to your own animation loop!
Center the main SVG element to the center of the view.
Common scenario
window.addEventListener('resize', MyVeczorInstance.center());
Gets whether the elements are following the position.
boolean
:
paper.Item
:
((SVGElement | string | paper.Item))
A string representation of an SVG file, or an
actual SVGElement.
Type: string