Skip to main content

HTML5 Smiley Face Using Canvas

HTML5 example to create Smiley Face Using Canvas,HTML5 Canvas tutorial, Smiley Face Using Canvas, HTML5 example Smiley Face Using Canvas with source code, step by step tutorial  to create Smiley Face,

html5 example source code to draw smiley Face using canvas

html5 example source code to draw smiley Face using canvas Download









  

HTML Smiley Face Using Canvas Complete Source Code is Follow









<! DOCTYPE html>
<html lang ="en">
<head>
<style>
#myCanvas { background-color:#DEB887;
                       border:3px solid black;
         width:900px;
         height:600px;
                     }
</style>
</head>
<body>
    <canvas id="myCanvas">
        browser not support
   </canvas>
     <script>

          var c=document.getElementById("myCanvas");


          var ctx =c.getContext("2d");

ctx.fillStyle='#C71585';
ctx.font='Arial 50px';
ctx.fillText('keep smiling . . .',200,100);
ctx.strokeText('keep smiling . . .',300,400);

//For Yellow Circles

     
     ctx.beginPath();
            ctx.arc(40,33,15,0,2*Math.PI);
            ctx.fillStyle="yellow";
            ctx.fill();
            ctx.stroke();
       ctx.closePath();

       ctx.beginPath();
            ctx.arc(55,25,15,0,2*Math.PI);
            ctx.fillStyle="yellow";
            ctx.fill();
            ctx.stroke();
       ctx.closePath();


       ctx.beginPath();
            ctx.arc(70,20,14,0,2*Math.PI);
            ctx.fillStyle="yellow";
            ctx.fill();
            ctx.stroke();
       ctx.closePath();


       ctx.beginPath();
            ctx.arc(85,20,14,0,2*Math.PI);
            ctx.fillStyle="yellow";
            ctx.fill();
            ctx.stroke();
       ctx.closePath();


       ctx.beginPath();
            ctx.arc(100,25,14,0,2*Math.PI);
            ctx.fillStyle="yellow";
            ctx.fill();
            ctx.stroke();
       ctx.closePath();


       ctx.beginPath();
            ctx.arc(115,35,14,0,2*Math.PI);
            ctx.fillStyle="yellow";
            ctx.fill();
            ctx.stroke();
       ctx.closePath();

       ctx.beginPath();
            ctx.arc(125,50,14,0,2*Math.PI);
            ctx.fillStyle="yellow";
            ctx.fill();
            ctx.stroke();
       ctx.closePath();

       ctx.beginPath();
            ctx.arc(130,65,14,0,2*Math.PI);
            ctx.fillStyle="yellow";
            ctx.fill();
            ctx.stroke();
       ctx.closePath();

       ctx.beginPath();
            ctx.arc(130,80,14,0,2*Math.PI);
            ctx.fillStyle="yellow";
            ctx.fill();
            ctx.stroke();
       ctx.closePath();

       ctx.beginPath();
            ctx.arc(125,95,14,0,2*Math.PI);
            ctx.fillStyle="yellow";
            ctx.fill();
            ctx.stroke();
       ctx.closePath();

       ctx.beginPath();
            ctx.arc(120,110,14,0,2*Math.PI);
            ctx.fillStyle="yellow";
            ctx.fill();
            ctx.stroke();
       ctx.closePath();

       ctx.beginPath();
            ctx.arc(110,120,14,0,2*Math.PI);
            ctx.fillStyle="yellow";
            ctx.fill();
            ctx.stroke();
       ctx.closePath();

       ctx.beginPath();
            ctx.arc(100,130,14,0,2*Math.PI);
            ctx.fillStyle="yellow";
            ctx.fill();
            ctx.stroke();
       ctx.closePath();

       ctx.beginPath();
            ctx.arc(85,135,14,0,2*Math.PI);
            ctx.fillStyle="yellow";
            ctx.fill();
            ctx.stroke();
       ctx.closePath();

       ctx.beginPath();
            ctx.arc(70,135,14,0,2*Math.PI);
            ctx.fillStyle="yellow";
            ctx.fill();
            ctx.stroke();
       ctx.closePath();

       ctx.beginPath();
            ctx.arc(55,130,14,0,2*Math.PI);
            ctx.fillStyle="yellow";
            ctx.fill();
            ctx.stroke();
       ctx.closePath();

      ctx.beginPath();
            ctx.arc(40,125,14,0,2*Math.PI);
            ctx.fillStyle="yellow";
            ctx.fill();
            ctx.stroke();
       ctx.closePath();

      ctx.beginPath();
            ctx.arc(30,115,14,0,2*Math.PI);
            ctx.fillStyle="yellow";
            ctx.fill();
            ctx.stroke();
       ctx.closePath();

      ctx.beginPath();
            ctx.arc(25,100,14,0,2*Math.PI);
            ctx.fillStyle="yellow";
            ctx.fill();
            ctx.stroke();
       ctx.closePath();

       ctx.beginPath();
            ctx.arc(20,85,14,0,2*Math.PI);
            ctx.fillStyle="yellow";
            ctx.fill();
            ctx.stroke();
        ctx.closePath();

        ctx.beginPath();
            ctx.arc(20,70,14,0,2*Math.PI);
            ctx.fillStyle="yellow";
            ctx.fill();
            ctx.stroke();
       ctx.closePath();

       ctx.beginPath();
            ctx.arc(25,50,14,0,2*Math.PI);
            ctx.fillStyle="yellow";
            ctx.fill();
            ctx.stroke();
       ctx.closePath();





