From 615cdc5d89ae1d3a74a80c13f61707c48059c5f6 Mon Sep 17 00:00:00 2001 From: Alex Clink Date: Mon, 14 Oct 2024 23:18:01 -0400 Subject: [PATCH] Fix spelling --- examples/cubic_bezier.cr | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/cubic_bezier.cr b/examples/cubic_bezier.cr index c18d9c9..f4ad078 100644 --- a/examples/cubic_bezier.cr +++ b/examples/cubic_bezier.cr @@ -58,12 +58,6 @@ class CubicBezier < PF::Game draw_rect(*@curve.rect.map(&.to_i), CTL_COLOR) draw_curve(@curve, CURVE_COLOR) - @curve.extremeties.each do |point| - point.try do |p| - draw_circle(p.to_i, 3, EXT_Y_COLOR) - end - end - fill_circle(@curve.p0.to_i, 2, POINT_COLOR) fill_circle(@curve.p1.to_i, 2, POINT_COLOR) fill_circle(@curve.p2.to_i, 2, POINT_COLOR) @@ -77,6 +71,12 @@ class CubicBezier < PF::Game if point = @hover_point draw_circle(point.value.to_i, 5, SEL_COLOR) end + + @curve.extremities.each do |point| + point.try do |p| + draw_circle(p.to_i, 3, EXT_Y_COLOR) + end + end end end