Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... ], RedVector2D[0, 0], 0, 0, 60); //world,loc,vel,acc,mass,size //--loop w.draw{ Pen.strokeColor= Color.white; world.objects.do{|o, i| //iterate all objects in this world world.objects.copyToEnd(i+1).do{|oo| o.collide(oo)}; o.update; //objec ...

  2. 130-obstacle_rock Quark

    ... ], RedVector2D[0, 0], 0, 0, 60); //world,loc,vel,acc,mass,size //--loop w.draw{ Pen.strokeColor= Color.white; world.objects.do{|o, i| //iterate all objects in this world world.objects.copyToEnd(i+1).do{|oo| o.collide(oo)}; o.update; //objec ...

  3. red00 Doc

    ... y, 0)}; usr.mouseMoveAction= usr.mouseDownAction; usr.drawFunc= { physics.tick; Pen.fillColor= Color.black; physics.particles.do{|p| Pen.addOval(Rect.aboutPoint(Point(p.position.x, p.position.y), p.mass, p.mass)); }; Pen.fill; }; win.front; ...

  4. red01 Doc

    ... y, 0)}; usr.mouseMoveAction= usr.mouseDownAction; usr.drawFunc= { physics.tick; Pen.fillColor= Color.black; physics.particles.do{|p| Pen.addOval(Rect.aboutPoint(Point(p.position.x, p.position.y), p.mass, p.mass)); }; Pen.fill; }; win.front; ...

  5. red00 Quark

    ... y, 0)}; usr.mouseMoveAction= usr.mouseDownAction; usr.drawFunc= { physics.tick; Pen.fillColor= Color.black; physics.particles.do{|p| Pen.addOval(Rect.aboutPoint(Point(p.position.x, p.position.y), p.mass, p.mass)); }; Pen.fill; }; win.front; ...

  6. red01 Quark

    ... y, 0)}; usr.mouseMoveAction= usr.mouseDownAction; usr.drawFunc= { physics.tick; Pen.fillColor= Color.black; physics.particles.do{|p| Pen.addOval(Rect.aboutPoint(Point(p.position.x, p.position.y), p.mass, p.mass)); }; Pen.fill; }; win.front; ...

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

  8. 120-collision_objects Doc

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

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

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

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow