Releases: peilingjiang/p5.bezier
Version 0.7.1
Minor updates.
Full Changelog: v0.7.0...v0.7.1
Version 0.7.0
This version includes breaking updates:
- A complete renovation of API, importing
initBezier
instead ofp5bezier
. - To avoid memory leaks (#12), skip some control points if the total number of points exceeds 160 (experimental).
- A brand new examples page.
- Various fixes and performance improvements.
- Renaming confusing
accuracy
tosmoothness
throughout. It now scales from 1 to 5 (default to 3), instead of 0 to 10.
Full Changelog: v0.6.0...v0.7.0
Version 0.6.0
This version includes various updates:
- Optimize performance.
- Use TypeScript best practices.
- Fix inaccurate dash curve drawings (that used to have varied lengths of solid and gap parts) for
BezierObject
. - Minor updates to examples and the readme.
Version 0.5.1
Update dependencies.
Version 0.5.0
We're excited to share our largest update since the library's initial release. With the assistance of GPT-4, we've rewritten the package in TypeScript, improved performance, and added the ability to draw smooth closed curves. Don't worry about adjustments - all APIs remain the same. Enjoy the new update!
Full Changelog: v0.3.3...v0.5.0
Version 0.3.3
Fix the error that self
is not defined when importing the package using require()
. Thanks to @ExperiaBe (#8).
Version 0.3.2
Changed the default fidelity level to 6, created new examples, and updated README.
Version 0.3.0
Support p5.Graphics as the renderer. Thanks to @sloosh (#6). See the example code below.
let renderer
function setup() {
createCanvas(500, 500)
renderer = createGraphics(500, 500)
// Init p5.bezier drawer with the off-screen renderer
p5bezier.initBezier(renderer)
renderer.noFill()
renderer.stroke('black')
renderer.strokeWeight(2)
}
function draw() {
background(255)
p5bezier.newBezier([
[10, 10],
[100, 700],
[500, -800],
[800, 1000],
[10, 300],
])
// Normal bezier function
renderer.bezier(10, 10, 20, 30, 50, 50, 100, 60)
// Render the off-screen renderer to the canvas
image(renderer, 0, 0)
}
Version 0.2.8
Update dependencies, license, and package configurations.
0.2.7
v0.2.7 bump version