WebPPL Editor: Draw is not defined

32 views
Skip to first unread message

ameya...@gmail.com

unread,
Jan 14, 2019, 1:06:19 AM1/14/19
to webppl-dev
Hi, I was trying out the Computer Vision examples in http://dippl.org/examples/vision.html in the WebPPL editor at webppl.org.
However, on running the first example, I get a 'Draw is not defined.' On looking further, I see that the dippl.org site has a custom draw.js script that includes the definition of these functions. Would it be possible to add these to the WebPPL editor? Otherwise, how should I add these functions to the top of the WebPPL code? Or, do I have to run WebPPL on a custom site, where I can load whatever I need?
Thanks for your time!

Long Ouyang

unread,
Jan 14, 2019, 5:54:39 PM1/14/19
to webppl-dev
We don't have any plans to add the drawing functions to the editor library.

I would recommend creating a custom site, loading whatever you need.

Best,
Long

ameya...@gmail.com

unread,
Apr 2, 2019, 9:54:33 AM4/2/19
to webppl-dev
Hi,
I went ahead with this, using d3.js and WebPPL to make this: https://ameya98.github.io/WebPPL/generative_art/
Thanks for your help!
Reply all
Reply to author
Forward
0 new messages