Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1772) Code (147) Doc (407) Help (75) Quark (1139) Plugin (4) SCDoc ↗ Forum ↗ Google ↗
  1. 121-collision_boids Doc

    ... oo)}; //faster but less accurate o.update; world.contain(o); //--render Pen.fillColor= Color.grey(1-(i/n), 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

  2. 121-collision_boids Quark

    ... oo)}; //faster but less accurate o.update; world.contain(o); //--render Pen.fillColor= Color.grey(1-(i/n), 0.5); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

  3. Internal-Snooping Help

    ... nt; b = Button .new( w, Rect .new( 23, 28, 127, 25 )); b.states = [[ "BLAM-O" , Color .red]]; })) Window .allWindows.dump; // dump a list of all open SCWindows // a little more helpful, dump their names Window .allWindows.collect({ arg w; w ...

  4. SETObject Quark

    ... ).collect{|i| GUI.textView.new(window, Rect(10,i*30 + 10,300, 20)) .background_(Color.white) .font_(Font("Helvetica", 18)) .stringColor_(Color.blue) }; rotViews = (0..2).collect{|i| GUI.textView.new(window, Rect(10,i*30 + 110,300, 20)) .bac ...

  5. 233-3Dlines Doc

    ... d3DLine(RedVector3D[0, i+1/n-0.5, 0], 1.75)}.dup(n); //--loop w.draw{ Pen.strokeColor= Color.white; world.objects.do{|o, i| thetas[i]= thetas[i]+speeds[i]; lines[i].rotation= RedVector3D[thetas[i], thetas[i]/2+1, thetas[i]/3+2]; lines[i].up ...

  6. 233-3Dlines Quark

    ... d3DLine(RedVector3D[0, i+1/n-0.5, 0], 1.75)}.dup(n); //--loop w.draw{ Pen.strokeColor= Color.white; world.objects.do{|o, i| thetas[i]= thetas[i]+speeds[i]; lines[i].rotation= RedVector3D[thetas[i], thetas[i]/2+1, thetas[i]/3+2]; lines[i].up ...

  7. Object Quark

    ... dow(~name.value, bounds).front}, bounds) }, draw: { arg pen, bounds, style; pen.color = style['fontColor']; pen.font = style['font']; if(style['center'], { pen.stringCenteredIn(~name.value, bounds) }, { pen.stringLeftJustIn(~name.value, bou ...

  8. 200-discrete_world_ca Doc

    ... }, { if(counts[i]!=2, { o.state= 0; }); }); }; Pen.smoothing_(false); Pen.strokeColor_(Color.white); Pen.stroke; }; w.play; CmdPeriod.doOnce({w.close}); ~world= world; ) ~world.objects.do{|o| o.state= 0}; //clear ( var glider= #[[2, 0], [0, ...

  9. extRecProxyMixer Quark

    ... utton(arZone, Rect(10, 10, 50, skin.headHeight)) .states_( [["reduce", skin.fontcolor, skin.offColor]] ) .action_({ object !? { object.reduce } }).font_(font); Button(arZone, Rect(10, 10, 30, skin.headHeight)) .states_( [["doc", skin.fontco ...

  10. 200-discrete_world_ca Quark

    ... }, { if(counts[i]!=2, { o.state= 0; }); }); }; Pen.smoothing_(false); Pen.strokeColor_(Color.white); Pen.stroke; }; w.play; CmdPeriod.doOnce({w.close}); ~world= world; ) ~world.objects.do{|o| o.state= 0}; //clear ( var glider= #[[2, 0], [0, ...

prev 131 132 133 134 135 136 137 138 139 140 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow