Pyprocessing Examples

171 views
Skip to first unread message

monkstone

unread,
Aug 19, 2011, 9:31:57 AM8/19/11
to pyprocessing-users
I've published some of my pyprocessing experiments on github
https://github.com/monkstone/pyprocessing-experiments. The most recent
of which is an application to generate pyprocessing sketches (from a
set of rules).

monkstone

unread,
Aug 24, 2011, 1:41:02 AM8/24/11
to pyprocessing-users
I've just added an image warping sketch
https://github.com/monkstone/pyprocessing-experiments/blob/master/misc/warping.py,
the convenience method dataPath() does not seem to be implemented in
pyprocessing? Might be useful to have? I was also wondering since we
are now using numpy under the hood, whether such sketches might
benefit (in efficiency) from direct access to the nparray (although
possibly a bit advanced for intended audience?). I was thinking for
example of exploring some generative sketches like toxis gray-scott
diffusion which I've translated to ruby processing here
http://learning-ruby-processing.blogspot.com/search?q=toxi

Pedro

unread,
Aug 25, 2011, 2:37:33 PM8/25/11
to pyprocessing-users
Hello monkstone.

Thanks for publishing your pyprocessing examples.
The dataPath() isn't implemented in pyprocessing because it is a
method from the Java language itself. Since the aim of pyprocessing is
to implement the Processing graphic functionality but with the
intuitive and easy syntax Python provides, we won't add any of these
methods in the future. You can, however, use the standard Python
libraries to find a method with similar functionality (the module
os.path, for example).

Regarding using numpy, it isn't a required package for pyprocessing,
thus it'll only make use of it if you already have it installed. In
this case, you have full access to all of its functionalities
independently of pyprocessing. Using it is completely up to you, but
if you need to do operations to all elements of an array (like
screen.pixels, for example), some performance improvement will
certainly be noticeable.





On Aug 24, 2:41 am, monkstone <mamba2...@gmail.com> wrote:
> I've just added an image warping sketchhttps://github.com/monkstone/pyprocessing-experiments/blob/master/mis...,

monkstone

unread,
Aug 26, 2011, 2:49:09 AM8/26/11
to pyprocessing-users
I've now revised warping.py sketch to use a cross platform way of
determining the
path to the data folder and image. However I wonder whether it is wise
to expose
the nonsense of path confusion (created by Bill Gates at windows) to
kids/artists,
who just want to play with pyprocessing. I'm sure that is the reason
Casey and Fry
created the convenience of a data folder (and hiding path convention
nonsense).
On the other hand, one of things that attracted me to pyprocessing was
the wealth
python libraries for imaging/science, I'm only just getting to grips
with numpy which
seems to be very attractive for manipulating screen pixels.
Reply all
Reply to author
Forward
0 new messages