Skip to content

Commit 2eb5326

Browse files
committed
fix typos and adjust copy on demo page
1 parent 2ac0d47 commit 2eb5326

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

demo/content.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ addCanvas(
101101
}
102102
}
103103

104-
return `Raster formats store pixel information and have a fixed resolution.`;
104+
return `Raster image formats store pixel information and have a fixed resolution.`;
105105
},
106106
// Smooth circle.
107107
(ctx, width, height) => {
@@ -123,8 +123,9 @@ addCanvas(
123123
},
124124
);
125125

126-
return `Vector formats use formulas to draw the image at any scale. they are ideal fo
127-
artwork with sharp lines that will be viewed at varying sizes.`;
126+
return `By contrast vector formats can scale infinitely because they are defined by
127+
formulas. They are ideal for artwork with sharp lines that will be viewed at varying
128+
sizes.`;
128129
},
129130
);
130131

@@ -156,9 +157,9 @@ addCanvas(2, (ctx, width, height, animate) => {
156157
drawOpen(ctx, start, end, true);
157158
});
158159

159-
return `Vector graphics are commonly defined using Bezier curves. The cubic bezier is made up of
160-
four coordinates: the start/end points and their corresponding "handles". These handles can
161-
be thought of as defining the direction and momentum of the line.`;
160+
return `Vector-based images are commonly defined using Bezier curves. The cubic bezier is made
161+
up of four coordinates: the start/end points and their corresponding "handles". These
162+
handles define the direction and "momentum" of the line.`;
162163
});
163164

164165
addCanvas(2, (ctx, width, height, animate) => {
@@ -205,10 +206,10 @@ addCanvas(2, (ctx, width, height, animate) => {
205206
drawOpen(ctx, start, end, false);
206207
});
207208

208-
return `The curve can be drawn geometrically by recursively splitting points by a percentage
209+
return `Curves can be drawn geometrically by recursively splitting points by a percentage
209210
until there is only one point remaining. Note there is no constant relationship between the
210-
percentage that "drew" the point and the arc lengths before/after it. Uniform motion must be
211-
approximated instead.`;
211+
percentage that "drew" the point and the arc lengths before/after it. Uniform motion along
212+
the curve can only be approximated.`;
212213
});
213214

214215
addTitle(4, "Making a blob");
@@ -280,7 +281,7 @@ addCanvas(
280281
drawClosed(ctx, shiftedShape, true);
281282
});
282283

283-
return `Each point is randomly moved towards or away from the center.`;
284+
return `Each point is randomly moved toward or away from the center.`;
284285
},
285286
);
286287

@@ -314,7 +315,7 @@ addCanvas(
314315

315316
drawClosed(ctx, polyBlob, false);
316317

317-
return `In this state, the points have handles with zero length and angle.`;
318+
return `In this state, the points have handles of length zero.`;
318319
},
319320
(ctx, width, height, animate) => {
320321
const period = Math.PI * 1000;
@@ -568,8 +569,7 @@ addCanvas(
568569
});
569570

570571
return `Points are added until they both have the same count. These new points should be as
571-
evenly distributed as possible. It is almost never possible to be able to remove points
572-
from a shape without changing it.`;
572+
evenly distributed as possible.`;
573573
},
574574
(ctx, width, height, animate) => {
575575
const period = Math.PI ** Math.E * 1000;

0 commit comments

Comments
 (0)