Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    /** 2007 Till Bovermann (Bielefeld University) */ /* ToDo: add pen-dependance */ JInT_Wacom : JInT { var notInitialized = true; var view, window; classvar keys = "xyghudlrtz"; *new {|server, view| ^super.new.initWacom(server, view) } initWa ...

  2. 120-collision_objects Quark

    ... thin a world with gravity force and also collision detection //color and size depends on object's mass ( var width= 300, height= 300, w, wgrav, world, n= 20; //--world w= RedWindow("collision test", Rect(128, 64, width, height)).front; wgra ...

  3. UMapGUI Quark

    ... iew( mainComposite, bounds.moveTo(0,0) ).resize_(2); userView.drawFunc = { |vw| Pen.width = 1; Pen.fillColor = unit.guiColor; Pen.strokeColor = Color.black.alpha_(0.5); Pen.roundedRect( vw.bounds.moveTo(0,0).insetBy(0.5,0.5), 3 ); Pen.fillS ...

  4. 231-3Dpoints Quark

    ... points= {|i| Red3DPoint(RedVector3D[i+1/n-0.5, 0, 0])}.dup(n); //--loop w.draw{ Pen.fillColor= Color.white; world.objects.do{|o, i| thetas[i]= thetas[i]+speeds[i]; points[i].rotation= RedVector3D[thetas[i], thetas[i], thetas[i]]; points[i]. ...

  5. UScoreView Quark

    ... ate; } removeUnusedTracks { minTracks = 12; this.calcNumTracks; this.update; } openSelectedSubScoreInNewWindow{ this.selectedEvents !? { |x| var y = x.at(0); if(y.isFolder) { UScoreEditorGUI(UScoreEditor(y)) } } } // call to initialize and ...

  6. GMFaderSlider Quark

    ... tXValueMapping( super.value, super.min, super.max, super.scale, super.expMin ); Pen.fillRect( Rect( super.interactionRect.left, super.interactionRect.top + ((super.interactionRect.height * (1 - thisSliderRatio)) / 2), thisRectSize, this.int ...

  7. ZPlane Quark

    ... zplane = { arg me; var dimH = me.bounds.height, dimW = me.bounds.width, it = 6; Pen.use { //Draw the grid GUI.pen.width = 0.5; it.do({ arg i; if(i == it.div(2), { GUI.pen.strokeColor = Color.red }, { GUI.pen.strokeColor = Color.gray(0.2) }) ...

  8. red02 Quark

    ... usr.mouseDownAction; usr.drawFunc= { physics.tick; physics.particles.do{|p, i| Pen.fillColor= Color.hsv(0.6, i/num, 0.7, 0.7); Pen.addOval(Rect.aboutPoint(Point(p.position.x, p.position.y), p.mass, p.mass)); Pen.fill; }; }; win.front; CmdP ...

  9. 233-3Dlines Quark

    ... s= {|i| Red3DLine(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]; l ...

  10. VisualRepresentation Quark

    VisualRepresentation : EntityRepresentation { var >color, >collisionColor; var <penWidth = 1.5, <>shape = 0; *new { arg repManager, collisionFunc, color, collisionColor; ^super.new(repManager, collisionFunc) .color_(color) .collisionColor_( ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow