20.11.2017 Views

My HTML 5

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>HTML</strong>5<br />

ctx.textBaseline = 'Top';<br />

ctx.fillText ('Hello world!', 40, 100);<br />

}<br />

ctx.font<br />

= 'Bold 30px Sans-Serif';<br />

ctx.strokeText('Hello world!', 40, 50);<br />

else {<br />

alert('You need Safari or Firefox 1.5+ to see this demo.');<br />

}<br />

}<br />

<br />

<br />

<br />

<br />

<br />

<br />

The above example would produce the following result –<br />

<strong>HTML</strong>5 Canvas - Pattern and Shadow<br />

Create Pattern<br />

There is following method required to create a pattern on the canvas −<br />

Sr.No.<br />

Method and Description<br />

93

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!