// changed at Tue Dec 16 2014 18:42:43 GMT+0100 (CET) by bert
this.addScript(function setup(columnsrowscellExt) {
    // this.setup(20, 20, pt(30, 30))
    this.removeAllMorphs();
    for (var y = 0; y < rows; y++)
        for (var x = 0; x < columns; x++) {
            var cell = new lively.morphic.Text();
            cell.setTextString(x+y);
            cell.applyStyle({
                fill: Global.Color.random(),
                borderColor: Global.Color.black,
                borderWidth: 1,
                textColor: Global.Color.black,
                clipMode: "hidden",
            });
            this.addMorph(cell);
            cell.setPosition(pt(x, y).scaleByPt(cellExt));
            cell.setExtent(cellExt);
        }
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
<lively.morphic.Box#73CD8... - Table1>
Tag:
run
save
Tests

-- ALL --
onstore
setup
showData
Scripts
-
+
-
Connections
+
-- ALL --
all
ObjectEditor -- Table1>>setup
X

Menu
World successfully saved