-
... index + 1; }; view.drawFunc = { var removeThese = Array.new(); if(clear == 1, { Pen.fillColor = color; Pen.fillRect(win.view.bounds); }, { clear = 1; }); queue.do({ arg it, i; if(it[0] == (it[1]-1), { removeThese = removeThese.add(i.asInteg ...
-
... m(w.mouse/([width, height])-0.5); //--render sys.do{|o| //iterate all particles Pen.fillColor= Color.grey(o.age/50, 1); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); w.onClose= {synths.do{|x| x.free}}; } ...
-
... -1; synths[i].set(\amp, amp, \freq, freq, \pan, pan); }; sys.update; //--render Pen.fillColor= Color.grey(1, 0.4); sys.do{|o, i| Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); w.onClose= {synths.do{|x| x. ...
-
ColPenGUI { // wslib 2007 - for use with ColPen to make { ... }.asGUICode possible classvar <inited = false; classvar <>redirectScheme; *initClass { |mustInitGUI = true| // StartUp.defer({ inited = true; mustInitGUI.if({ Class.initClassTree ...
-
... nRect.width, wd ), font, color ); }); } { wd = inRect.asRect.width / this.size; Pen.font = font; Pen.color = color; this.do({ |char,i| Pen.stringCenteredIn( char.asString, Rect( inRect.left + (i * wd), inRect.top, wd, inRect.height )); }); ...
-
... ,0.4).set;\ \ n = h / gridStep;\ (n-1).do(\{ \cf3 |i|\cf0 i=i+1*gridStep;\ \cf3 Pen\cf0 .moveTo(0@i).lineTo(w@i).stroke;\ \});\ \ n = w / gridStep;\ (n-1).do(\{ \cf3 |i|\cf0 i=i+1*gridStep;\ \cf3 Pen\cf0 .moveTo(i@0).lineTo(i@h).stroke;\ \} ...
-
... ices are represented by Buttons, and edge labels by StaticText // The a drawing Pen routine draws edges // Substantially it is a reimplementation of level I of Graphista // Should be easy to add trajectory (via MouseXY) and hearing circle / ...
-
... _(5) .gridResolution_(soundfile.hoptime) .gridOn_(false) .soundfile_(SoundFile.openRead(filename)).read(closeFile: true).refresh .background_(Color(1,1,1)) .background_(colorSet1[0]) ; //*** Draw index lines *** drw = UserView(win, sfw.boun ...
-
... // light blue point = this.toScreenCoord(size, fromRect); // points color.set; Pen.addArc( point, 3, 0, 2pi ); Pen.cross( point, 6, '+' ); Pen.stroke; ^point; } plotSmooth { |speakerConf = \default, toFront = true, event| var window; var p ...
-
... de progreso .drawFunc_({ |view| var progress = view.getProperty(\progress, 0); Pen.color = Color.blue; Pen.fillRect(Rect(0, 0, view.bounds.width * progress, view.bounds.height)); }); progressBarView.setProperty(\progress, actualProgress); ...