CanvasCraft.Scene (canvas_craft v0.2.0)
View SourceDeclarative DSL for building CanvasCraft scenes.
Example:
import CanvasCraft.Scene
render width: 1920, height: 1080, path: "out.webp" do
rect 60, 60, 1800, 960, {42,46,54,255}
circle 300, 260, 110, {35,132,252,255}
end
All commands are expanded to CanvasCraft
API calls against an internal handle
.