Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (764) Code (64) Doc (175) Help (16) Quark (509) SCDoc ↗ Forum ↗ Google ↗
  1. 100-particle-system Quark

    ... avity); sys.update; //--render sys.do{|o| //iterate all particles in the system Pen.fillColor= Color.grey((o.age/50), 1); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )

  2. SVGPathSegment Quark

    ... . args ) this creates a new object of a specific type, and adds the arguments depending on that type : the type is a symbol with the name of a type. If the first letter is a capital, the segment is absolute, otherwise it is relative to the ...

  3. UMapGUI Quark

    ... w.skin.labelWidth ? 80; userView.drawFunc = { |vw| var rect, points, lastPoint; Pen.width = 1; Pen.fillColor = unit.guiColor; Pen.strokeColor = Color.black.alpha_(0.5); rect = vw.bounds.moveTo(0,0).insetBy(0.5,0.5); //Pen.roundedRect( vw.bo ...

  4. game of life by raffael-seyfried (Raver_Ale) Code

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

  5. PointView Quark

    ... s = \SphericalDesign.asClass; // support for SphericalDesign without explicit dependency userView = UserView(this, this.bounds.origin_(0@0)) .resize_(5) .frameRate_(frameRate) .drawFunc_(this.drawFunc) ; // origin, x, y, z axisPnts = [[0,0, ...

  6. 002-multiple Doc

    //multiple objects within a world with gravity force //color and size depends on object's mass ( var width= 300, height= 300, w, wgrav, world, n= 80; //--world w= RedWindow("vector test", Rect(128, 64, width, height)).front; wgrav= RedVecto ...

  7. 002-multiple Quark

    //multiple objects within a world with gravity force //color and size depends on object's mass ( var width= 300, height= 300, w, wgrav, world, n= 80; //--world w= RedWindow("vector test", Rect(128, 64, width, height)).front; wgrav= RedVecto ...

  8. SVG Quark

    ... VG files. Some objects are still read and even saved as SVGUnknown objects. The Pen class methods in sc look a lot like the instructions found in SVG files, so almost all vector elements can be drawn in SCWindows using the dedicated plot me ...

  9. UPIC waveform editor by snappizz (snappizz) Code

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

  10. 080-function_plot Doc

    ... rad); //func= cos(theta); func= sin(cnt*rad.cos+(5*theta)); y= y+dy; //--render Pen.strokeColor= Color.grey(func+1); Pen.strokeRect(Rect(i, j, 1, 1)); }; x= x+dx; } }; w.play; CmdPeriod.doOnce({w.close}); )

prev 41 42 43 44 45 46 47 48 49 50 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow