drawing the letters of the alphabet

M

Mike Edwards

I need to use javascript's graphics API to draw the letters of
the alphabet. If necessary, I can map out all 26 letters myself
and use drawline() to draw them, but I am hoping someone out
there might have a better suggestion. The user will click a spot
on the canvas, and the script will draw one of the letters at
that spot.

thanks,

mike
 
G

Grant Wagner

Mike said:
I need to use javascript's graphics API to draw the letters of
the alphabet. If necessary, I can map out all 26 letters myself
and use drawline() to draw them, but I am hoping someone out
there might have a better suggestion. The user will click a spot
on the canvas, and the script will draw one of the letters at
that spot.

thanks,

mike

JavaScript has no API for drawing lines. However some people have
written client-side JavaScript which manipulates DIVs to simulate the
drawing of lines and more complex shapes <url:
http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm />

However, given the use of the word "canvas" makes me think you mean
you want to do this in Java, not JavaScript.
 
T

Thomas 'PointedEars' Lahn

Mike said:
I need to use javascript's graphics API to draw the letters of
the alphabet. [...]

There is no JavaScript Graphics API. Most certainly you are
confusing JavaScript with Java; if so, post to comp.lang.java.


PointedEars
 

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,444
Messages
2,571,709
Members
48,796
Latest member
Greg L.
Top