@polygonjs/polygonjs
Version:
node-based WebGL 3D engine https://polygonjs.com
30 lines (29 loc) • 599 B
JavaScript
;
import { ChannelInterpolation } from "./KeyframeCommon";
const SAMPLE_DATA0 = {
keyframes: [
{
pos: 0,
value: 0,
in: { slope: 0, accel: 20 }
},
{
pos: 100,
value: 1,
in: { slope: 0, accel: 20 }
},
{
pos: 200,
value: 0,
in: { slope: 0, accel: 20 }
}
],
interpolation: ChannelInterpolation.CUBIC
};
const SAMPLE_DATA = [SAMPLE_DATA0];
export function sampleData0() {
return JSON.parse(JSON.stringify(SAMPLE_DATA0));
}
export function sampleData() {
return JSON.parse(JSON.stringify(SAMPLE_DATA));
}