-
... verride logic so this is not a toggle button createButton{ var states = [[name, Color.white, Color.grey]]; var action = {|butt| showButtonFunc.value()}; button = Button() .states_(states) .action_(action); } }
-
... ers, keycode] == [ 262401, 16 ], { graphParser.parse(this.getLine) }) }) .stringColor_(Color(0.9,0.9,0.9)) .background_(Color(0, 0, 0.3, anAlpha)) ; } }
-
... x1= x2-y2+x0; iterations= iterations+1; }); ^iterations; } plot {|zoom, bounds, colorFunc, background, interpolation= \smooth| var z= zoom ?? {Rect(-2.5, -1, 3.5, 2)}; var b= bounds ?? {Rect(100, 200, width, height)}; var win= Window(this.c ...
-
... iew(w, w.bounds.insetBy(4, 40)) .resize_(5) .font_(Font("Courier", 12) ) .hiliteColor_(Color.blue(0.2, 0.2) ) ); }; ~listRect = Rect (0, 0, 200, 200); }; con.noSettings; con.name_("MIDI Monitor"); control.items = [""]; updateFunc = { | sele ...
-
... iew(win, Rect(0, 0, width, height)); var physics, p, anchor, s; usr.background= Color.white; physics= TraerParticleSystem(gy:1, drag:0.05); p= physics.makeParticle(1, width/2, height/2, 0); anchor= physics.makeParticle(1, width/2, height/2, ...
-
... iew(win, Rect(0, 0, width, height)); var physics, p, anchor, s; usr.background= Color.white; physics= TraerParticleSystem(gy:1, drag:0.05); p= physics.makeParticle(1, width/2, height/2, 0); anchor= physics.makeParticle(1, width/2, height/2, ...
-
... ounds.width * 0.2, window.bounds.height * 0.07)) .states_([ ["Start recording", Color.black, Color(0.3, 0.7, 0.3, 0.3)], ["Stop recording", Color.black, Color(0.7, 0.3, 0.3, 0.3)]]) .action_({arg me; var actions; actions = [ {this.stop}, {t ...
-
... es=true, <>lockEdges = false, // disables edge following <>dragTabs=true, <labelColors, // default array of Colors. can be overriden by individual ta <unfocusedColors, // default array of Colors. can be overriden by individual tabs <backgro ...
-
... \resize , \background , \minWidth , \maxWidth , \minHeight , \maxHeight , \knobColor , \step , \thumbSize , \focusColor ] pixelStep Returns the reciprocal of: the slider width or height (depending on orientation) minus the thumbSize defaul ...
-
... RedVector[0, 0]); //hidden attractor //--loop w.draw{ att.loc= w.mouse; Pen.fillColor= Color.grey(1, 0.5); Pen.strokeColor= Color.white; world.objects.do{|o, i| var xy; var trg= o.addForceWander1D; o.addForceArrive(att.loc[0]); o.update; wo ...