http://package.elm-lang.org/packages/elm-lang/svg/1.1.1/Svg#image
Or via just 'node' if you want a custom node. Just pass in the normal SVG
information as needed. :-)
On Thursday, September 8, 2016 at 6:18:17 AM UTC-6, Jan Weidner wrote:
>
> Thanks for all the suggestions. I skimmed over svg
Thanks for all the suggestions. I skimmed over svg and found out how build
an image from scratch by drawing circles and polygons etc. However I did
not spot a function to load an image from file, am I missing something?
On Wednesday, September 7, 2016 at 8:49:08 PM UTC+2, John Bugner wrote:
>
>
The old graphics library is here:
http://package.elm-lang.org/packages/evancz/elm-graphics/1.0.0
I say 'old' though, because it's been deprecated (and (re)moved from
elm-lang's account to Evan's personal account). You should use svg instead.
(Also, a warning if you insist on trying to use the c
The elm-graphics library does it.
I'd lean more on SVG though, it is efficient at showing only parts of an
image. I'd still break the image up into parts though, but svg might still
be faster for rendering regardless.
On Wednesday, September 7, 2016 at 7:29:21 AM UTC-6, Jan Weidner wrote:
>
Thanks! How do I use canvas from elm? Is there a canvas elm example
somewhere?
On Wednesday, September 7, 2016 at 3:03:59 PM UTC+2, Charlie Koster wrote:
>
> The first thing I'll mention is writing your own map application is a huge
> undertaking. But it doesn't hurt to try with Elm :)
>
> Have
The first thing I'll mention is writing your own map application is a huge
undertaking. But it doesn't hurt to try with Elm :)
Have you considered rendering that huge map image on a canvas? Image
manipulation on a canvas might give you better performance.
--
You received this message because y