#includepath "~/Documents/;%USERPROFILE%Documents";
#include "basiljs/bundle/basil.js";
function draw(){
// code goes here -----------
var angle = 0;
var radius = 50;
var doc = b.doc();
//b.clear(doc);
b.units(b.MM);
doc.documentPreferences.properties = {
pageHeight:200,
pageWidth:200
};
b.fill(0,255,0);
b.ellipse(b.width/2,b.height/2,10,10);
while(angle < 360){
var x = b.cos(b.radians(angle)) * (radius + b.random(-10,10)) + b.width/2;
var y = b.sin(b.radians(angle)) * (radius + b.random(-10,10))+ b.height/2;
b.fill(255,0,0);
b.ellipse(x,y, 10 ,10);
angle+=b.random(0,10);
}
// end of your code ---------
}
b.go();