-
... //integer res.add($i).add(val).add($e); } {val.isString} { //string res.add(val.size).add($:).add(val); } {val.isKindOf(Set)} { //dictionary res.add($d); val.asSortedArray.do{|a| res.add(this.encode([a[0].asString, a[1]]))}; res.add($e); } ...
-
... Window.find(name).close } }; // use NTMI.g.bounds to test for different screen sizes, // e.g. NTMI.g.bounds = Rect(0,0,1024, 768); g.bounds = g.bounds ? Window.availableBounds; NTMI.g.screenScale = { min(g.bounds.width / 1920, Window.avail ...
-
... minIndicesDict = IdentityDictionary.new; offsets.isNil.if { offsets = 0!(items.size) }; // if Sieve is passed adjust offset items.do { |item, i| item.isKindOf(Sieve).if { // set to nil with empty Sieve offsets[i] = (item.mode == \points).i ...
-
... ; parent can also be an existing window or a composite view. bounds - a desired size and position where to display a JITGui. can be nil, a point, or a rect. JITGuis know their minimum size ( minSize), and if bounds is nil, minSize is used. ...
-
... ad; }); } unregister { |bus| bus = bus.asBus; nodes.removeAt(bus.index); (nodes.size == 0).if({ this.stopAliveThread }); } *register { |bus| var watcher; watcher = this.newFrom(bus.asBus.server); watcher.register(bus); } *unregister { |bus| ...
-
... ad; }); } unregister { |bus| bus = bus.asBus; nodes.removeAt(bus.index); (nodes.size == 0).if({ this.stopAliveThread }); } *register { |bus| var watcher; watcher = this.newFrom(bus.asBus.server); watcher.register(bus); } *unregister { |bus| ...
-
... s directly. See also: SCWindow GUI SCScrollView Setting the Internal Bounds The size of the contained 'canvas' is determined by the bounds of the views which it encloses. Resize settings are thus ignored for contained views. To set it to a ...
-
... 0, keysRotation: 0) }; newKeys = object.keys.asArray.sort; overflow = (newKeys.size - numItems).max(0); keysRotation = keysRotation.clip(0, overflow); newKeys = newKeys.drop(keysRotation).keep(numItems); specsToUse = newKeys.collect { |key ...
-
... bject(world, loc, 0, RedVector2D[1, 1], mass, mass*5); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ world.objects.do{|o, i| world.objects.do{|oo, j| if(i!=j, { o.addForce(o.gravityForce(oo)); if(o.loc.distance(oo.loc)<(o.size*2) ...
-
... et( \amount ); oldTimes = path.times; equalTimes = oldTimes.blend( ((1/oldTimes.size) * oldTimes.sum)!(oldTimes.size), amt ); switch( mode, \times, { newTimes = equalTimes; }, \speeds, { deltas = path.positions[1..].collect({ |pos, i| pos.d ...