ANN: DrawBot, an environment for programming 2D graphics
ANN: DrawBot, an environment for programming 2D graphics
- Subject: ANN: DrawBot, an environment for programming 2D graphics
- From: Just van Rossum <email@hidden>
- Date: Mon, 29 Sep 2003 23:17:01 +0200
(I just posted the announcement below to the PyObjC and MacPython
mailing lists, but it occurred to me it may also be of interest to the
Cocoa community, as it supports interactive exploration of Cocoa 2D
drawing, using Cocoa from Python using PyObjC. It's also a nice demo of
a not entirely trivial (but still not very complex) document-based Cocoa
app written in Python.)
I'm happy to announce a first public version of "DrawBot", an
environment for 2D graphics programming.
DrawBot is a minimal "IDE", that allows you to write simple Python
scripts that generate two-dimensional graphics. The builtin graphics
primitives are currently pretty braindead, this version only supports
rectangles, ovals and (bezier) paths and polygons. A future version will
also support text and images. (Cocoa-dev: this is not true if you use
Cocoa directly, see below.)
DrawBot is written in Python. The binary download is fully
self-sufficient (ie. it doesn't need a Python install around), but if
you use or build it from the source you'll need Python.framework 2.3 as
well as PyObjC 1.0b1 or later. In either case, you need MacOSX 10.2 or
later.
Binary:
http://just.letterror.com/~just/drawbot.dmg
Source:
http://just.letterror.com/~just/drawbot.tgz
It contains an "Examples" folder with some, well, examples.
Note that you don't _have_ to use the drawing primitives I provide:
they're just thin wrappers around Cocoa's NSColor and NSBezierPath, so
you can also use the latter (or anything else from Cocoa, like NSImage)
directly. See the CocoaDrawing.py example.
To an extent it's intentionally sparse with features: DrawBot is being
developed as part of a course that teaches a bit of Python to visually
oriented non-programmers (ie. design students), and I don't want to
overload these people with stuff that'll confuse them; there's enough of
that in Python itself already...
DrawBot is released under an MIT-style license. It contains a more or
less reusable Python editor widget that supports syntax coloring and
smart/auto indentation.
Have fun,
Just
PS: for those of you familiar with Processing (as in proce55ing.net):
yes, DrawBot is similar but simpler and more simplistic, for better or
for worse.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.