1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-22 16:23:12 +02:00
This commit is contained in:
Pomax
2020-08-04 15:15:16 -07:00
parent e683733a82
commit 1ac307dd1d
5 changed files with 15 additions and 15 deletions

View File

@@ -21,9 +21,9 @@ Given \left (
So let's look at that in action: the following graphic is interactive in that you can use your up and down arrow keys to increase or decrease the interpolation ratio, to see what happens. We start with three points, which gives us two lines. Linear interpolation over those lines gives us two points, between which we can again perform linear interpolation, yielding a single point. And that point —and all points we can form in this way for all ratios taken together— form our Bézier curve:
<graphics-element title="Linear Interpolation leading to Bézier curves" width="900" height="300" src="./chapters/whatis/interpolation.js">
<graphics-element title="Linear Interpolation leading to Bézier curves" width="825" height="275" src="./chapters/whatis/interpolation.js">
<fallback-image>
<img src="./chapters/whatis/interpolation.png" width="900" height="300">
<img src="./chapters/whatis/interpolation.png" width="825" height="275">
{{ disableMessage }}
</fallback-image>
</graphics-element>

View File

@@ -1,6 +1,6 @@
setup() {
this.step = 25;
this.curve = Bezier.create(this, 70,250, 20,110, 250,60);
this.curve = Bezier.defaultQuadratic(this);
setMovable(this.curve.points);
}

View File

@@ -340,15 +340,15 @@
</p>
<graphics-element
title="Linear Interpolation leading to Bézier curves"
width="900"
height="300"
width="825"
height="275"
src="./chapters/whatis/interpolation.js"
>
<fallback-image>
<img
src="./chapters/whatis/interpolation.png"
width="900"
height="300"
width="825"
height="275"
/>
<span>Scripts are disabled. Showing fallback image.</span>
</fallback-image>

View File

@@ -254,15 +254,15 @@
</p>
<graphics-element
title="Linear Interpolation leading to Bézier curves"
width="900"
height="300"
width="825"
height="275"
src="./chapters/whatis/interpolation.js"
>
<fallback-image>
<img
src="./chapters/whatis/interpolation.png"
width="900"
height="300"
width="825"
height="275"
/>
<span>JSがなくて、画像を表示しています。</span>
</fallback-image>

View File

@@ -240,15 +240,15 @@
</p>
<graphics-element
title="Linear Interpolation leading to Bézier curves"
width="900"
height="300"
width="825"
height="275"
src="./chapters/whatis/interpolation.js"
>
<fallback-image>
<img
src="./chapters/whatis/interpolation.png"
width="900"
height="300"
width="825"
height="275"
/>
<span>脚本已禁用,并显示后备图像。</span>
</fallback-image>