Repository navigation
Create 0.3.0
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.
AnimatorandTweenwork out their position from the run's clock whenever they are asked, soAnimator.updateandTween.updateare removed: nothing needs ticking, and forgetting to can no longer freeze a sprite. A tween's changed duration takes effect at once (#47). time.deltaandtime.elapsedare scaled time, which the new time scale and pause slow and stop. Real time istime.real_deltaandtime.real_elapsed.delta_millisandelapsed_millisare removed (#47).- New
create.timeandcreate.animationpackages.Time,DateTimeandClockmove intocreate.time;Tween,AnimationandAnimatorintocreate.animation.Easingandeasestay inmath. Only code importing these by package path changes;from create import *is unaffected (#53, #54). - Shapes spell out their extents.
rbecomesradiusonCircle,Capsule,Arc,Sector,Polygon.regularandPolygon.star;w,hbecomewidth,heightonRectangleandEllipse. The matching canvas calls andcanvas.image's keywords follow (#49). Voiceis renamedPlayback(#61).overlapsis a method of each region, likecontainsandintersects:overlaps(a, b)becomesa.overlaps(b)(#64).
New
- A time scale and a pause for the run's time:
context.time_scale(s)andcontext.time_paused(True). A playhead built withclock=Clock.REALkeeps 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
mainside 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 underdocs/reference(#50, #52, #53, #54, #60, #65).
Fixes
- A polygon contains itself, its own edges, and rectangles and triangles on its corners (#63).