Hi,
The Processing Foundation (http://processing.org) has two new projects besides the traditional Processing platform, based on Java:
1 - Processing Python Mode (http://py.processing.org), based on Jython.
2 - p5*js (http://p5js.org), based on JavaScript.
(not to be confused with ProcessingJS that tries to convert Java code into JavaScript and is used in Skulpt, like in https://trinket.io/processing)
Processing Python Mode is lovely but makes it harder to share 'sketches' online.
As an educator without enough technical knowledge, I would like to find anyone using p5*js on Brython and see if I can make it work too...
Best regards,
Alexandre Villares
---
Resources for teaching programming to artists, designers and architects
https://github.com/villares/Resources-for-teaching-programming
https://docs.google.com/spreadsheets/d/1zXnO8fMvNyfBeddSDhuq_ymcMrSKFYuf3pjzynkoD5w/pubhtml
--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+u...@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/1350daa6-48ad-4957-a4cb-ccefeb286fc6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Thanks Kiko!
I'll have a look!
AV
You received this message because you are subscribed to a topic in the Google Groups "brython" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/brython/gAAtzh7WtJU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to brython+u...@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/CAB-sx62MRpzUb9tOnP7zW2ZyVMKM2qy7_O3B7cGwyd1ZhAtpWQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/f5e083f7-fb97-4ce6-8347-55f516a49a3e%40googlegroups.com.
Lo and behold.Very cool indeed Kiko!
I'll try and post something.
http://jsfiddle.net/villares/g2sL3eza/
If we could only get rid of "p."...
--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+u...@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/732ac4e1-02c1-422d-a068-13cd80f112da%40googlegroups.com.
<html>
<head>
</head>
<body onload="brython(1)">
<script type="text/python">
from browser import document, window, alert
from javascript import JSConstructor
def sketch(p):
def setup():
p.createCanvas(700, 410)
p.background(0)
p.rectMode(p.CENTER)
def draw():
# p.background(0)
p.fill(255,255,0,128)
p.ellipse(p.mouseX,p.mouseY,50,50)
def mousePressed():
p.background(0)
p.setup = setup
p.draw = draw
p.mousePressed = mousePressed
myp5 = JSConstructor(window.p5)(sketch)
</script>
<script type="text/javascript"
src="https://cdn.rawgit.com/brython-dev/brython/master/www/src/brython.js">
</script>
<script src="https://cdn.rawgit.com/brython-dev/brython/master/www/src/brython_stdlib.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.11/addons/p5.dom.js"></script>
</body>
</html>
Hi,
I try to create an local version but it doesn't work. I'm new to Brython. where is the problem?
<script src="//cdnjs.cloudflare.com/ajax/libs/p5.js/0.5.0/p5.js"></script>
myp5 = window.p5.new(sketch)
--
You received this message because you are subscribed to a topic in the Google Groups "brython" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/brython/gAAtzh7WtJU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to brython+unsubscribe@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/112884cf-f8b7-4b8d-bd26-7119f6066811%40googlegroups.com.
Thanks Pierre!Updated my Kiko inspired proof of concept :)
http://jsfiddle.net/villares/g2sL3eza/
Can you see a way forward on the ugly "p." namespace issue?
--
You received this message because you are subscribed to the Google Groups "brython" group.
To unsubscribe from this group and stop receiving emails from it, send an email to brython+unsubscribe@googlegroups.com.
To post to this group, send email to bry...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/brython/CAB8GTf1NF9riG5QbV%3DE_mKSpkVBqLX9Mmc-bF8MrcG1N8U8Yjw%40mail.gmail.com.
2017-06-26 14:58 GMT+02:00 Alexandre B A Villares <ab...@lugaralgum.com>:Thanks Pierre!Updated my Kiko inspired proof of concept :)
http://jsfiddle.net/villares/g2sL3eza/Pretty cool, congrats!!!!Can you see a way forward on the ugly "p." namespace issue?Could you explain this a little bit more?It is the way the lib is built...