update logo

improve font resolution logic
generate icons
improve timeline
This commit is contained in:
2023-05-28 22:57:13 +02:00
parent 1baa3ae736
commit 28613c9214
38 changed files with 204 additions and 221 deletions

View File

@@ -1,7 +1,11 @@
import { AnimatedEntity } from "primitives/AnimatedEntities";
import { Color } from "primitives/Paint";
import { Timeline } from "primitives/Timeline";
import { staticAnimatedNumber, staticAnimatedVec2 } from "primitives/Values";
import {
staticAnimatedNumber,
staticAnimatedVec2,
staticAnimatedVec3,
} from "primitives/Values";
import { z } from "zod";
import { v4 as uuid } from "uuid";
@@ -138,7 +142,7 @@ function buildText(
type: "Fill",
color,
},
fontName: "Arial",
font_name: "Arial",
size,
align: "Center",
},
@@ -203,7 +207,7 @@ function buildStaggeredText(
stagger: 0.05,
letter: {
paint: {
fontName: "Arial",
font_name: "Arial",
style: {
type: "Fill",
color,
@@ -213,7 +217,7 @@ function buildStaggeredText(
},
transform: {
translate: staticAnimatedVec2(0, 0),
rotate: staticAnimatedVec2(0, 0),
rotate: staticAnimatedVec3(0, 0, 45),
skew: staticAnimatedVec2(0, 0),
scale: {
keyframes: [
@@ -227,7 +231,7 @@ function buildStaggeredText(
mass: 1,
damping: 15,
},
value: 0.0,
value: 5.0,
offset: 0.0,
},
{
@@ -246,11 +250,11 @@ function buildStaggeredText(
{
interpolation: {
type: "Spring",
stiffness: 200,
stiffness: 300,
mass: 1,
damping: 15,
},
value: 0.0,
value: -10.0,
offset: 0.0,
},
{