node-five:为 Node.js 添加 HTML5 APIs

openkk 12年前

Node-Five 为 Node.js 带来 HTML5 APIs,主要提供底层的图形和音频支持,高层的包括 HTML/CSS 布局引擎。基于 Node-Qt 编写。

node-five:为 Node.js 添加 HTML5 APIs

示例代码:

var five = require('path-to-node-five-dir'),      window = new five.Window(300, 150),      canvas = new five.Canvas(window),      ctx = canvas.getContext('2d');    ctx.fillStyle = 'black';  ctx.fillText('hello node, hello qt', 20, 20);

项目主页:http://www.open-open.com/lib/view/home/1334024460171