Skip to content

Commit 3221263

Browse files
committed
add background to preview image
1 parent 75c96e4 commit 3221263

File tree

6 files changed

+3
-4
lines changed

6 files changed

+3
-4
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ const animation = blobs2Animate.canvasPath();
100100

101101
// Set up "requestAnimationFrame" rendering loop.
102102
const renderAnimation = () => {
103-
ctx.clearRect(0, 0, size, size);
103+
ctx.clearRect(0, 0, width, height);
104104
ctx.fill(animation.renderFrame());
105105
requestAnimationFrame(renderAnimation);
106106
};

assets/logo.png

-15.7 KB
Binary file not shown.

assets/preview.png

113 KB
Loading

index.animated.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<meta property="og:type" content="website" />
1010
<meta property="og:title" content="blobs" />
1111
<meta property="og:description" content="Random blob generation and animation" />
12-
<meta property="og:image" content="https://blobs.dev/assets/logo.png" />
12+
<meta property="og:image" content="https://blobs.dev/assets/preview.png" />
1313
</head>
1414
<body>
1515
<style>

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<meta property="og:type" content="website" />
1010
<meta property="og:title" content="blobs" />
1111
<meta property="og:description" content="Random blob generation and animation" />
12-
<meta property="og:image" content="https://blobs.dev/assets/logo.png" />
12+
<meta property="og:image" content="https://blobs.dev/assets/preview.png" />
1313
</head>
1414
<body>
1515
<style>

internal/animate/interpolate.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ const interpolateAngle = (percentage: number, a: number, b: number): number => {
2020
// Interpolates linearly between a and b. Can only interpolate between point lists that have the
2121
// same number of points. Easing effects can be applied to the percentage given to this function.
2222
// Percentages outside the 0-1 range are supported.
23-
// TODO handle length should continue animating?
2423
export const interpolateBetween = (percentage: number, a: Point[], b: Point[]): Point[] => {
2524
if (a.length !== b.length) throw new Error("must have equal number of points");
2625

0 commit comments

Comments
 (0)