Skip to content

Create 0.2.0

Choose a tag to compare

@Maelkiz Maelkiz released this 14 Nov 11:04
· 138 commits to main since this release

Create is now published to its own prefix.dev channel, create-framework/create, the one create-cli is on, instead of modular-community. Add it to a project with:

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

Breaking changes

  • Mojo 1.2. Create now builds against Mojo 1.2 only (#31).
  • File paths resolve against the calling source file, not the working directory: Image.load, Font.load, Sound.load, Table/JSON load and save, save_image, start_recording and the rest. Use source_path("...") for the standard library's open() and friends (#40).
  • Audio.update is removed. Looping voices are fed on SDL's audio thread, so nothing needs calling each frame (#38).
  • Sound.from_pcm is replaced by Sound.from_samples, which takes Float64 samples from -1.0 to 1.0 and raises on a format that can't play (#38).

New

  • canvas.text breaks lines at newlines and wraps to a width (#41).
  • Dashed strokes (#42).
  • Audio: a voice's playback speed and start volume, Audio.pause_all/resume_all, Audio.is_paused, and Sound.frame_count, duration and sample (#38).
  • The packaged Noto fonts are compiled into the library, so text draws from a built program or package moved off the machine (#30).
  • A user guide and API reference, published at create-framework.github.io/create.

Fixes

  • Every voice is mixed on one audio device, looping voices no longer run dry between frames, and one-shot voices end without waiting (#38).
  • Audio plays silently where no audio device opens, rather than failing (#38).
  • Loading a sound file with no samples raises; a negative volume is silence (#38).
  • Shared libraries are opened by their versioned soname, so a system without -devel packages works (#30).