Rerouted (regenerated, verified). Same repository and tag, but GitHub now builds the zip with different bytes, so it no longer matches the SHA-1 package.elm-lang.org recorded. The Lamdera package server serves a copy recovered from https://github.com/linsyking/elm-canvas.
What we checked: Rebuilt with git archive from commit 8a2e082db001 of https://github.com/linsyking/elm-canvas (zip prefix linsyking-elm-canvas-8a2e082/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 161e76f3d17c5bd6e93cefb51e57639cdb8559da.
The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.
Details · package.elm-lang.org's zip: https://github.com/linsyking/elm-canvas/zipball/2.0.0/
This module exposes the types and functions to load and work with textures.
You can load textures by using toHtmlWith, and use them to draw with
Canvas.texture.
Make a Texture.Source from an image URL. When passing this Source to
toHtmlWith the image will try to be loaded and stored as a Texture ready to be drawn.
The Texture type. You can use this type with Canvas.texture to get
a Renderable into the screen.
Once you have a texture, you can get a new texture with a viewport into an existing one. This is very useful for when you have a sprite sheet with many images in one, but want to have individual sprites to draw.
Make a sprite from a texture. A sprite is like a window into a bigger texture. By passing the inner coordinates and width and height of the window, you will get a new texture back that is only that selected viewport into the bigger texture.
Very useful for using sprite sheet textures.
You can get some information from the texture, like its dimensions:
Get the width and height of a texture
Origin of a texture to load. Passing a
List SourcetoCanvas.toHtmlWithwill try to load the textures and send you events with the actualTexturewhen it is loaded.