473,390 Members | 865 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,390 software developers and data experts.

Some rather complex animated line/circle drawing

Ben
I must preface this post by saying that I am not a javascript GURU,
altho I am reasonably familiar with javascript and have worked on some
enterprise-level systems which use it...

Essentially what I wish to do here is the following:

Given a start position in X/Y in pixels, lets call it start, and an
array of end points, end[0....N], I want to be able to draw animated
lines which originate from start and wend their way in an animated
fashon to each of the end points. The flashier and nicer the animation
here the better, and I have a lot of leeway as far as how the lines
are drawn. Any ideas? Thanks!
Jul 20 '05 #1
7 9995
VK
Use Macromedia Flash, this is exactly what it was created for!

Ben <be**********@bookspan.com> wrote in message
news:ab*************************@posting.google.co m...
I must preface this post by saying that I am not a javascript GURU,
altho I am reasonably familiar with javascript and have worked on some
enterprise-level systems which use it...

Essentially what I wish to do here is the following:

Given a start position in X/Y in pixels, lets call it start, and an
array of end points, end[0....N], I want to be able to draw animated
lines which originate from start and wend their way in an animated
fashon to each of the end points. The flashier and nicer the animation
here the better, and I have a lot of leeway as far as how the lines
are drawn. Any ideas? Thanks!

Jul 20 '05 #2
Ben wrote on 04 sep 2003 in comp.lang.javascript:
I must preface this post by saying that I am not a javascript GURU,
altho I am reasonably familiar with javascript and have worked on some
enterprise-level systems which use it...

Essentially what I wish to do here is the following:

Given a start position in X/Y in pixels, lets call it start, and an
array of end points, end[0....N], I want to be able to draw animated
lines which originate from start and wend their way in an animated
fashon to each of the end points. The flashier and nicer the animation
here the better, and I have a lot of leeway as far as how the lines
are drawn. Any ideas? Thanks!


Not quite your question, but please look at the moving arrows I developed
earlier, tested for IE6:

<http://devrijehuisarts.org/test/jsarrow.asp>

<http://devrijehuisarts.org/test/jsarrow2.asp>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
Jul 20 '05 #3
On 4 Sep 2003 07:05:50 -0700, be**********@bookspan.com (Ben) wrote:
Given a start position in X/Y in pixels, lets call it start, and an
array of end points, end[0....N], I want to be able to draw animated
lines which originate from start and wend their way in an animated
fashon to each of the end points. The flashier and nicer the animation
here the better, and I have a lot of leeway as far as how the lines
are drawn. Any ideas? Thanks!


Use a vector language, SVG, Flash and VML can all be created using
javascript languages, flash must of course be hosted in a compiled
flash file, the others are straight text markup languages.

Jim.
--
comp.lang.javascript FAQ - http://jibbering.com/faq/

Jul 20 '05 #4
Ben
This is something I had thought of, but I was hoping to avoid flash
altogether in leiu of using technology which is built into the
browser. Lets say, for the sake of argument, that I cannot use flash.
Is what I propose to do at all possible to implement using only
javascript?
Use Macromedia Flash, this is exactly what it was created for!

Ben <be**********@bookspan.com> wrote in message
news:ab*************************@posting.google.co m...
I must preface this post by saying that I am not a javascript GURU,
altho I am reasonably familiar with javascript and have worked on some
enterprise-level systems which use it...

Essentially what I wish to do here is the following:

Given a start position in X/Y in pixels, lets call it start, and an
array of end points, end[0....N], I want to be able to draw animated
lines which originate from start and wend their way in an animated
fashon to each of the end points. The flashier and nicer the animation
here the better, and I have a lot of leeway as far as how the lines
are drawn. Any ideas? Thanks!

Jul 20 '05 #5
> This is something I had thought of, but I was hoping to avoid flash
altogether in leiu of using technology which is built into the
browser. Lets say, for the sake of argument, that I cannot use flash.
Is what I propose to do at all possible to implement using only
javascript?


You can make lots of tiny colored divs. You can then place them in rows. I have
made interactive splines where you drag three control points and the divs get
moved around to fill in the curves. This stuff works in all standard browsers,
but is fastest in IE.

http://www.crockford.com

Jul 20 '05 #6
be**********@bookspan.com (Ben) wrote in message
news:<ab*************************@posting.google.c om>...
This is something I had thought of, but I was hoping to avoid flash
altogether in leiu of using technology which is built into the
browser. Lets say, for the sake of argument, that I cannot use flash.
Is what I propose to do at all possible to implement using only
javascript?

hi Ben,
you may want to check this out:

http://www.walterzorn.com/jsgraphics/jsgraphics_e.htm
regards - peterS. - ps******@gmx.net
Jul 20 '05 #7
I've seen this being done a couple of years ago. I saw the code, and the
code called a .dll file that is a part of windows. Cannot remember what file
it was. Could also been an ocx-file.

"Ben" <be**********@bookspan.com> skrev i melding
news:ab*************************@posting.google.co m...
This is something I had thought of, but I was hoping to avoid flash
altogether in leiu of using technology which is built into the
browser. Lets say, for the sake of argument, that I cannot use flash.
Is what I propose to do at all possible to implement using only
javascript?
Use Macromedia Flash, this is exactly what it was created for!

Ben <be**********@bookspan.com> wrote in message
news:ab*************************@posting.google.co m...
I must preface this post by saying that I am not a javascript GURU,
altho I am reasonably familiar with javascript and have worked on some
enterprise-level systems which use it...

Essentially what I wish to do here is the following:

Given a start position in X/Y in pixels, lets call it start, and an
array of end points, end[0....N], I want to be able to draw animated
lines which originate from start and wend their way in an animated
fashon to each of the end points. The flashier and nicer the animation
here the better, and I have a lot of leeway as far as how the lines
are drawn. Any ideas? Thanks!

Jul 20 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: mike | last post by:
Hello, After trying to validate this page for a couple of days now I was wondering if someone might be able to help me out. Below is a list of snippets where I am having the errors. 1. Line 334,...
3
by: Richard | last post by:
I have a requirement to put a GDI style circle or rectangle border around the selected row of a datagrid/ It will overlap into the row above and below the selected row. Doing this in a the OnPaint...
3
by: Altman | last post by:
I have a object that contains a check box. When the value changes it raises an event for that object. I then have another object with a animated gif in it. I linked the event of the first object...
4
by: Jason Huang | last post by:
Hi, In my C# Windows Form, how do I draw a Line? Thanks for help. Jason
10
by: Flashster | last post by:
How do I put a custom animated icon on the status bar of a form? I have an animated icon file called icon.ani, and I've tried getting 'statusbar1.Animate' to work with no success. Can someone give...
20
by: chump1708 | last post by:
Can anyone give me an idea for drawing a circle without making use of any floating point computations? Thanks Prasad
1
by: sravan_reddy001 | last post by:
I am creating an analog clock. so i hav to draw the line from center to a point in the circle. How can i get the co-ordinates of the points on the circle i fmention the radius and the center of the...
4
by: Slickuser | last post by:
How do I automatic move the X & Y to create a ellipse function as below, DrawCircle? Or there any sample source code out there? I want it move down by user input. How can I achieve this?...
14
by: DeadSilent | last post by:
I have this code and for some reason I keep getting an error where it says "exporting non-public type through public api ".. I'm not sure why this keeps happening but it does so for getCircleInfo /...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.