Even before talking about the technicalities of converting an image to a canvas element, check out the demo! DEMO input any image URL there and hit the convert button! P.S : It also accepts data-uri! The code : function draw() { // Get the canvas element and set the dimensions. var canvas = document.getElementById('canvas'); canvas.height = window.innerHeight; canvas.width = window.innerWidth; //
Yes, Plugin-free acess to camera/microphone with HTML5! Welcome to the post-flash revolution aka smartphone development. Flash isn't even available on Android 4.1. AFAIK Ericsson labs were first to experiment on handling devices with HTML5, now with the navigator.getUserMedia we can handle both camera and microphone devices with ease. It's important to note that this works with Chrome 18.0.1009.0
Javascript is once such beautiful language, where every thing can be minified to one line ;) But in this post I have tired to collected five (most useful for me so far) javascript functions. Shuffle array : function shuf(a){for(var j=a.length-1;j>0;j--){var k=g.call(thas,j+1);if(k!=j){var l=a[k];a[k]=a[j];a[j]=l;}}return a;} // Sample : shuf([1,2,3,4]) [2, 4, 3, 1]
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く