The other day I was trying to revive our Facebook groups “SuperColider Slovenija” and had some ideas to change the cover image. So I went and wrote everything in SuperCollider itself. Indeed, using music-making programming environment for (rudimentary) visuals. Below is the code and end result.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
( var w; w = Window("SCSlo", Rect(128, 64, 840, 360)); w.view.background_(Color(1,0.5,0)); w.drawFunc = { |v| Pen.strokeColor = Color.black; Pen.width_(6).joinStyle_(1); Pen.translate(300,100); Pen.scale(3,3); Pen.moveTo(0@40); Pen.lineTo(15@15); Pen.lineTo(25@30); Pen.lineTo(40@0); Pen.lineTo(55@30); Pen.lineTo(65@15); Pen.lineTo(80@40); Pen.stroke; }; w.front; a = StaticText(w, Rect(326, 80, 50, 50)); a.stringColor = "black"; a.font = Font("Droid Sans Mono", 60); a.string = "S"; b = StaticText(w, Rect(475, 80, 50, 50)); b.stringColor = "black"; b.font = Font("Droid Sans Mono", 60); b.string = "C"; v = View.new(w, Rect().width_(300).height_(30).center_(420@166)); v.background_(Color(0,0.4,0,0.6)); c = StaticText(v, Rect().width_(300).height_(30).center_(150@15)); c.align = \center; c.stringColor = Color(1,1,1); c.font = Font("Droid Sans Mono", 20); c.string = "SuperCollider Slovenija"; ) |