# new ClassicStroke(bottom, top, speed, shape)
Create a new ClassicStroke.
Parameters:
Name | Type | Description |
---|---|---|
bottom |
Number | Array | function | bottom of the stroke, array of bottoms, or a function that computes the bottom for each down stroke |
top |
Number | Array | function | top of the stroke, array of tops, or a function that computes the top for each up stroke |
speed |
Number | Array | function | speed of the stroke, array of speeds, or a function that computes the speed for each stroke |
shape |
function | Array | a value provider for the shape or an even-lengthed array of value providers |
Example
// Bounce stroke.
ayva.do(new ClassicStroke(0, 1, 1, [ Ayva.RAMP_NEGATIVE_PARABOLIC, Ayva.RAMP_PARABOLIC ]));