-
... ool = pool; this.update(); } update { var tmp; try { if (popupMenuBuffers.items.size > 0, { tmp = popupMenuBuffers.items[popupMenuBuffers.value]; }); popupMenuBuffers.items = bufferpool.bufferPoolItemViews collect: { |view| format("% - %", ...
-
... wdistance_(mass).wchange_(0.3).wradius_(10); }.dup(n); //world,loc,vel,acc,mass,size //--loop w.draw{ world.objects.do{|o, i| var trg= o.addForceWander3D; o.addForceArrive(world.objects.wrapAt(i-1).loc); //o.addForce(world.gravity); o.updat ...
-
... ); }; range = unit.get( \range ); if( endPoint.isNil or: { unit.get( \device ).size == 0 or: { endPoint.device.find( unit.get( \device ) ).notNil; } }) { if( endPoint.isNil or: { unit.get( \port ).size == 0 or: { endPoint.name.find( unit.g ...
-
... void bad strings { specials.select ({ arg i ; (i.asSymbol == arr[0].asSymbol)}).size == 0 } { "unknown command".postln } // open a .gra file { arr[0] =="o+" } { GUI.dialog.getPaths({ arg path ; // path here is an array of paths runner.open( ...
-
... n nearestIndicesWithin vectorAngles State variables points directions numPoints size triplets view Other visualize calcTriplets resetTriplets captureState Inherited instance methods Examples Authors Classes (extension) | Math SphericalDesig ...
-
... Int8 }; // how many bytes to replace 100.do{ var pos = rrand(200, data.size - 10); data[pos] = 256.rand; // data[pos] = (data[pos] + 100.rand2).max(0).min(255); }; // write out the file outfile = File.new(outpath, "wb ...
-
... est_findTestMethods { var numTestMethods = 7; this.assert( this.findTestMethods.size == numTestMethods, "should be " + numTestMethods + " test methods"); } }
-
... if(x.value == 1, { cells = cells ++ [cellCreator.value(i+1, j+1, cells.size)]; }) }); } }; w.drawFunc = Routine{ loop{ var ncells = cells.size; clearFunc.(); // update cells cells.do{ |x| x.update ...
-
... isNil) { condition = Condition.new }; condition.test = false; count = addresses.size; cmdName = args[0].asString; if (cmdName[0] != $/) { cmdName = cmdName.insert(0, $/) }; addresses.do { arg addr; var resp; resp = OSCFunc({ |msg, time| // ...
-
... .0.rand; RedObject(world, loc, vel, 0, mass, mass*10); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ Pen.fillColor= Color.grey(0, cnt.fold(0, 500)/10000); Pen.fillRect(Rect(0, 0, width, height)); world.objects.do{|o| world.object ...