-
... + ((t/250).sin.abs * 5); ~sliders.do({ |i,n| i.background = 0.5.coin.if({ Color.rand }, { Color((t>>n).cos/2+0.5,(n&t).cos/2+0.5,(t|n).cos/2+0.5) }); i.knobColor = Color([0,1].choose,[0,1].choose,[0,1].choose); i.setXY( (n ...
-
... I.swing; w= RedJWindow.new.front; w.resize(RedVector2D[200, 200]) w.background= Color.red w.draw{Pen.fillColor= Color.black; Pen.fillOval(Rect.aboutPoint(175.rand@175.rand, 50, 50))} w.play //start drawing w.stop ( //mouse control w.draw{ v ...
-
... t, Rect(0, 0, width1 + width2 + 10, height), margin: 2@2) .background_(backgr ? Color.grey); controlView = FixedWidthFlowView.new(mainView, Rect(0, 0, width1, height), margin: 2@2) .background_(controlBackgr ? Color.grey); processView = Fix ...
-
... preview or render is complete. *preview(list, start, end, rate, width, height, color, sort, frameMode, onCompletion) - runs the score in realtime. width and height default to 500. color defaults to Color.black. sort defaults to true. start ...
-
... gins_(2) ) ); // display all runButton.states_([["stopped"], ["running", Color.black, Color(0.7, 1, 0.7)]]) .action_({ |view| if(view.value > 0) { // indexView.enabled = false; [indexRange, indexLNum, indexRNum].do(_.enabled ...
-
... t, Rect(0, 0, width1 + width2 + 10, height), margin: 2@2) .background_(backgr ? Color.grey); controlView = FixedWidthFlowView.new(mainView, Rect(0, 0, width1, height), margin: 2@2) .background_(controlBackgr ? Color.grey); processView = Fix ...
-
... ///// PREPARATION /////// pscale = vw.pixelScale.x; Pen.width = pscale / 2; Pen.color = Color.gray.alpha_(0.25); [0.25,0.5,0.75].do({ |item| Pen.line( 0@(bounds.height * item), (bounds.width)@(bounds.height * item) ); }); Pen.stroke; Pen.wi ...
-
... var comp, makeEditor; comp = CompositeView(w, Rect(4,4, 98, 700)) .background_(Color.gray(0.9)); comp .decorator_(FlowLayout(comp.bounds, gap * 2, gap * 2)); name = inName; Button(comp, Rect(2, 2, 90, unitHeight)) .states_([[name.asString] ...
-
... p a GMStyle that will define how widgets are drawn : var style = GMStyle() .mainColor_(Color(0.75, 0.75, 0.0)) .selectedColor_(Color(0.75, 0.75, 0.0)) .backColor_(Color(0.0, 0.75, 0.75)) .backgroundColor_(Color(0.0, 0.0, 0.0)) .borderColor_ ...
-
//multiple objects within a world with gravity force //color and size depends on object's mass ( var width= 300, height= 300, w, wgrav, world, n= 80; //--world w= RedWindow("vector test", Rect(128, 64, width, height)).front; wgrav= RedVecto ...