Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (47) Code (8) Doc (14) Help (2) Quark (21) Plugin (2) SCDoc ↗ Forum ↗ Google ↗
  1. 020-friction Quark

    //an area middle of the screen has friction - no gravity in this world ( var width= 300, height= 300, w, world, acc, vel, loc, obj, fric, ff; //--world w= RedWindow("friction test", Rect(128, 64, width, height)).front; world= RedWorld(RedVe ...

  2. 021-superfriction Quark

    //an area middle of the screen has super friction - no gravity in this world ( var width= 300, height= 300, w, world, acc, vel, loc, obj, fric, ff; //--world w= RedWindow("superfriction test", Rect(128, 64, width, height)).front; world= Red ...

  3. SSObject Quark

    ... c; //initialize to start pos var <>name; var <>channel; // var <>gravity; var <>friction; // var <dAzimuth,<dElevation; // width for extended objects var <preserveArea; // for extended objects var <present; *new {|world, loc, vel, accel, ma ...

  4. XixiPredator Quark

    ... r fillcolor, strokecolor; var posNegX, posNegY; var xDistance, yDistance; var <>friction, restlessness, <>restlessSeed; var xAway, yAway; var chooseNewTargetCounter; var energy, biteFlag, aggr; *new { | point, stageRect, preyArray | ^super. ...

  5. Camera2D Quark

    ... r <>fwd, <>back, <>rotLeft, <>rotRight, <>instance; var <>arrive, <>rotation, <>friction = 0.6, >motionAmount = 1.6, >rotationAmount= 0.01pi; *new{ arg world, position= RealVector2D[15,15], radius = 0.2, mass = 0.05, velocity = RealVector2D ...

  6. DimpleObject Quark

    ... ation' (rotation matrix), 'force' (x,y,z), 'mass', 'density', 'color' (r,g,b), 'friction/static', and 'friction/dynamic'. Properties that you can set are 'visible' (0 or 1), 'collide' (0 or 1) - sends a osc message when collisions occur (so ...

  7. 110-bounce_objects Quark

    //objects shoot out off each other. with friction and world damping to compensate. ( var width= 300, height= 300, w, wgrav, world, n= 18; //--world w= RedWindow("bounce test", Rect(128, 64, width, height)).front; wgrav= RedVector2D[-0.1, 0. ...

  8. SSWorld Quark

    ... ////////////////////////////// SSWorld : RedWorld1 { //default with walls var <>friction; var time, <>stepFreq; var window; var <>rDiff, <>aziDiff, <>eleDiff; var <>viewDiff; var <renderAddresses; var <numObjects=0; var objectsID; var world ...

  9. SWBusNode Quark

    ... Out.kr( out, Lag.kr( Timer.kr( In.kr( in, nc )*mul ); , lag) ); }).send(s); } } FrictionNode : SWBusNode{ initSynthDefAndBus{ |s,nc=1| bus = Bus.control( s, nc ); settings.put( \friction, 0.5 ); settings.put( \spring, 0.414 ); settings.put( ...

  10. predators Quark

    ... ber generators. The predators have properties like energy, speed, restlessness, friction and focus on a prey. They loose energy by not eating from the preys or by fighting about them. When a predator takes a bite of the prey, it emits a sou ...

1 2 3 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow