Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit d2c9807

Browse files
committed
replace text for handle length
1 parent 0f7f917 commit d2c9807

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

‎demo/content.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ addCanvas(
370370
length handles, but the angle can still be calculated.`;
371371
},
372372
(ctx, width, height, animate) => {
373-
const period = Math.PI * 1000;
373+
const period = Math.PI * 1500;
374374
const options: BlobOptions = {
375375
extraPoints: 2,
376376
randomness: 6,
@@ -409,9 +409,11 @@ addCanvas(
409409
drawClosed(ctx, animatedBlob, true);
410410
});
411411

412-
return `The blob is smoothed by making handles parallel to the line between the points
413-
immediately before and after. The length of the handles is a function of the distance to
414-
the nearest neighbor.`;
412+
return `The blob is then made smooth by extending the handles. The exact
413+
amount that the handle length becomes depends on the distance
414+
between the given point and it's next neighbor. This value is
415+
multiplied by a ratio that would roughly make a circle if the points
416+
had not been randomly moved.`;
415417
},
416418
);
417419

‎demo/internal/debug.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// If debug is initially set to false it will not be toggleable.
2-
let debug = false && location.hostname === "localhost";
2+
let debug = true && location.hostname === "localhost";
33
export const isDebug = () => debug;
44

55
const debugListeners: ((debug: boolean) => void)[] = [];

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /