You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@fonsp this thread and examples have been helpful!
The only thing I cannot make to work is to draw an image on the canvas from julia. https://gist.github.com/RensDimmendaal/2cb0ada5750b00d703c3976df1716e14 has an example of an image from a URL, but I have the image in Julia as a regular matrix of RGB colors. How to send it to JS and draw?
Activity
RensDimmendaal commentedon Sep 14, 2020
I'm excited about this feature. I augmented the box drawing feature for a small demo: https://twitter.com/R_Dimm/status/1305251396669800448
I don't know javascript but potentially this might serve as inspiration: https://github.com/andfanilo/streamlit-drawable-canvas they had a similar usecase but in python.
I'd be happy to take a stab at this feature someone can help specify the requirements.
fonsp commentedon Sep 14, 2020
Sorry I already kind of wrote this myself:
https://github.com/fonsp/disorganised-mess/blob/master/drawoncanvas.jl
🙂
let's turn it into a PlutoUI element after #3 is done
RensDimmendaal commentedon Sep 14, 2020
Super. Keep up the great work!
shashankp commentedon Sep 14, 2020
Great to see already something in the works..
I was prototyping about a 2D slider
fonsp commentedon Sep 14, 2020
@dpsanders asked for that once
shashankp commentedon Sep 14, 2020
Create another issue to track it?
fonsp commentedon Sep 15, 2020
yep!
DhruvaSambrani commentedon Nov 10, 2022
Hi @fonsp what's the scene on this issue? Is it just a matter of someone formalizing your code?
fonsp commentedon Nov 11, 2022
WIP at #234!
aplavin commentedon Apr 14, 2023
@fonsp this thread and examples have been helpful!
The only thing I cannot make to work is to draw an image on the canvas from julia. https://gist.github.com/RensDimmendaal/2cb0ada5750b00d703c3976df1716e14 has an example of an image from a URL, but I have the image in Julia as a regular matrix of
RGBcolors. How to send it to JS and draw?