Repository navigation
Create 0.2.0
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/JSONload and save,save_image,start_recordingand the rest. Usesource_path("...")for the standard library'sopen()and friends (#40). Audio.updateis removed. Looping voices are fed on SDL's audio thread, so nothing needs calling each frame (#38).Sound.from_pcmis replaced bySound.from_samples, which takesFloat64samples from -1.0 to 1.0 and raises on a format that can't play (#38).
New
canvas.textbreaks 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, andSound.frame_count,durationandsample(#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
-develpackages works (#30).