~eliasnaur/gio

draw: Fix spelling of Bezier v1 APPLIED

Heh. Thanks!

To git.sr.ht:~eliasnaur/gio
   276cb10..a14e818  master -> master
Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.sr.ht/~eliasnaur/gio/%3C20190805152210.17668-1-larry%40theclapp.org%3E/mbox | git am -3
Learn more about email & git

[PATCH] draw: Fix spelling of Bezier Export this patch

Sometimes it was "bezier", sometimes "beziér".  Capitalize and put
accent on first e.  https://en.wikipedia.org/wiki/Bézier_curve

Signed-off-by: Larry Clapp <larry@theclapp.org>
---
 ui/app/internal/gpu/path.go |  2 +-
 ui/draw/path.go             | 10 +++++-----
 2 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/ui/app/internal/gpu/path.go b/ui/app/internal/gpu/path.go
index fb12198..caec7df 100644
--- a/ui/app/internal/gpu/path.go
+++ b/ui/app/internal/gpu/path.go
@@ -431,7 +431,7 @@ void main() {
 	vec2 extent = clamp(vec2(vFrom.x, vTo.x), -0.5, 0.5);
 	// Find the t where the curve crosses the middle of the
 	// extent, x₀.
-	// Given the bezier curve with x coordinates P₀, P₁, P₂
+	// Given the Bézier curve with x coordinates P₀, P₁, P₂
 	// where P₀ is at the origin, its x coordinate in t
 	// is given by:
 	//
diff --git a/ui/draw/path.go b/ui/draw/path.go
index c0d1ea2..df6a345 100644
--- a/ui/draw/path.go
+++ b/ui/draw/path.go
@@ -71,11 +71,11 @@ func (p *PathBuilder) Line(to f32.Point) {
 }
 
 func (p *PathBuilder) lineTo(to f32.Point) {
-	// Model lines as degenerate quadratic beziers.
+	// Model lines as degenerate quadratic Béziers.
 	p.quadTo(to.Add(p.pen).Mul(.5), to)
 }
 
-// Quad records a quadratic bezier from the pen to end
+// Quad records a quadratic Bézier from the pen to end
 // with the control point ctrl.
 func (p *PathBuilder) Quad(ctrl, to f32.Point) {
 	ctrl = ctrl.Add(p.pen)
@@ -136,7 +136,7 @@ func (p *PathBuilder) quadTo(ctrl, to f32.Point) {
 	p.expand(bounds)
 }
 
-// Cube records a cubic bezier from the pen through
+// Cube records a cubic Bézier from the pen through
 // two control points ending in to.
 func (p *PathBuilder) Cube(ctrl0, ctrl1, to f32.Point) {
 	ctrl0 = ctrl0.Add(p.pen)
@@ -155,7 +155,7 @@ func (p *PathBuilder) Cube(ctrl0, ctrl1, to f32.Point) {
 	p.approxCubeTo(0, l*0.001, ctrl0, ctrl1, to)
 }
 
-// approxCube approximates a cubic beziér by a series of quadratic
+// approxCube approximates a cubic Bézier by a series of quadratic
 // curves.
 func (p *PathBuilder) approxCubeTo(splits int, maxDist float32, ctrl0, ctrl1, to f32.Point) int {
 	// The idea is from
@@ -178,7 +178,7 @@ func (p *PathBuilder) approxCubeTo(splits int, maxDist float32, ctrl0, ctrl1, to
 	//
 	// C2 = (3ctrl1 - to)/2
 	//
-	// The combined quadratic beziér, Q, shares both start and end points with its cubic
+	// The combined quadratic Bézier, Q, shares both start and end points with its cubic
 	// and use the midpoint between the two curves Q1 and Q2 as control point:
 	//
 	// C = (3ctrl0 - pen + 3ctrl1 - to)/4
-- 
2.22.0
Heh. Thanks!

To git.sr.ht:~eliasnaur/gio
   276cb10..a14e818  master -> master
View this thread in the archives