1
0
mirror of https://github.com/Pomax/BezierInfo-2.git synced 2025-01-16 13:09:27 +01:00
This commit is contained in:
Pomax 2023-07-24 09:12:54 -07:00
parent 1febbb439b
commit 217dc9eeeb
11 changed files with 2209 additions and 2209 deletions

898
docs/index.html generated

File diff suppressed because it is too large Load Diff

898
docs/ko-KR/index.html generated

File diff suppressed because it is too large Load Diff

View File

@ -176,15 +176,15 @@
</ul>
<blockquote>
<!--
__ n=3 n-k k
B(t) = \ P \binomnk(1-t) t
cubic ‾‾ k=0
B(t) = \ P \binomnk(1-t) t
cubic ‾‾ k=0
k
3 2 2 3
= P (1-t) + 3 P (1-t) t + 3P (1-t)t + P t
= P (1-t) + 3 P (1-t) t + 3P (1-t)t + P t
0 1 2 3
-->
<img class="LaTeX SVG" src="./images/news/2020-09-18.html/15225da473048d8c7b5b473b89de0b66.svg" width="401px" height="97px" loading="lazy" />
@ -271,7 +271,7 @@ draw() {
<a href="https://github.com/Pomax/BezierInfo-2/issues">you know where to go</a>.
</p>
<p>See you in the next post!</p>
<p><a href="https://twitter.com/TheRealPomax">Pomax</a></p>
<p><a href="https://mastodon.social/@TheRealPomaxTheRealPomax">Pomax</a></p>
</main>
<hr />

View File

@ -65,4 +65,4 @@ Enjoy [The new Primer on Bézier Curves](https://pomax.github.io/bezierinfo), an
See you in the next post!
— [Pomax](https://twitter.com/TheRealPomax)
— [Pomax](https://mastodon.social/@TheRealPomax)

View File

@ -133,7 +133,7 @@
the point is the circle's center, and where the projection distance actually needs to match the circle radius, so:
<a href="https://pomax.github.io/bezierinfo/#circleintersection">let's see how to do that</a>!
</p>
<p><a href="https://twitter.com/TheRealPomax">Pomax</a></p>
<p><a href="https://mastodon.social/@TheRealPomax">Pomax</a></p>
</main>
<hr />

View File

@ -5,4 +5,4 @@ While the primer covered line/line, line/curve, and curve/curve intersections, t
It is, in fact, rather similar to [projecting a point onto a bezier curve](https://pomax.github.io/bezierinfo/#projections) where the point is the circle's center, and where the projection distance actually needs to match the circle radius, so: [let's see how to do that](https://pomax.github.io/bezierinfo/#circleintersection)!
— [Pomax](https://twitter.com/TheRealPomax)
— [Pomax](https://mastodon.social/@TheRealPomax)

View File

@ -17,10 +17,10 @@
<title>Curve-circle intersections</title>
<link>https://pomax.github.io/bezierinfo/news/2020-11-22.html</link>
<description>
&lt;p&gt;While the primer covered line/line, line/curve, and curve/curve intersections, there was one other obvious intersection conspicuously missing: circle/curve intersections. You&#39;d think those were just an extension on the maths used for the other three, but unfortunately, this is not the case. Rather than using calculus, the only real way to determine where a polynomial curve intersects it is to sample the curve at a resolution high enough to find you intervals on the curve where there likely is an intersection, then refining that interval until you find actual intersections.&lt;/p&gt;
&lt;p&gt;It is, in fact, rather similar to &lt;a href=&quot;https://pomax.github.io/bezierinfo/#projections&quot;&gt;projecting a point onto a bezier curve&lt;/a&gt; where the point is the circle&#39;s center, and where the projection distance actually needs to match the circle radius, so: &lt;a href=&quot;https://pomax.github.io/bezierinfo/#circleintersection&quot;&gt;let&#39;s see how to do that&lt;/a&gt;!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/TheRealPomax&quot;&gt;Pomax&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://mastodon.social/@TheRealPomax&quot;&gt;Pomax&lt;/a&gt;&lt;/p&gt;
</description>
<pubDate>Sun Nov 22 2020 00:00:00 +00:00</pubDate>
@ -29,7 +29,7 @@
<title>Rewriting the tech stack</title>
<link>https://pomax.github.io/bezierinfo/news/2020-09-18.html</link>
<description>
&lt;p&gt;Once upon a time, I needed to draw some Bezier curves because I was trying to create a Japanese kanji composition system that turned strokes into outlines, and that required knowing how to offset Bezier curves and... at the time (2011, time flies) there was no good single source of information for Bezier curves on the web. So I made one. Sure it started small, but it turns out that if you just keep adding bits to something, several years later you have quite the monster, and a single HTML file becomes intractible.&lt;/p&gt;
&lt;p&gt;So, in 2016, when &lt;a href=&quot;https://reactjs.org/&quot;&gt;React.js&lt;/a&gt; exploded onto the scene, I rewrote the primer as a React app, and it became a lot easier to maintain. Like, &lt;em&gt;a lot&lt;/em&gt; a lot. However, there was a downside: no JS meant no content. Sure, server-side rendering sort of existed, but not really, and because the Primer is hosted through github, there was no &quot;server&quot; to run. Plus, trying to rehydrate an app the size of the Primer from a giant HTML file had truly &lt;em&gt;dire&lt;/em&gt; performance.&lt;/p&gt;
&lt;p&gt;So I left it a regular React app, and every time I thought &quot;wouldn&#39;t it be nice if it was just... a web page again?&quot; the browser landscape just hadn&#39;t caught up. Finally, in 2020, things are different: with a global pandemic, and some vacation time, and something random causing me to look up the state of HTML custom elements, everything was pointing at it being time to finally, &lt;em&gt;finally&lt;/em&gt;, turn the Primer back into a normal web page.&lt;/p&gt;
@ -57,15 +57,15 @@
&lt;/ul&gt;
&lt;blockquote&gt;
&lt;!--
__ n=3 n-k k
B(t) = \ P \binomnk(1-t) t
cubic ‾‾ k=0
B(t) = \ P \binomnk(1-t) t
cubic ‾‾ k=0
k
3 2 2 3
= P (1-t) + 3 P (1-t) t + 3P (1-t)t + P t
= P (1-t) + 3 P (1-t) t + 3P (1-t)t + P t
0 1 2 3
--&gt;
&lt;img class=&quot;LaTeX SVG&quot; src=&quot;./images/news/2020-09-18.html/15225da473048d8c7b5b473b89de0b66.svg&quot; width=&quot;401px&quot; height=&quot;97px&quot; loading=&quot;lazy&quot;&gt;
@ -105,7 +105,7 @@ draw() {
&lt;tr&gt;&lt;td&gt;11&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;12&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td&gt;13&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;
&lt;ul&gt;
&lt;li&gt;Responsive CSS, so the content intelligently reflows where possible.&lt;/li&gt;
&lt;li&gt;A &quot;Live build&quot; setup for working on the content and code.&lt;/li&gt;
@ -115,7 +115,7 @@ draw() {
&lt;p&gt;It&#39;s going to take me a while to detail the entire tech stack, but ultimately what matters is that you get a Primer that is a normal &quot;vanilla&quot; HTML, CSS, and JS page again, that &quot;just works&quot; even with JS disabled.&lt;/p&gt;
&lt;p&gt;Enjoy &lt;a href=&quot;https://pomax.github.io/bezierinfo&quot;&gt;The new Primer on Bézier Curves&lt;/a&gt;, and if you find any problems, &lt;a href=&quot;https://github.com/Pomax/BezierInfo-2/issues&quot;&gt;you know where to go&lt;/a&gt;.&lt;/p&gt;
&lt;p&gt;See you in the next post!&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://twitter.com/TheRealPomax&quot;&gt;Pomax&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;https://mastodon.social/@TheRealPomax&quot;&gt;Pomax&lt;/a&gt;&lt;/p&gt;
</description>
<pubDate>Fri Sep 18 2020 00:00:00 +00:00</pubDate>

898
docs/ru-RU/index.html generated

File diff suppressed because it is too large Load Diff

898
docs/uk-UA/index.html generated

File diff suppressed because it is too large Load Diff

782
docs/zh-CN/index.html generated

File diff suppressed because it is too large Load Diff

View File

@ -55,7 +55,7 @@
{{ longDescription }}
{% include "./fragments/donations.html" %}
<p>
<a href="https://twitter.com/TheRealPomax">Pomax</a>
<a href="https://mastodon.social/@TheRealPomax">Pomax</a>
</p>
{% include "./fragments/noscript.html" %}
{% include "./fragments/toc.html" %}