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 1048089
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T16:24:08+00:00 2026-05-16T16:24:08+00:00

I heard that drawing abilities will be supported by Web 2.0 Tried to find

  • 0

I heard that drawing abilities will be supported by Web 2.0

Tried to find something in Internet about, nothing really clear. Could you please point me into something that allows (or will allow in future) to draw in HTML?

For example: I want to have ability draw few hexagons in different color on the page.

Thanks.

P.S. Sorry if question is a little bit “stupid”, but I can’t make it more smart.

  • 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-05-16T16:24:08+00:00Added an answer on May 16, 2026 at 4:24 pm

    A quick exemple of what you want to do:

    <html>
      <head>
        <title>Hexagon canvas tutorial</title>
        <script type="text/javascript">
          function draw(){
            //first let's get canvas HTML Element to draw something on it
            var canvas = document.getElementById('tutorial');
            //then let's see if the browser supports canvas element
            if (canvas.getContext){
              var ctx = canvas.getContext('2d');
    
                //Pick Hexagon color, this one will be blue
                ctx.fillStyle = "rgb(0, 0, 255)";
                //let's start a path
                ctx.beginPath();
                //move cursor to position x=10 and y=60, and move it around to create an hexagon
                ctx.moveTo(10,60);
                ctx.lineTo(40,100);
                ctx.lineTo(80,100);
                ctx.lineTo(110,60);
                ctx.lineTo(80,20);
                ctx.lineTo(40,20);
                //fill it and you got your first Hexagon
                ctx.fill();
    
                //This one will be green, but we will draw it like the first one
                ctx.fillStyle = "rgb(0, 255, 0)";
                ctx.beginPath();
                ctx.moveTo(110,160);
                ctx.lineTo(140,200);
                ctx.lineTo(180,200);
                ctx.lineTo(210,160);
                ctx.lineTo(180,120);
                ctx.lineTo(140,120);
                ctx.fill();
            }
          }
        </script>
        <style type="text/css">
          canvas { border: 1px solid black; }
        </style>
      </head>
      <body onload="draw();">
        <canvas id="tutorial" 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 heard that JNBridge will translate C# code to native Java code.( I haven't
I want to draw a graph that will be something like this: alt text
I have heard that fewer drawing calls = faster The implied lesson is to
I don't really understand about OpenGL ES yet. I've only learn about drawing triangles
I am looking for some Drawing class (Package) that will enable me in a
When I heard about Google Apps Script, I thought that, among other things, it
I've just started coding video games and I've heard that doing all your drawing
I heard that it's possible to identify the brand of a device (or at
I heard that having @foreach inside of a view is a no-no. Meaning, the
I heard that Google can track all the static pages in a website and

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.