Lively Kernel canvas
//revertafiletoarevisionfile='happyNewYear.xhtml';dir=newFileDirectory(URL.source);content=dir.fileContent(file,10624);dir.writeFileNamed(file,content)4
//listrevisionsofafilefile='happyNewYear.xhtml';url=URL.source.getDirectory();dir=newFileDirectory(url);res=newSVNResource(url.toString(),Record.newPlainInstance({URL:url+file,Metadata:null,HeadRevision:null}));res.fetchMetadata(true,null);timestamps=res.getMetadata();revs=timestamps.collect(function(ea){returnea.toString().match(/.*Revision(.*)/)[1]});8
10001.6210444274296636Wikicontroltrue
-0.141311238957455430.1
10024.206019441011810.10.1
// this script is evaluated on world load
Morph.addMethods({
tatuetata: function() {
var opacity = this.shape.getFillOpacity();
if (opacity >= 1) this.addOpacity = -0.1;
else if (opacity <= 0) this.addOpacity = 0.1;
this.setFillOpacity(opacity + this.addOpacity);
this.submorphs.forEach(function(ea) { ea. tatuetata() });
}
});
null3