828
|
1 // -*- indent-tabs-mode: t; tab-width: 8; c-basic-offset: 4; -*-
|
|
2 // vim: sw=4:ts=8:sts=4
|
|
3 var svg = require("./svg");
|
|
4 var mbapp = require("./mbapp");
|
|
5 var sys=require("sys");
|
|
6 var animate=require("./animate");
|
|
7 var fs = require("fs");
|
|
8
|
|
9 app = new mbapp.app();
|
|
10
|
|
11 coord = app.mb_rt.coord_new(app.mb_rt.root);
|
|
12 data=mbapp.ldr.load("sample.png");
|
|
13 paint = app.mb_rt.paint_image_new(data);
|
|
14 img = app.mb_rt.image_new(10,10,50,50);
|
|
15 paint.fill(img);
|
|
16 coord.opacity = 0.9;
|
|
17 coord.add_shape(img);
|
|
18
|
|
19 app.loop();
|