Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1875) Code (155) Doc (456) Help (116) Quark (1142) Plugin (6) SCDoc ↗ Forum ↗ Google ↗
  1. CVWidgetMS Quark

    ... bounds.width; thisHeight = bounds.height; }); parent ?? { parent = Window(name, Rect(thisX, thisY, thisWidth+14, thisHeight+7), server: server) }; // parent.acceptsMouseOver_(true); cvcGui ?? { parent.onClose_({ this.size.do({ |slot| if(edi ...

  2. Pattern Quark

    ... f, height, tf, source, width=600; var l; l = layout ?? {PageLayout(~name.value, Rect(0, 0, 500, 600))}; // set spec here, must recable it then ~spec.gui(l); l.startRow; source = ~source.asCompileString; f = GUI.font.new("Courier", 12.0); he ...

  3. gui_example_userview_accelerometer Quark

    ... Point(0, 0)}!3; buffer.start; win= Window("gui example userview accelerometer", Rect(10, 100, width, height)).front; win.view.background= Color.white; img= Image(width, height); imgFunc= { img.draw({ data.do{|xyz| height.do{|y| img.setColor ...

  4. UChainGUI Quark

    ... if( skin.font.class != Font.implClass ) { // quick hack to make sure font is correct skin.font = Font( Font.defaultSansFace, 11 ); }; if( parent.isNil ) { parent = chain.class.asString; }; if( parent.class == String ) { if( (singleWindow an ...

  5. SimpleDMXFixture Quark

    ... (\dim); var color = Color.black.blend(fixture.getColor, dim); var colorBounds = Rect( 0, 0, *extentHalf.asArray ); var dimString = "\tdim: %" .format(fixture.getRaw(\dim)); var dimStringBounds = Rect( 0, 0, extentHalf.x * 2, extentHalf.y ); ...

  6. CVWidget2D Quark

    ... bounds.width; thisHeight = bounds.height; }); parent ?? { parent = Window(name, Rect(thisX, thisY, thisWidth+14, thisHeight+7), server: server) }; // parent.acceptsMouseOver_(true); cvcGui ?? { parent.onClose_({ #[lo, hi].do({ |hilo| if(edi ...

  7. 040-pendulum Quark

    ... ght= 300, w, wgrav, world, n= 1, ploc; //--world w= RedWindow("pendulum test1", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedVector2D[width, height], wgrav, 20, 0.02); //dim,grav,maxvel,damp //--objec ...

  8. NB_more_examples Quark

    ... g" , 500, 400); n.publish( " fill(random(), random(), random(), random(0, 0.3)) rect(0, 0, WIDTH, HEIGHT) fill fill(random(), random(), random(), random()) rect(10, 10, 30, 30) oval(40, 40, 20, 10) for i in range(10): fill(random(), random( ...

  9. TimerCP Quark

    ... eateLabel("", 8); timer = ClockFaceCP.new(window); pauseButton = Button(window, Rect(width: 22, height: 20) ); pauseButton.states = [[">", Color.white, Color.grey], ["||", Color.white, Color.grey]]; pauseButton.font_(options.font); pauseBut ...

  10. DrawIcon Quark

    ... d DrawIcon contains a global library with pen functions. It draws the icon in a Rect you specify. DrawIcon returns a Pen function. Used by RoundButton an SCAlert DrawIcon( iconName, rect ... extra args ) ( w = GUI .window.new( "DrawIcon" ). ...

prev 51 52 53 54 55 56 57 58 59 60 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow