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
This is not about drawings that gradually show up as you draw them, or drawings that can be cleared and redrawn, see [https://github.com//issues/23] for that.
Let the user create drawings within the notebook. What sort of API?
Processing.py -like (simpler wrapper around openGL), but only static drawings.
Pyglet-like (wrapper around openGL)
Look at two.js: "Two.js is a two-dimensional drawing api geared towards modern web browsers. It is renderer agnostic enabling the same api to draw in multiple contexts: svg, canvas, and webgl."
Whether "proccessing.py-like or pyglet-like," we're talking about a non-animated, non-interactive API, which means either
Emulate a subset of the existing library's API from scratch, or
Take the source of the existing library and disable the animated and interactive stuff.
Graphs as a layer over the drawing api
Matplotlib-like (some small subset of matplotlib graph styles)
use tinyplot.py (already just one style, and a small amount of code)
Implementation method:
Server creates a GIF or PNG (perhaps using an existing standard library) and ships it to the browser
SVG? Do Android browsers handle that?
Server creates JSON instruction lists interpreted by JS in the browser, which draw on an HTML5 canvas... do old Android browsers have canvas?
JS can draw with raw Canvas commands, or WebGL... if Android browsers have WebGL.
Drawing or graph gets stored up until the code block is done or code says "show". Probably allow the code to start another drawing, but not redraw Multiple drawings pile up on the server until the code block is done, then they're all shown.
The text was updated successfully, but these errors were encountered:
This is not about drawings that gradually show up as you draw them, or drawings that can be cleared and redrawn, see [https://github.com//issues/23] for that.
Let the user create drawings within the notebook. What sort of API?
Whether "proccessing.py-like or pyglet-like," we're talking about a non-animated, non-interactive API, which means either
Graphs as a layer over the drawing api
Implementation method:
JS can draw with raw Canvas commands, or WebGL... if Android browsers have WebGL.
Drawing or graph gets stored up until the code block is done or code says "show". Probably allow the code to start another drawing, but not redraw Multiple drawings pile up on the server until the code block is done, then they're all shown.
The text was updated successfully, but these errors were encountered: