Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8031825
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 5, 20262026-06-05T01:13:21+00:00 2026-06-05T01:13:21+00:00

I have a canvas in HTML5 and am making a networked painting application. However,

  • 0

I have a canvas in HTML5 and am making a networked painting application. However, when other clients receive the drawing code, it is not drawn on to the canvas until they mouse over it.

Is there any way to fix it? I’d like the drawing to appear and update to other clients without them having to have their mouse cursor over the canvas.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-05T01:13:23+00:00Added an answer on June 5, 2026 at 1:13 am

    From https://developer.mozilla.org/en/Drawing_Graphics_with_Canvas

    <html>
    
    
    <head>
      <script type="application/javascript">
    var drawHandle;
    function draw() {
      return drawHandle = setTimeout(function(){
      var canvas = document.getElementById("canvas");
      var ctx = canvas.getContext("2d");
    
      ctx.fillStyle = "red";
    
      ctx.beginPath();
      ctx.moveTo(30, 30);
      ctx.lineTo(150, 150);
      // was: ctx.quadraticCurveTo(60, 70, 70, 150); which is wrong.
      ctx.bezierCurveTo(60, 70, 60, 70, 70, 150); // <- this is right formula for the image on the right ->
      ctx.lineTo(30, 30);
      ctx.fill();
    }
    }, 1000);//Where 1000 is the timeout in milliseconds
       </script>
     </head>
     <body onload="draw()">
       <canvas id="canvas" width="300" height="300"></canvas>
     </body>
    </html>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a drawing application using html5 canvas. When the user is drawing and
I have an html5 canvas drawing application similar to this http://jsfiddle.net/rnNFB/1/ , but using
Making a painting app using HTML5 and Canvas. I think I want to have
How to do in HTML5 canvas Image animating? I am have this code now:
On my application, I have a canvas which CSS size (CSS, not html) updates
I have a HTML5 canvas on which I have drawn several shapes. What I
I have a doodle application that saves an html5 canvas to an image in
I'm developing a painter program using HTML5 canvas. I have created a drawing tool
I have an HTML5 canvas image where I've drawn some points and I want
I have HTML5 canvas where the user has created an image. This is for

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.