Skip to content

Releases: peilingjiang/p5.bezier

Version 0.7.1

25 Sep 00:44
Compare
Choose a tag to compare

Minor updates.

Full Changelog: v0.7.0...v0.7.1

Version 0.7.0

21 Aug 08:17
Compare
Choose a tag to compare

This version includes breaking updates:

  • A complete renovation of API, importing initBezier instead of p5bezier.
  • 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 to smoothness 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

21 Dec 08:26
Compare
Choose a tag to compare

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

04 Jul 16:27
Compare
Choose a tag to compare

Update dependencies.

Version 0.5.0

20 May 13:18
Compare
Choose a tag to compare

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

29 Jan 22:06
Compare
Choose a tag to compare

Fix the error that self is not defined when importing the package using require(). Thanks to @ExperiaBe (#8).

Version 0.3.2

22 Jul 08:02
Compare
Choose a tag to compare

Changed the default fidelity level to 6, created new examples, and updated README.

Version 0.3.0

02 Apr 00:41
Compare
Choose a tag to compare

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

24 Feb 02:08
Compare
Choose a tag to compare

Update dependencies, license, and package configurations.

0.2.7

09 Jul 14:14
Compare
Choose a tag to compare
v0.2.7

bump version