Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... } initMIDIKeyboard { arg w, argbounds, argoctaves=3, argstartnote; var r, pix, pen; octaves = argoctaves ? 4; bounds = argbounds ? Rect(20, 10, 364, 60); if((win= w).isNil, { win = Window.new("MIDI Keyboard", Rect(100, 250, bounds.width + ...

  2. red05 Doc

    ... }}.do{|s| physics.removeSpring(s)}; physics.removeParticle(p); }; physics.tick; Pen.width= 0.25; physics.springs.do{|s| Pen.strokeColor= Color.grey(1-(s.currentLength/75), 0.2); Pen.addOval(Rect.newSides(s.getOneEnd.position.x, s.getOneEnd. ...

  3. red05 Quark

    ... }}.do{|s| physics.removeSpring(s)}; physics.removeParticle(p); }; physics.tick; Pen.width= 0.25; physics.springs.do{|s| Pen.strokeColor= Color.grey(1-(s.currentLength/75), 0.2); Pen.addOval(Rect.newSides(s.getOneEnd.position.x, s.getOneEnd. ...

  4. BoxMatrix Quark

    ... iate drag or a symbol like \isCntrl var <>background,<styles,<defaultStyle; var pen, boxWidth,boxHeight,isDown=false; *new { arg w,bounds,numCols=10,numRows=6; ^super.new.init(w, bounds,numRows,numCols); } init { arg w,argbounds,argNumRows, ...

  5. test polygon inside detection Quark

    ... @0, 2, 2 ); ); w.keepRatio = true; w.drawFunc = { var fader, crossfades, lines; Pen.addArc( ~point.asPoint * (1 @ -1), 0.1/2, 0, 2pi ).fill; // draw corns as blue points // vector connecting edge k to edge k-1 ~vecs = p.size.collect{ |i| p[ ...

  6. StackLayout Doc

    ... cceptsMouse_(false).drawFunc_({ var b = canvas.bounds(); var str = text.string; Pen.translate(b.center.x, b.center.y); Pen.fillColor = text.palette.baseText.alpha_(0.1); str.do { |c| var x = 40.0.rand + 10.0; var r = c.asString.bounds.cente ...

  7. RedFingerprint Doc

    ... nce Methods . calc Calculate points from array. . draw Start drawing at current Pen position. . makeWindow Create a new window and plot the points. . array Data to be plotted. . normalize Normalize points after -calc . . points Coordinates ...

  8. SCDraw Quark

    SCDraw score of timed drawing using Pen SCDraw is intended for the non-realtime realization of procedural animation. It draws and writes out an image sequence with user-designed drawing functions. It is partially modelled on Score. A "score ...

  9. SVGFile Quark

    ... VG11/ // and checked with Adobe's SVG web-browser plugin and Illustrator // 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. (SVGXXX-plot methods) / ...

  10. UserViewObjectsManager Quark

    ... along with a renderFunc that will be called to render the object's display. the Pen will be offset so the renderFunc should draw the object at 0,0 todo: selection rectangle copy icon not showing no copy icon if no copy func keydown action e ...

prev 31 32 33 34 35 36 37 38 39 40 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow