-
... ont; (startGeneration-1).do{lsys.next}; commands= ( $F: {|length, theta, noise| Pen.line(Point(0, 0), Point(0, length)); Pen.stroke; Pen.translate(0, length); {Pen.translate(0, 0-length)}; }, $G: {|length, theta, noise| Pen.translate(0, len ...
-
//port of OpenBCI_GUI fft plot widget, remake in supercollider by f.olofsson 2019 //MIT License, Copyright (c) 2018 OpenBCI, https://github.com/OpenBCI/OpenBCI_GUI/blob/master/LICENSE //adapted by khofstadter to calculate same bandwith on a ...
-
... )); synth = {arg freq=110; SinOsc.ar(freq!2)}.play; slider.drawFunc = { Pen.width = stroke_size; Pen.strokeColor = Color.white; Pen.fillColor = Color.black; Pen.addRect(Rect(0,0, slider.bounds.width,slider.bounds.height)); ...
-
... { innerRect = scaledRect.insetBy(0.5,0.5); //selected outline if( selected ) { Pen.width = 2; Pen.color = Color.grey(0.2); this.drawShape(scaledRect); Pen.stroke; }; //event is playing if( event.isPlaying ) { Pen.width = 3; Pen.color = Col ...
-
... { innerRect = scaledRect.insetBy(0.5,0.5); //selected outline if( selected ) { Pen.width = 2; Pen.color = Color.grey(0.2); this.drawShape(scaledRect); Pen.stroke; }; //event is playing if( event.isPlaying ) { Pen.width = 3; Pen.color = Col ...
-
... ) * 1.1); //curve var rhoToLength = bentRho * ((headRadius * 0.6) - halfWidth); Pen.push; Pen.translate(halfWidth, halfWidth); // background circle Pen.strokeColor = midGrey; Pen.width = fieldSize * 0.15; Pen.addOval(Rect.aboutPoint(Point(0 ...
-
... ) * 1.1); //curve var rhoToLength = bentRho * ((headRadius * 0.6) - halfWidth); Pen.push; Pen.translate(halfWidth, halfWidth); // background circle Pen.strokeColor = midGrey; Pen.width = fieldSize * 0.15; Pen.addOval(Rect.aboutPoint(Point(0 ...
-
... y| all = all.add(tmppoints.copy); tmppoints = []; v.refresh; }) .drawFunc_{|me| Pen.use { //Color.white.set; Pen.color = Color.white; Pen.fillRect(me.bounds.moveTo(0,0)); Pen.width = 1; Pen.color = Color.black; //Color.black.set; Pen.beginP ...
-
... strokeColor = Color.gray(0); var textColor = Color.gray(0.4); var extent = 40; Pen.strokeColor = Color.black; Pen.addRect(Rect(0, 0, me.bounds.width, me.bounds.height)); Pen.stroke; tServer.visibleObjs.do{|obj| Pen.use{ Pen.translate( obj. ...
-
... wBorder { var b, w, h; b = this.bounds.moveTo(0, 0); w = b.width; h = b.height; Pen.strokeColor = Color.grey(0.1, 0.3); Pen.line(0@h, 0@0); Pen.line(0@0, w@0); Pen.stroke(); Pen.strokeColor = Color.grey(0.5, 0.2); Pen.line(w@0, w@h); Pen.li ...