Default backend for Selene game engine.
moon add Milky2018/selene-canvas{
"overrides": [
"Milky2018/selene-canvas"
]
}moon build --target jspython3 -m http.server 8000type Audiotype CanvasBackendfn draw_color_circle(x~ : Double, y~ : Double, radius~ : Double, color~ : String, stroke_color~ : String) -> Unitfn draw_color_rect(x~ : Double, y~ : Double, width~ : Double, height~ : Double, color~ : String, stroke_color~ : String) -> Unitfn draw_gradient_rect(x~ : Double, y~ : Double, width~ : Double, height~ : Double, color_start~ : String, color_end~ : String) -> Unitfn draw_picture(png~ : String, x~ : Double, y~ : Double, width~ : Double, height~ : Double, transform~ : Transform, repeat~ : RepeatMode) -> Unitfn draw_sprite(sprite_path~ : String, x~ : Double, y~ : Double, offset_x~ : Double, offset_y~ : Double, width~ : Double, height~ : Double, transform~ : Transform) -> Unitfn initialize(startup~ : () -> Unit, render_loop~ : (Double) -> Unit, game_loop~ : (Double) -> Unit, canvas_width~ : Double, canvas_height~ : Double, fps~ : UInt, image_smooth~ : Bool, zoom~ : Double) -> (() -> Unit)