Remove the deprecated/archived Bezier-rs library from the repo (#3058)

Remove the Bezier-rs library from the repo
This commit is contained in:
Keavon Chambers
2025-08-16 17:29:00 -07:00
committed by GitHub
parent d22b2ca927
commit 3bcec37493
60 changed files with 24 additions and 17053 deletions
@@ -1,5 +1,3 @@
//! requires bezier-rs
use crate::curve::{Curve, CurveManipulatorGroup, ValueMapperNode};
use graphene_core::color::{Channel, Linear};
use graphene_core::context::Ctx;
@@ -34,7 +32,7 @@ fn generate_curves<C: Channel + Linear>(_: impl Ctx, curve: Curve, #[implementat
pathseg_find_tvalues_for_x(segment, x)
.next()
.map(|t| segment.eval(t.clamp(0., 1.)).y)
// Fall back to a very bad approximation if Bezier-rs fails
// Fall back to a very bad approximation if the above fails
.unwrap_or_else(|| (x - x0) / (x3 - x0) * (y3 - y0) + y0)
};
lut[index] = C::from_f64(y);