user-interfaceprocessingmoodleintegrate

can we integrate a processing gui with moodle?


i made a gui recently where the goal was to view the results of some actions there , so mostly it was like a simulation game that has no connection with any hardware , i proposed this for my school that uses moodle and i want to know if there is a way to integrate it there , the gui i used has controlP5 library and videos and gif libraries as well, i would appreciate the help

from my researches so far i found that we can integrate processing code with html after some modifications , but didn't find anything for moodle yet


Solution

  • My understanding is that Processing in java mode, using controlP5, etc. will work on a client machine, not on a server (like moodle) (not easily at least).

    Regarding embedding a processing sketch a web page:

    I don't know enough moodle, but perhaps you can embed a JS snippet/iframe/etc on a moodle page.

    Regarding controlP5, in p5.js, you can look at p5.dom.js functionalities such as createSlider(), createButton(), etc. or use libraries like p5.gui or p5.touchgui.