Skip to content

Create 0.3.0

Choose a tag to compare

@Maelkiz Maelkiz released this 16 Nov 14:57
· 96 commits to main since this release

Add it to a project with:

pixi workspace channel add https://prefix.dev/create-framework/create
pixi add "create>=0.3,<0.4"

Breaking changes

  • Playheads keep time by the run clock. Animator and Tween work out their position from the run's clock whenever they are asked, so Animator.update and Tween.update are removed: nothing needs ticking, and forgetting to can no longer freeze a sprite. A tween's changed duration takes effect at once (#47).
  • time.delta and time.elapsed are scaled time, which the new time scale and pause slow and stop. Real time is time.real_delta and time.real_elapsed. delta_millis and elapsed_millis are removed (#47).
  • New create.time and create.animation packages. Time, DateTime and Clock move into create.time; Tween, Animation and Animator into create.animation. Easing and ease stay in math. Only code importing these by package path changes; from create import * is unaffected (#53, #54).
  • Shapes spell out their extents. r becomes radius on Circle, Capsule, Arc, Sector, Polygon.regular and Polygon.star; w, h become width, height on Rectangle and Ellipse. The matching canvas calls and canvas.image's keywords follow (#49).
  • Voice is renamed Playback (#61).
  • overlaps is a method of each region, like contains and intersects: overlaps(a, b) becomes a.overlaps(b) (#64).

New

  • A time scale and a pause for the run's time: context.time_scale(s) and context.time_paused(True). A playhead built with clock=Clock.REAL keeps moving through them, for a pause menu's own animations (#47).
  • canvas.autoclear(False) works on the GPU backend too (#51).
  • Recordings with the autoclear off keep what the screen keeps, starting from the picture already on screen (#57).
  • start_recording(..., transparent=True) records a GIF with a transparent background (#57).

Improvements

  • A recording writes only what changed between frames: an 800x500 painting recorded for 90 frames with the autoclear off shrinks from 159 KB to 13 KB (#57).
  • The documentation site moved to create-framework.org, with the latest release and main side by side (#46, #48). The user guide is reorganised, with new pages for time, animation, installation and coming from Processing, and the API reference gives each type and function a page of its own and is committed under docs/reference (#50, #52, #53, #54, #60, #65).

Fixes

  • A polygon contains itself, its own edges, and rectangles and triangles on its corners (#63).