Category Archives: html5

The shift of Mobile and Browsers

Interesting day, 4:th of April 2013. 

Google breaks with Webkit and starts a competitor rendering engine Blink and the main reason is that they don’t want to be controlled by Apple what goes into the engine or not. Opera also annouced they will start using this engine. I think this started when Apple did throw out Google from IOS 6, now they throw out Apple from a free ride to browser rendering.

Checkout the developer Q&A

Another big news today was the that Firefox and Samsung is developing their own nextgen rendering engine Servo. Samsung announced earlier that they are going to switch focus from Android to their own smartphone OS Bada, I think that will be difficult for Samsung, look at HP and Web OS.

Facebook also announced an Android facebook takeover application that will take over your phone with Home. It will replace homescreen, dialer and messaging app in your android phone with Facebook Home.

>HTML 5 Canvas and .toDataURL

>the Canvas object in HTML 5 contains alot of great things

one of the interesting things is that it has a implemented method to get the data inside the canvas as a base64 encoded string.
So if you would
var img1=new Image();
img1.src=”Image1.jpeg”;
var img2=new Image();
img2.src=”Image2.jpeg”;
var canvas=document.createElement(‘canvas’);
canvas.width=300;
canvas.height=300;
var canvas2d=canvas.getContext(“2d”);
canvas2d.drawImage(img1,0,0);
canvas2d.drawImage(img2,100,100);
var data=canvas.toDataURL();

Data will now contain a png image with both the images.
Encoded using base64 easy to send using ajax or store in a field.
You can draw images, plot dots, draw lines, boxes.

There is some online painting sites that already is using this.
http://mugtug.com/darkroom/
http://dev.opera.com/articles/view/html5-canvas-painting/
http://mrdoob.com/projects/harmony/


Enhanced by Zemanta

>HTML 5 Smokescreen kills flash totally

>The demo of the new soon to become opensource JS library SmokeScreen.

Displays flash with out flash installed on your computer.
Check it out it’s very cool, now all the major browsers just have to support html5
and we can skip flash. And the installation is so simple just check out this.
http://smokescreen.us/
Reblog this post [with Zemanta]