-
... == ~vhighest) && (h == ~hhighest), { //highest value will be colored red Pen.color=Color.red; Pen.addRect(Rect(h*z, v*z, z, z)); Pen.fill; }); if (( v == ~vlowest) && (h == ~hlowest), { //lowest value will be c ...
-
... e changes u.background_(Color.black); u.animate_(true); u.drawFunc = { |u| Pen.strokeColor = Color.white; Pen.moveTo( Point(0, a[0]) ); a[1..].do{ |value, index| Pen.lineTo( Point(index+1, value) ) }; Pen.stroke; }; // call o ...
-
... ue); q.drawFunc_({ ~allPoints.do({ |pos, index| if ((index > 0), { Pen.fillColor = "000000"; Pen.line( Point(~allPoints[index-1][0], ~allPoints[index-1][1]), Point(pos[0], pos[1])); Pen.stroke; }); }); }); ) / ...
-
... t status of a bus, and also setting a bus from the GUI. The circle turns red depending on the oscillator value, and the oscillator frequency and amplitude are controlled by the x, y position of the circle in the window. // needs shared mem ...
-
... resh = true; uview.drawFunc = { |uview| xSize.do { |x| ySize.do { |y| Pen.fillColor = if(~arr[x][y]>0, {Color.black},{Color.white}); Pen.fillRect(Rect(x * scale,y * scale, scale, scale)); Pen.fill; } } }; // TODO: ...
-
... lastVal = nil; }) .drawFunc_({ |me| Pen.moveTo(0@(me.bounds.height * (wave[0] + 1) / 2)); for(1, size - 1, { |i, a| Pen.lineTo((me.bounds.width * i / size)@(me.bounds ...
-
... nds); u.background=Color.white; u.clearOnRefresh_(false); u.drawFunc={ Pen.fillColor = Color.black; Pen.addRect(Rect(p1, p2, 1, 1)); Pen.fill; }; r=Routine({ forBy(0, 4, 4/windowWidth, {arg l; //l (for lambda, the fertil ...
-
... same amount of energy. If one of the parents hasn't enough energy, the other compensates, if possible. In that way, death of a child is prevented as much as possible. ====================================================================== ...
-
... axfreq)-log(minfreq))*(h+(maxWidth*v))/(maxWidth*maxHeight) Furthermore freq depends on value, which is either 0 or 1. freq=freq+(freq*value) or freq=(1+value)*freq Combining those 2: freq=(exp(log(maxfreq)-((log(maxfreq)-log(minfreq)) ...
-
... .string_(outputs) }; view.drawFunc = { snds.do { |which, i| Pen.strokeColor = Color.black; Pen.moveTo(0@0); Pen.lineTo(0@h); Pen.translate(oW, 0); Pen.stroke; fltTxts[i].stringColor_( if(flt ...