473,503 Members | 9,912 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 9998
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
6308
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
4223
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
6716
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
30789
by: Jason Huang | last post by:
Hi, In my C# Windows Form, how do I draw a Line? Thanks for help. Jason
10
3576
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
8104
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
1714
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
2540
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
14488
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
7294
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
7361
jinu1996
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...
1
7015
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...
0
7470
tracyyun
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...
0
5602
agi2029
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,...
0
4693
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...
0
3183
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
1
749
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
403
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.