-
... >point, rect, destpoint, stageRect, preyArray, predatorArray; var prey; var fillcolor, strokecolor; var posNegX, posNegY; var xDistance, yDistance; var <>friction, restlessness, <>restlessSeed; var xAway, yAway; var chooseNewTargetCounter; ...
-
... 50, 50, windowWidth, windowHeight ), resizable: false ); gridWindow.background_(Color.fromHexString("#282828")); // Create grid of buttons 50.do { |i| var button, cueNumber, xPos, yPos; cueNumber = i + 1; xPos = (i % cols) * (buttonSize + m ...
-
... eight_(10).drawFunc_({ |v| var y = (v.bounds.height / 2).round + 0.5; Pen.strokeColor = Color.grey(0.5, 0.2); Pen.width = 1; Pen.line(2@y, (v.bounds.width - 2)@y); Pen.stroke(); }) } ).spacing_(1).margins_(0) ).canFocus_(true); containers.a ...
-
... ws.do{ |cell, j| Button(w, Rect(j*25, i*25, 25, 25)) .states_([ ["-", Color.black, Color.white], ["O", Color.white, Color.black], ]) .action_{ |v| a[i][j] = v.value; }; }; }; Ppar(a.collect({|c, r| Pbind( \i ...
-
... 10.5, 12.5, 15, 19, 24, 30, 38, 48]; //last freq only visible with outline var colors= [ #[0, 1, 2] -> Color.new255(159, 49, 235), //0.75, 1.5, 3 #[3, 4, 5] -> Color.new255(112, 139, 230), //4.5, 6, 7.5 #[6, 7, 8] -> Color.new255(40, 138, ...
-
... oseFunction.value(); this.closeWindow()}); } createButton{ var states = [[name, Color.white, Color.grey],[name, Color.white, Color.red]]; var action = {|butt| if(butt.value == 1, { window = showButtonFunc.value(); this.setWindowOptions(); } ...
-
... Rect (10, 10, 380, 380), d); v.selectionMode = \nextNeighbour ; v.background = Color .black; w.front; ) v.selectModes.add(\abc -> ((1..100))) v.selectionMode = \abc ; v.selectionMode = \nextNeighbour; v.selectModes.add( \nextNeighbour -> { ...
-
... rce.new(layout, 100@20) .string_("drag selection").align_(\center) .background_(Color.white).stringColor_(Color.new255(70, 130, 200)) .beginDragAction_({ |drag| this.currentClass.new(instanceList[instanceListView.value]) }); GUI.dragSource. ...
-
... rce.new(layout, 100@20) .string_("drag selection").align_(\center) .background_(Color.white).stringColor_(Color.new255(70, 130, 200)) .beginDragAction_({ |drag| this.currentClass.new(instanceList[instanceListView.value]) }); GUI.dragSource. ...
-
... penClass.fill; } drawExtruded { |penClass, border = 2, angle, inverse = false, colors| ^Pen.extrudedRect( radius, border, angle, inverse, colors ); } } /* // old asPenFunction |penClass| // ** plots badly in SwingOSC !! var rc, maxR; penCl ...