initial commit

This commit is contained in:
Elizabeth Hunt 2024-02-01 11:00:17 -07:00
commit d7495c101d
Signed by: simponic
GPG Key ID: 52B3774857EB24B1
11 changed files with 2870 additions and 0 deletions

15
.gitignore vendored Normal file
View File

@ -0,0 +1,15 @@
# Generated files
node_modules
output
dist
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

1284
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

21
package.json Normal file
View File

@ -0,0 +1,21 @@
{
"name": "compilinglambda",
"private": true,
"version": "0.0.0",
"scripts": {
"start": "vite",
"serve": "vite",
"build": "tsc && vite build"
},
"dependencies": {
"@motion-canvas/core": "^3.13.0",
"@motion-canvas/2d": "^3.13.0",
"@motion-canvas/ffmpeg": "^1.1.0"
},
"devDependencies": {
"@motion-canvas/ui": "^3.13.0",
"@motion-canvas/vite-plugin": "^3.13.0",
"typescript": "^5.2.2",
"vite": "^4.0.0"
}
}

1
src/motion-canvas.d.ts vendored Normal file
View File

@ -0,0 +1 @@
/// <reference types="@motion-canvas/core/project" />

1483
src/palette.ts Normal file

File diff suppressed because it is too large Load Diff

32
src/project.meta Normal file
View File

@ -0,0 +1,32 @@
{
"version": 0,
"shared": {
"background": null,
"range": [
0,
null
],
"size": {
"x": 1920,
"y": 1080
},
"audioOffset": 0
},
"preview": {
"fps": 30,
"resolutionScale": 1
},
"rendering": {
"fps": 60,
"resolutionScale": 1,
"colorSpace": "srgb",
"exporter": {
"name": "@motion-canvas/core/image-sequence",
"options": {
"fileType": "image/png",
"quality": 100,
"groupByScene": false
}
}
}
}

7
src/project.ts Normal file
View File

@ -0,0 +1,7 @@
import {makeProject} from '@motion-canvas/core';
import example from './scenes/example?scene';
export default makeProject({
scenes: [example],
});

5
src/scenes/example.meta Normal file
View File

@ -0,0 +1,5 @@
{
"version": 0,
"timeEvents": [],
"seed": 3229939754
}

8
src/scenes/example.tsx Normal file
View File

@ -0,0 +1,8 @@
import { makeScene2D } from "@motion-canvas/2d";
import { waitFor } from "@motion-canvas/core";
export default makeScene2D(function* (view) {
// Create your animations here
yield* waitFor(5);
});

4
tsconfig.json Normal file
View File

@ -0,0 +1,4 @@
{
"extends": "@motion-canvas/2d/tsconfig.project.json",
"include": ["src"]
}

10
vite.config.ts Normal file
View File

@ -0,0 +1,10 @@
import {defineConfig} from 'vite';
import motionCanvas from '@motion-canvas/vite-plugin';
import ffmpeg from '@motion-canvas/ffmpeg';
export default defineConfig({
plugins: [
motionCanvas(),
ffmpeg(),
],
});