Vector sketchpad

M

Martin DeMello

I'm trying to write a tiny vector sketchpad - mainly, it needs the
ability to draw lines (with rubberbanding), and to manipulate those
lines once they're drawn (move, rotate)[1]. Am I right in thinking that the
Tk canvas is the only one that'll let me accomplish the latter easily?
Also, has anyone done something similar they'd be willing to share, so I
don't need to start from scratch?

martin

[1] I'm not reinventing the wheel - the reason I'm writing my own is
that the lines need to be constrained as they're drawn, and that it
doesn't need to do anything *but* lines.
 
M

Markus

Martin --

Bullet point, because I'm about to fall asleep:

1) I've done this, but not in Ruby
2) I don't know of any ruby implementation
3) I may have a very similar need within a month or three
4) I'd be willing to help write it in ruby
5) I will forward the (pascal) version I wrote if I can find it.

-- MarkusQ
 
M

Martin DeMello

Markus said:
Bullet point, because I'm about to fall asleep:

1) I've done this, but not in Ruby
2) I don't know of any ruby implementation
3) I may have a very similar need within a month or three
4) I'd be willing to help write it in ruby
5) I will forward the (pascal) version I wrote if I can find it.

Great! I've got off to a pretty good start - the tk canvas gives me a
lot of neat stuff right out of the box, most significantly the ability
for objects on the canvas to detect whether the mouse pointer is over
them. I should have v0.1 out within the next day or two; I'll mail you a
copy offlist.

martin
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,159
Messages
2,570,879
Members
47,413
Latest member
ReeceDorri

Latest Threads

Top