That's nice work! I think this sketch might also be relevant? - I assume there's some relationship between the controlP5 library and p5.js though I don't know my way around either.
https://github.com/jdf/processing.py/blob/master/examples.py/ThirdParty/controlp5-demo.py
Anyway, it runs fine for me in Python Mode PDE (after a certain amount file renaming and copying controlP5.jar).
In terms of dynamically changing variables in a Python sketch - isn't it a shame there's no interactive Python console? Ironically I know how to bring up a Python console for a Java-mode Processing sketch, but fell over trying to make this work with a Python-mode sketch.
https://forum.processing.org/one/topic/can-anyone-run-processing-sketches-in-jython.html
Best regards,
Antony
Hello!
from slider import Slider
slider1 = Slider(0,20,6)
slider1.position(20,20)
num = slider1.value()
println(num)
*Hacking Math Class with Python*
--
You received this message because you are subscribed to the Google Groups "Processing Educators" group.
To unsubscribe from this group and stop receiving emails from it, send an email to processing-educa...@googlegroups.com.
To post to this group, send email to processing...@googlegroups.com.
Visit this group at https://groups.google.com/group/processing-educators.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to processing-educators+unsub...@googlegroups.com.
Interactive consoles aren't particularly rare. JavaScript has them - just hit F12 in pretty much any web browser to bring up its debugger, and the interactive console shouldn't be far away - I have played with running Processing.js sketches that way. Also the R programming language (very useful for the more statistical side of math).
Best regards,
Antony
Hi, Anthony,
> email to processing-educa...@googlegroups.com <javascript:>.
> To post to this group, send email to processing...@googlegroups.com
> <javascript:>.
> Visit this group at https://groups.google.com/group/processing-educators.
> For more options, visit https://groups.google.com/d/optout.
>
>
>
--
You received this message because you are subscribed to the Google Groups "Processing Educators" group.
To unsubscribe from this group and stop receiving emails from it, send an email to processing-educa...@googlegroups.com.