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 2 5385
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*****@agrico reunited.com>
comp.lang.javas cript FAQ - http://jibbering.com/faq
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. This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: matt |
last post by:
Greetings:
I appoligize if I'm asking a question that's already been answered in
the group - I've scoured for about two hours and I can't find a
solution. I also appoligize if I over complicate my question, but I
want to be sure that I communicate my thought(s).
The database I'm working on will generate tens, perhaps hundreds of
thousands of records, each of which need to be identified uniquely.
Using the autonumber would be ideal...
|
by: Jack Addington |
last post by:
I want to scroll through the alphabet in order to scroll some data to the
closest name that starts with a letter. If the user hits the H button then
it should scroll to the letter closest to H. If no one exists with H, then
go to I, etc. If its near the end, say 'V', and the last person is a 'T'
then it should work its way back up the alphabet. I was trying to loop as
if the Char's were ints but I am having problems
I have buttons...
|
by: mygoogleaccount |
last post by:
Hi,
may be someone could help me ?
i need to use cyrillic letters in a php application.
I changed everything to UTF-8 and it works fine. The only problem are
CYRILLIC SMALL LETTER ES
CYRILLIC SMALL LETTER YA
|
by: kannabiran |
last post by:
Hi,
Im using C# ASP.Net here in the textbox i need to get the input as like follows
,any alphabet or any alphabet,any alphabet for example ,C or C,E like this i want to get the input.The textbox should get only one comma and it should not get any other special characters.it can be either by server side code or by the java script code..How should i do this any assistance plz..
rgrds
|
by: geebanga88 |
last post by:
HI i have a method that is supose to store the alphabet in an array however dont think that it is being added to the array.
public static void GetAlphabet (char alphabet) {
int index, ordinalVal = 97;
char element;
for (index = 1; index < alphabet.length; ++index, ++ordinalVal) {
element = (char) ordinalVal;
| |
by: emilnordiclake |
last post by:
(C#, Microsoft .NET Framework 3.5)
Hello!
I'm in the process of creating a custom text control and I want to add functionality for superscripts and subscripts. I'm using TextRenderer for drawing and measuring text because Graphics.DrawString and Graphics.MeasureString does not come with a "NoPadding" option.
When drawing superscripts and subscripts, I'll specify the x-position as the width of the normal text. This works fine for regular...
|
by: moondaddy |
last post by:
Using c# 3.0:
I need to do a loop and for each iteration I need to call the next letter of
the alphabet. Sometimes this code may only loop 10 times, and other cases
it may loop 100 times.
I need to do something line this:
|
by: awojciehowski |
last post by:
I have a database where I label entries by the alphabet (A-Z). However, when I have more entries than the alphabet has letters I then double the letters (AA-ZZ) and so on.
I want to create a sorting code that will list all single letters then double letters, triple and so on.
I am somewhat of a novice so if anyone has some ideas I sure would appreciate it along with a bit of detail.
Thanks much!
Adam
|
by: abueno |
last post by:
//It should count how many characters are letters in the English alphabet, and is
displaying the correct letters, but is not counting good.
void FunctionCountLetters(char s)
{
int len;
int i;
len=strlen(s);
cout<<"\n The lenght of the string is= "<<len<<endl;
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
| |
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |