By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,442 Members | 1,316 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,442 IT Pros & Developers. It's quick & easy.

drawing the letters of the alphabet

P: n/a
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
Jul 23 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Mike Edwards wrote:
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.

--
Grant Wagner <gw*****@agricoreunited.com>
comp.lang.javascript FAQ - http://jibbering.com/faq

Jul 23 '05 #2

P: n/a
Mike Edwards wrote:
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
--
What happens to innovation when the Borg die?
Well, it turns out, we actually might have some then.
Jul 23 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.