Some rather complex animated line/circle drawing

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Ben

    #1

    Some rather complex animated line/circle drawing

    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!
  • VK

    #2
    Re: Some rather complex animated line/circle drawing

    Use Macromedia Flash, this is exactly what it was created for!

    Ben <benjamin.may@b ookspan.com> wrote in message
    news:abbbffdf.0 309040605.ffc38 72@posting.goog le.com...[color=blue]
    > 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![/color]


    Comment

    • Evertjan.

      #3
      Re: Some rather complex animated line/circle drawing

      Ben wrote on 04 sep 2003 in comp.lang.javas cript:[color=blue]
      > 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![/color]

      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)

      Comment

      • Jim Ley

        #4
        Re: Some rather complex animated line/circle drawing

        On 4 Sep 2003 07:05:50 -0700, benjamin.may@bo okspan.com (Ben) wrote:
        [color=blue]
        >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![/color]

        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.javas cript FAQ - http://jibbering.com/faq/

        Comment

        • Ben

          #5
          Re: Some rather complex animated line/circle drawing

          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?
          [color=blue]
          > Use Macromedia Flash, this is exactly what it was created for!
          >
          > Ben <benjamin.may@b ookspan.com> wrote in message
          > news:abbbffdf.0 309040605.ffc38 72@posting.goog le.com...[color=green]
          > > 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![/color][/color]

          Comment

          • Douglas Crockford

            #6
            Re: Some rather complex animated line/circle drawing

            > This is something I had thought of, but I was hoping to avoid flash[color=blue]
            > 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?[/color]

            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.



            Comment

            • peter seliger

              #7
              Re: Some rather complex animated line/circle drawing

              benjamin.may@bo okspan.com (Ben) wrote in message
              news:<abbbffdf. 0309040925.6d8a e7e@posting.goo gle.com>...[color=blue]
              > 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?
              >[/color]


              hi Ben,


              you may want to check this out:




              regards - peterS. - pseliger@gmx.ne t

              Comment

              • Geir Klemetsen

                #8
                Re: Some rather complex animated line/circle drawing

                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" <benjamin.may@b ookspan.com> skrev i melding
                news:abbbffdf.0 309040925.6d8ae 7e@posting.goog le.com...[color=blue]
                > 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?
                >[color=green]
                > > Use Macromedia Flash, this is exactly what it was created for!
                > >
                > > Ben <benjamin.may@b ookspan.com> wrote in message
                > > news:abbbffdf.0 309040605.ffc38 72@posting.goog le.com...[color=darkred]
                > > > 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![/color][/color][/color]


                Comment

                Working...