Mercurial > MadButterfly
changeset 709:920c9e6e4214
Make code clear
author | Thinker K.F. Li <thinker@branda.to> |
---|---|
date | Fri, 13 Aug 2010 17:51:21 +0800 |
parents | ac9c20db953e |
children | c93381320d6e |
files | nodejs/svg.js src/shape_path.c |
diffstat | 2 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/nodejs/svg.js Fri Aug 13 17:42:59 2010 +0800 +++ b/nodejs/svg.js Fri Aug 13 17:51:21 2010 +0800 @@ -3,6 +3,10 @@ var mbfly = require("mbfly"); var mb_rt = new mbfly.mb_rt(":0.0", 720,480); var ldr = mbfly.img_ldr_new("."); +var background = mb_rt.rect_new(0, 0, 720, 480, 0, 0); +var paint = mb_rt.paint_color_new(1, 1, 1, 1); +paint.fill(background); +mb_rt.root.add_shape(background); function MB_loadSVG(mb_rt,root,filename) { var doc = libxml.parseXmlFile(filename);