Тег ‘MozOrientation’:

Use Matrix of rotate +MozOrientation

Previous post is simple example of usage MozOrientation. But now i use Matrix of rotate and i have nice animation.
You can read many information about Matrix of rotate here. These methods are used in game development, make animations and many others.
var context = drawingCanvas.getContext(’2d’);
 
var xc = 75;
var yc = 75;
var xi = 0;
var yi = [...]

Теги: , , , , , , ,

Комментарии отсутствуют

JavaScript examples for MozOrientation of FireFox 3.6

Today i present new feature of FireFox 3.6 – MozOrientation
With Canvas and MozOrientaion you will get nice web site!
Please look on my icons of Feed and Twitter! :)

My twitter source:
function init() {
additional_load(null);
 window.addEventListener("MozOrientation", additional_load, true);
}
 
function additional_load(o) {
var drawingCanvasTwitter = document.getElementById(’myDrawingTwetter’);
    // Check the element is in the DOM and the browser supports canvas
    [...]

Теги: , ,

Комментарии отсутствуют