Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (764) Code (64) Doc (175) Help (16) Quark (509) SCDoc ↗ Forum ↗ Google ↗
  1. Pen Doc

    Pen: Filter: Description Class methods Construct path moveTo lineTo line curveTo quadCurveTo arcTo addArc addWedge addAnnularWedge addRect addOval Draw the path stroke fill draw fillStroke Construct and draw strokeRect fillRect strokeOval f ...

  2. 072-lsystem_grow_discrete Doc

    ... 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 ...

  3. 178-springs_coupled Doc

    ... t.addFirst([~leftObj.loc[0], ~rightObj.loc[0]]); //store x positions //--render Pen.strokeColor= Color.red; Pen.line(~leftObj.loc.asPoint, leftWall.loc.asPoint); Pen.line(~rightObj.loc.asPoint, rightWall.loc.asPoint); Pen.stroke; Pen.stroke ...

  4. 177-springs_double Doc

    ... update; world.contain(obj); world.contain(obj2); world.contain(trg); //--render Pen.strokeColor= Color.grey; Pen.line(obj.loc.asPoint, trg.loc.asPoint); Pen.line(obj2.loc.asPoint, trg.loc.asPoint); Pen.stroke; Pen.fillColor= Color.red; Pen. ...

  5. 191-kmeans2 Doc

    ... ; o.addForce(world.gravity); o.update; world.contain(o); }; groups.do{|list, i| Pen.strokeColor= colors[i]; list.do{|p, j| Pen.addRect(Rect.aboutPoint(p, 0.5, 0.5)); }; Pen.stroke; }; Pen.strokeColor= Color.white; kmeans.centroids.do{|cent, ...

  6. 007-single-3d Doc

    ... c, vel, acc, 1.5, 10); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ Pen.strokeColor= Color.white; world.objects.do{|o| o.addForce(o.world.gravity); o.update; world.contain(o); //Pen.addRect(Rect.aboutPoint(o.loc.asPoint, o.size, ...

  7. FancySlider Doc

    ... Func({arg uview; var value_string = v.value.round(0.01).asString; var string_x; Pen.font = Font("Helvetica",11); string_x= (v.value*300).clip(4, 300-26); Pen.color = Color.white.alpha_(0.7); Pen.addRect(Rect(string_x-1,1,26,12)); Pen.fill; ...

  8. QPenPrinter Doc

    QPenPrinter: Filter: Description Class methods new print Inherited class methods Instance methods Printing showDialog print newPage Properties paperRect pageRect pageSize Page range fromPage toPage Inherited instance methods Undocumented in ...

  9. UserView Doc

    ... GUI > Views'>Views UserView : View : QObject : Object A custom drawn view using Pen Source: QUserView.sc Subclasses: QUserView See also: Pen Description An empty view on which you can draw using the Pen class. This view displays and does no ...

  10. CircleRamp Doc

    ... cus = false; c.drawFunc = { Color.grey(0.8).set; // draw the speaker layout GUI.pen.translate(200,200); ((actPoint.theta + (0.5pi)).wrap2(pi) * rtoang).round(0.01).asString.drawCenteredIn(Rect.aboutPoint(0@170, 30, 10), GUI.font.new("Arial" ...

1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow