DevelopPHP
home gear home donate
Search Results For
in:

Libraries book

HTML Library CSS Library JavaScript Library PHP Library

Videosbook

PHP and MySQL JavaScript HTML and CSS Vector and 3D Flash Actionscript Android Dev Miscellaneous

Resourcesbook

Website Hosting Developer Q+A
<iframe width="560" height="315" src="http://www.youtube.com/embed/RV3SaSH8lw0" frameborder="0" allowfullscreen></iframe>
You can embed this video on your blog or web page by copying the video embed code above and pasting it into the source code of your page. Adjust the width and height to specify the size you would like it to display.
Thumb HTML5 Canvas Tag Tutorial Learn to Draw and Animate Using Javascript
Embed Source - http://www.youtube.com/watch?v=RV3SaSH8lw0
Publish Date - Oct 15, 2011     Author - Adam Khoury
HTML5 Canvas Tag Tutorial Learn to Draw and Animate Using Javascript
In this video lesson series you can learn all about how to draw into the HTML5 canvas tag using Javascript. The canvas tag is aptly named. It supplies you with a means of drawing things through script and it renders in a browser. Things can be stationary or animated inside of a canvas tag. We can use Javascript to draw what we want in the canvas so in this series we will demonstrate some of the drawing methods one can use. We will also demonstrate how to animate things inside of the canvas tag using Javascript.
Lesson Code
<html>
<head>
<script type="application/javascript" language="javascript">
window.onload = draw; // Execute draw function when DOM is ready
function draw() {
     // Assign our canvas element to a variable 
    var canvas = document.getElementById("canvas1");
    // Create the HTML5 context object to enable draw methods
    var ctx = canvas.getContext("2d"); 
    //fillStyle (r, g, b, alpha);
    ctx.fillStyle = "rgba(0,200,0,1)";
    //fillRect (X, Y, width, height); 
    ctx.fillRect (36, 10, 22, 22);
}
</script>
</head>
<body>
<canvas id="canvas1" width="400" height="300"></canvas>
</body>  
</html> 

Home   •   Terms of Use   •   T-Shirts   •   RSS   •   Testimonials   •   Subscribe   •   Classroom Chalkboard   •   Developer Q+A   •   Donate   •   Top ↑
Popular In PHP / MySQL E-Commerce Store Production
Social Network Website Building
Image Upload / Photo Processing
CMS Software Programming
Mass Email Systems
Magic XML Data
Search Programming
Popular In JavaScript JSON Programming
Ajax Programming
Animating Elements
WYSIWYG Programming
Date/Time Programming
DOM Scripting
Object Reference
Popular In HTML Canvas Element
New Form Elements
Audio Element
Video Element
Drag and Drop
Event Handling
Element Grouping
Popular In CSS Custom Font Embedding
Dynamic Fit Backgrounds
Theatre Mode
Box Overlays
CSS Level 1 Properties
CSS Level 2 Properties
CSS Level 3 Properties
DevelopPHP.com is a growing educational system packed with video and written material that you can access 24/7 100% free. The focus here in 2013 is spread between five technologies: HTML, CSS, JavaScript, PHP and MySQL. Learn programming theory, database interaction, web design, animation, graphics editing, vector art, 3D modeling, and much more. The educational experience here is a hybrid one offering both high quality video tutorials and code libraries that grow more robust every day. The code libraries are being assembled so that developers can discover all of the building blocks of their favorite languages. The libraries coupled with high quality video tutorials will take you deep down the rabbit hole very quickly. You can also ask questions and get free advice at WebIntersect.com.
HTML5