1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-08-22 16:23:12 +02:00

Automated build

This commit is contained in:
Bezierinfo CI
2021-08-26 16:34:52 +00:00
parent c84136e445
commit 316d82b107
9 changed files with 29 additions and 23 deletions

19
docs/index.html generated
View File

@@ -38,7 +38,7 @@
<meta property="og:locale" content="en-GB" />
<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-25T14:37:34+00:00" />
<meta property="og:updated_time" content="2021-08-26T16:34:14+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" />
@@ -1688,21 +1688,24 @@ function RationalBezier(3,t,w[],r[]):
</graphics-element>
<div class="howtocode">
<h3>How to implement de Casteljau's algorithm</h3>
<p>Let's just use the algorithm we just specified, and implement that:</p>
<p>
Let's just use the algorithm we just specified, and implement that as a function that can take a list of curve-defining points, and a
<code>t</code> value, and draws the associated point on the curve for that <code>t</code> value:
</p>
<table class="code">
<tr>
<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>
@@ -1730,8 +1733,8 @@ function drawCurve(points[], t):
</table>
<p>
And done, that's the algorithm implemented. Except usually you don't get the luxury of overloading the "+" operator, so let's also give
the code for when you need to work with <code>x</code> and <code>y</code> values:
And done, that's the algorithm implemented. Although: usually you don't get the luxury of overloading the "+" operator, so let's also
give the code for when you need to work with <code>x</code> and <code>y</code> values separately:
</p>
<table class="code">
@@ -1739,7 +1742,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:
@@ -1748,7 +1751,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>

2
docs/ja-JP/index.html generated
View File

@@ -41,7 +41,7 @@
<meta property="og:locale" content="ja-JP" />
<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-25T14:37:34+00:00" />
<meta property="og:updated_time" content="2021-08-26T16:34:14+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" />

View File

@@ -34,7 +34,7 @@
<meta property="og:locale" content="en-GB" />
<meta property="og:type" content="article" />
<meta property="og:published_time" content="Fri Sep 18 2020 00:00:00 +00:00" />
<meta property="og:updated_time" content="Wed Aug 25 2021 14:37:34 +00:00" />
<meta property="og:updated_time" content="Thu Aug 26 2021 16:34:14 +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" />

View File

@@ -34,7 +34,7 @@
<meta property="og:locale" content="en-GB" />
<meta property="og:type" content="article" />
<meta property="og:published_time" content="Sun Nov 22 2020 00:00:00 +00:00" />
<meta property="og:updated_time" content="Wed Aug 25 2021 14:37:34 +00:00" />
<meta property="og:updated_time" content="Thu Aug 26 2021 16:34:14 +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" />

2
docs/news/index.html generated
View File

@@ -33,7 +33,7 @@
<meta property="og:description" content="" />
<meta property="og:locale" content="en-GB" />
<meta property="og:type" content="article" />
<meta property="og:published_time" content="Wed Aug 25 2021 14:37:34 GMT+0000 (Coordinated Universal Time)" />
<meta property="og:published_time" content="Thu Aug 26 2021 16:34:14 GMT+0000 (Coordinated Universal Time)" />
<meta property="og:updated_time" content="" />
<meta property="og:author" content="Mike 'Pomax' Kamermans" />
<meta property="og:section" content="Bézier Curves" />

View File

@@ -6,7 +6,7 @@
<atom:link href="https://pomax.github.io/bezierinfo" rel="self"></atom:link>
<description>News updates for the <a href="https://pomax.github.io/bezierinfo">primer on Bézier Curves</a> by Pomax</description>
<language>en-GB</language>
<lastBuildDate>Wed Aug 25 2021 14:37:34 +00:00</lastBuildDate>
<lastBuildDate>Thu Aug 26 2021 16:34:14 +00:00</lastBuildDate>
<image>
<url>https://pomax.github.io/bezierinfo/images/og-image.png</url>
<title>A Primer on Bézier Curves</title>

2
docs/ru-RU/index.html generated
View File

@@ -34,7 +34,7 @@
<meta property="og:locale" content="ru-RU" />
<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-25T14:37:34+00:00" />
<meta property="og:updated_time" content="2021-08-26T16:34:14+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" />

19
docs/uk-UA/index.html generated
View File

@@ -39,7 +39,7 @@
<meta property="og:locale" content="uk-UA" />
<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-25T14:37:34+00:00" />
<meta property="og:updated_time" content="2021-08-26T16:34:14+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" />
@@ -1751,21 +1751,24 @@ function RationalBezier(3,t,w[],r[]):
</graphics-element>
<div class="howtocode">
<h3>How to implement de Casteljau's algorithm</h3>
<p>Let's just use the algorithm we just specified, and implement that:</p>
<p>
Let's just use the algorithm we just specified, and implement that as a function that can take a list of curve-defining points, and a
<code>t</code> value, and draws the associated point on the curve for that <code>t</code> value:
</p>
<table class="code">
<tr>
<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>
@@ -1793,8 +1796,8 @@ function drawCurve(points[], t):
</table>
<p>
And done, that's the algorithm implemented. Except usually you don't get the luxury of overloading the "+" operator, so let's also give
the code for when you need to work with <code>x</code> and <code>y</code> values:
And done, that's the algorithm implemented. Although: usually you don't get the luxury of overloading the "+" operator, so let's also
give the code for when you need to work with <code>x</code> and <code>y</code> values separately:
</p>
<table class="code">
@@ -1802,7 +1805,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:
@@ -1811,7 +1814,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>

2
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-25T14:37:34+00:00" />
<meta property="og:updated_time" content="2021-08-26T16:34:14+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" />