Discussion:
[Ur] about <canvas>
Fabrice Leal
2018-06-21 09:11:43 UTC
Permalink
are there any plans to support the <canvas> tag? I added it locally to
lib/ur/basis.urs and i can compile a file using <canvas> but i still need
to work on getContext and draw and so on. My question is if there's anyone
already working on this and if not, I could give it a try
--
---
Fabrice Leal
Benjamin Barenblat
2018-06-21 15:11:26 UTC
Permalink
Post by Fabrice Leal
are there any plans to support the <canvas> tag?
I'm not aware of anybody working on it right now. An FFI library that
presented an FRP interface to canvas would be pretty cool, though.
Adam Chlipala
2018-06-21 18:25:31 UTC
Permalink
I remember that someone put a proof-of-concept canvas interface on
GitHub at some point, but now I forget the details.  Certainly there is
nothing within the urweb GitHub organization.
Post by Benjamin Barenblat
Post by Fabrice Leal
are there any plans to support the <canvas> tag?
I'm not aware of anybody working on it right now. An FFI library that
presented an FRP interface to canvas would be pretty cool, though.
Fabrice Leal
2018-06-23 01:06:29 UTC
Permalink
alrighty, i set up a repo here
https://github.com/fabriceleal/urweb/tree/canvas_impl

feedback appreciated, I'll push a test demo soon
Post by Benjamin Barenblat
Post by Fabrice Leal
are there any plans to support the <canvas> tag?
I'm not aware of anybody working on it right now. An FFI library that
presented an FRP interface to canvas would be pretty cool, though.
--
---
Fabrice Leal
Artyom Shalkhakov
2018-06-23 15:28:40 UTC
Permalink
Hello Fabrice,

I guess you could put into a separate library.

IIRC, you only need to make an FFI module and figure out how to integrate
<canvas> tag into Ur/Web (also doable with FFI). You could take example on
how to do it from Benjamin's regexp library.
alrighty, i set up a repo here https://github.com/
fabriceleal/urweb/tree/canvas_impl
feedback appreciated, I'll push a test demo soon
On Thu, Jun 21, 2018 at 4:11 PM, Benjamin Barenblat <
Post by Benjamin Barenblat
Post by Fabrice Leal
are there any plans to support the <canvas> tag?
I'm not aware of anybody working on it right now. An FFI library that
presented an FRP interface to canvas would be pretty cool, though.
--
---
Fabrice Leal
_______________________________________________
Ur mailing list
http://www.impredicative.com/cgi-bin/mailman/listinfo/ur
--
Cheers,
Artyom Shalkhakov
Loading...