-
... }); topView = CompositeView( view, view.bounds.moveTo(0,0) ); } background_ { |color| view.background = color } background { ^view.background } bounds { ^view.bounds } bounds_ { |rect| rect = rect.asRect; view.bounds = rect; uview.bounds = ...
-
... ////////////////////////////////GUI Server.default.waitForBoot({ var stringColor = Color.new255(250,250,210); var play = Button().states_([["play"]]).mouseOverAction_({helpView.string = "press the play button to play a note or press ...
-
... } } makeViews { homeZone = CompositeView(zone, Rect(0,0,300, 100)) .background_(Color.grey(0.85)); homeZone.addFlowLayout; StaticText(zone, Rect(0,0, 300, 20)) .font_(Font("Monaco", 9)) .string_( "name status defs groups synths ugens peak a ...
-
... ollect{|j| Button(w, Rect(space*i, space*j, space, space)) .states_([["", Color.black, Color.gray], ["", Color.black, Color.red]]) .action_({|x| if(x.value == 1, { cells = cells ++ [cellCreator.value(i+1, j+1, cells.size)] ...
-
... | var knob; rect = Rect(left, top, size, size); knob = SGME_Knob(parent, rect) .color_([blue, black, white, nil]) .mode_(\round) .step_(step); viewSizes = viewSizes.add([knob, rect]); parameterViews.put("/filterBank/" ++ (62.5*(2**(num))).c ...
-
... // all units have to be of the same Udef ^super.newCopyArgs.init( units ); } guiColor { ^units.detect(_.respondsTo(\guiColor)) !? _.guiColor ?? { Color.clear; } } init { |inUnits, active = true| var firstDef, defs; var dkey, dval; units = i ...
-
... tener Position Controller",Rect(800, 80, 270, 120)).front; //w.view.background_(Color(0.9, 0.9, 0.9)) ; ystep = 30; xstep = 250*0.5; c = StaticText.new( w, Rect( 0, 0, xstep, ystep )).string_("<-- or a = turn left").stringColor_(Color(0, 0, ...
-
... ass, 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.objects.do{|oo| var dist= o.loc.distance(oo.lo ...
-
... ass, 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.objects.do{|oo| var dist= o.loc.distance(oo.lo ...
-
... ; button = GUI.button.new(win, Rect(90, 70, 50, 25)); button.states = [ ["off", Color.white, Color.black], ["on", Color.black, Color.white], ["standby", Color.yellow, Color.gray] ]; button.action = { ("My own button action says:" + button.v ...