Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (764) Code (64) Doc (175) Help (16) Quark (509) SCDoc ↗ Forum ↗ Google ↗
  1. Visual demonstration of aliasing/foldover (modified from James Harkins) by jnarveson (jnarveson) Code

    ... eColor = Color.grey; win.drawHook = { var pt; pt = Point(0, height/2); Pen.color_(sampColor) .moveTo(pt); (1..sampPts).do { |x| Pen.moveTo(pt); pt = Point(x * (width / sampPts), sin(x * freq / sampPts * 2pi).linlin(-1, 1 ...

  2. luce : standalone synth and custom slider GUI demo by simon (Dindoléon) Code

    ... r community. This demonstrates how to : - Create a standalone module which opens inside a new window, - Create a custom graphical 2d slider. Be careful, it only responds to mouse action, not to keyboard instructions, - Write a simple ...

  3. Color Picker, pretty version by simon (Dindoléon) Code

    ... etup h_slider.background_( Color.black ); h_slider.drawFunc_( { | view | Pen.width = 1; ( view.bounds.height - ( margin * 2 ) ).do( { | index | Pen.strokeColor_( hsv_to_color.value( [ index.linlin( 0, ...

  4. 3D Scope by rukano (rukano) Code

    ... lineColor = Color.green.alpha_(0.5); // for retro style if( ypos == 0 ) { Pen.fillColor = Color.black; Pen.fillRect(view.bounds) }; // clear on new begin c.getn(0, numFreqs-1, { |v| d = v }); // get mag buffer data Pen.stroke ...

  5. Visual demonstration of aliasing/foldover by jamshark70 (jamshark70) Code

    ... Color = Color.black; win.drawHook = { var pt; pt = Point(0, height/2); Pen.color_(sampColor) .moveTo(pt); (1..sampPts).do { |x| Pen.moveTo(pt); pt = Point(x * (width / sampPts), sin(x * freq / sampPts * 2pi).linlin(-1, 1 ...

  6. MultiButtonView by simon (Dindoléon) Code

    ... var string_rect; var string_color; if( current_state == index, { Pen.fillColor_( state[ 2 ] ) }, { Pen.fillColor_( state[ 5 ] ) } ); if( orientation == \horizontal, { Pen.fillRect( Rect( m ...

  7. test test test silly gfx patch by scitotils (s2s2s2s2s) Code

    ... b0 = v.bounds.moveTo( 0,0 ); Color.black.set; Pen.fillRect( b0 ); Pen.width = 1; do( numSteps, { |i| blend( c1,c2, i*cstep ).set; ...

  8. cog wheels by redfrik (redFrik) Code

    ... 1, cogInsideShape[0])*inner, Point(1, cogInsideShape[1])*inner ]*radius; Pen.strokeOval(Rect.aboutPoint(Point(0, 0), center*radius, center*radius)); numCogs.do{ Pen.moveTo(cogs[0]); Pen.lineTo(cogs[1]); cogs= cogs.collect{ ...

  9. Dirty Sound Maker by simon (Dindoléon) Code

    ... the function used to draw the custom input_view: input_view.drawFunc = { Pen.width = stroke_size; // First, draw the background frame: Pen.addRect( Rect(0,0, input_view.bounds.width,input_view.bounds.height) ); Pen.fillAxi ...

  10. Recursion-toy-like vines with Pen by uiae (uiae) Code

    ... = that.scale; radius = that.radius * scale; // Draw outline Pen.line(that.ox@that.oy,that.x@that.y); // not in qt... if((GUI.scheme == "CocoaGUI") and: (radius > 5.0), { Pen.setShadow(1@1, scal ...

prev 1 2 3 4 5 6 7 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow