1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-31 12:01:54 +02:00

Automated build

This commit is contained in:
Bezierinfo CI
2021-08-30 14:52:07 +00:00
parent fdc8adfe50
commit 3df814672d
9 changed files with 41 additions and 41 deletions

18
docs/zh-CN/index.html generated
View File

@@ -41,7 +41,7 @@
<meta property="og:locale" content="zh-CN" />
<meta property="og:type" content="article" />
<meta property="og:published_time" content="2013-06-13T12:00:00+00:00" />
<meta property="og:updated_time" content="2021-08-26T16:34:14+00:00" />
<meta property="og:updated_time" content="2021-08-30T14:51:35+00:00" />
<meta property="og:author" content="Mike 'Pomax' Kamermans" />
<meta property="og:section" content="Bézier Curves" />
<meta property="og:tag" content="Bézier Curves" />
@@ -1617,14 +1617,14 @@ function RationalBezier(3,t,w[],r[]):
<td>1</td>
<td rowspan="8">
<textarea disabled rows="8" role="doc-example">
function drawCurve(points[], t):
function drawCurvePoint(points[], t):
if(points.length==1):
draw(points[0])
else:
newpoints=array(points.size-1)
for(i=0; i<newpoints.length; i++):
newpoints[i] = (1-t) * points[i] + t * points[i+1]
drawCurve(newpoints, t)</textarea
drawCurvePoint(newpoints, t)</textarea
>
</td>
</tr>
@@ -1658,7 +1658,7 @@ function drawCurve(points[], t):
<td>1</td>
<td rowspan="10">
<textarea disabled rows="10" role="doc-example">
function drawCurve(points[], t):
function drawCurvePoint(points[], t):
if(points.length==1):
draw(points[0])
else:
@@ -1667,7 +1667,7 @@ function drawCurve(points[], t):
x = (1-t) * points[i].x + t * points[i+1].x
y = (1-t) * points[i].y + t * points[i+1].y
newpoints[i] = new point(x,y)
drawCurve(newpoints, t)</textarea
drawCurvePoint(newpoints, t)</textarea
>
</td>
</tr>
@@ -1870,7 +1870,7 @@ function drawFlattenedCurve(curve, segmentCount):
<textarea disabled rows="16" role="doc-example">
left=[]
right=[]
function drawCurve(points[], t):
function drawCurvePoint(points[], t):
if(points.length==1):
left.add(points[0])
right.add(points[0])
@@ -1883,7 +1883,7 @@ function drawCurve(points[], t):
if(i==newpoints.length-1):
right.add(points[i+1])
newpoints[i] = (1-t) * points[i] + t * points[i+1]
drawCurve(newpoints, t)</textarea
drawCurvePoint(newpoints, t)</textarea
>
</td>
</tr>
@@ -6405,7 +6405,7 @@ lli = function(line1, line2):
us:
</p>
<graphics-element
title="Fitting a quadratic Bézier curve"
title="Fitting a cubic Bézier curve"
width="275"
height="275"
src="./chapters/pointcurves/cubic.js"
@@ -6415,7 +6415,7 @@ lli = function(line1, line2):
<fallback-image>
<span class="view-source">Scripts are disabled. Showing fallback image.</span>
<img width="275px" height="275px" src="./images/chapters/pointcurves/eab6ea46fa93030e03ec0ef7deb571dc.png" loading="lazy" />
<label>Fitting a quadratic Bézier curve</label>
<label>Fitting a cubic Bézier curve</label>
</fallback-image></graphics-element
>
<p>That looks perfectly serviceable!</p>