//For Inner Circle

        ctx.beginPath();
            ctx.arc(75,75,50,0,2*Math.PI);
            ctx.fillStyle="blue";
            ctx.fill();
            ctx.stroke();
       ctx.closePath();

//For Second Inner Circle

       ctx.beginPath();
            ctx.arc(75,75,35,0,2*Math.PI);
            ctx.fillStyle="orange";
            ctx.fill();
            ctx.stroke();
        ctx.closePath();

// For First Eye

      ctx.beginPath();
        ctx.arc(60,65,5,0,2*Math.PI);
        ctx.fillStyle="black";
        ctx.fill();
        ctx.stroke();
      ctx.closePath();

// For First White Part

     ctx.beginPath();
        ctx.arc(60,65,2,0,2*Math.PI);
        ctx.fillStyle="white";
        ctx.fill();
        ctx.stroke();
      ctx.closePath();

//For Second Eye

     ctx.beginPath();  
        ctx.arc(90,65,5,0,2*Math.PI);
        ctx.fillStyle="black";
        ctx.fill();
        ctx.stroke();
     ctx.closePath();

//For Second White Part

     ctx.beginPath();
        ctx.arc(90,65,2,0,2*Math.PI);
        ctx.fillStyle="white";
        ctx.fill();
        ctx.stroke();
      ctx.closePath();


     ctx.beginPath();
        ctx.arcTo(75,110,105,70,20);
        ctx.fillStyle="red";
        ctx.fill();
        ctx.stroke();
     ctx.closePath();
        

 // For Lips
           
         ctx.strokestyle="red";
         ctx.fillStyle="red";
        

         ctx.ShadowColor="white";
         ctx.ShadowBlur="30";
          ctx.fill();
         ctx.stroke();


        </script>
Shaikh Ribana MCA II FS
         </body>
           </html>






   
        browser not support
  

    

        
          



Download Example With source code

Assinement By Shaikh Ribana MCA II FS ( Imscdr, Ahmednagar)
HTML5 Css3 Session 2015

HTML5 example to create Smiley Face Using Canvas,HTML5 Canvas tutorial, Smiley Face Using Canvas, HTML5 example Smiley Face Using Canvas with source code, step by step tutorial  to create Smiley Face,

html5 example source code to draw smiley Face using canvas

html5 example source code to draw smiley Face using canvas Download

Download Canvas Example

 

 

Popular posts from this blog

Design Marathi website Using HTML CSS

          Design Marathi website Using HTML CSS,मराठी वेबसाईट designing HTML ,step by step Marathi website, how to display Marathi content in your website, Design Marathi website step by step , Marathi website using HTML and CSS, How To Design website using different Languages  Design Marathi website Using HTML CSS, Design Marathi website Using PHP, Design Marathi website Using JSP, Design Marathi website Using ASP, Design Marathi website Using C# Dot Net, Design Marathi website Using Vb Dot Net, मराठी वेबसाईट मराठी वेबसाईट बनवन अगदी सोप आहे मी या ब्लॉग मध्ये दिलेल्या स्टेप्स वापरून तुम्ही काही क्षणात मराठी वेब पेज तयार करू शकता  Design Marathi website Using HTML CSS,मराठी वेबसाईट designing HTML ,step by step Marathi website, how to display Marathi content in your website, Design Marathi website step by step , Marathi website using HTML and CSS, How To Design website using different Languages    Design Marathi website U

Create HTML CSS javascript News Box , HTML CSS News Slider Download

Create HTML CSS javascript News Box , HTML CSS News Slider Download, HTML News Box For Your Website Free Download, java script news box For your Website, HTML CSS News Box Tutorial, HTML CSS News Box Example With Source code, HTML CSS Link Slider, HTML Slider Menu ,java script news box For your Website, HTML News box source Code example, News Slider   Here Is Example Of News Box slider for Your Website you can use it wiht PHP, ASP, ASP.NET, JSP,HTML 1.HTML Code  Save this code as index.HTML <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title itemprop="name"></TITLE> <meta name="description" itemprop="description" content=""/> <META NAME="Keywords" CONTENT=""/>  <meta name=&quo

rowspan and colspan in html table

html table rowspan colspan tutoral, rowspan and colspan in html table, html table , html table video tutorial , html table with colspan and rowspan  html table rowspan colspan tutoral, rowspan and colspan in html table, html table , html table video tutorial , html table with colspan and rowspan  saving details Month Savings Savings for holiday! January $100 $50 February $80 click here to download html table colspan rowspan tutorial