Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (738) Code (47) Doc (133) Help (42) Quark (516) SCDoc ↗ Forum ↗ Google ↗
  1. geoClock Quark

    ... align_(\center) .stringColor_(Color(1.0, 0.0, 0.0)) .background_(Color(0,0,0)) .font_(GUI.font.new("Optima", 24)) ; r = Task.new({ arg i ; loop({ clockField.string_((thisThread.seconds-runner.startTime).asTimeString) ; 1.wait })// a clock r ...

  2. ServerWindowCP Quark

    ... ", Color.white, Color(0.9, 0.5, 0.3)]]; muteButton.canFocus = false; muteButton.font_(options.font); if(Server.default.volume.isMuted){muteButton.value = 1}; muteButton.action = { arg button; if(button.value == 0, {Server.default.unmute}, { ...

  3. RedDiskInPlayer Quark

    ... r_ to background_ //ctrl click to reset volume to 0db //--todo: //* colours and font from skin? RedDiskInPlayer { var <sampler, <isPlaying= false, <soundFiles, <win; var playIndex, bgcol, fgcol, incdecTask; var incView, decView, progressVie ...

  4. CtkPMod Quark

    ... Parent, argBounds; var widgetHeight, widgetWidth, marginX, marginY, gapX, gapY, font; font = Font("Arial", 20); ctkPEvent = argCtkPEvent; parent = argParent; bounds = argBounds ?? {Rect(20, Window.screenBounds.height, width = 400, height = ...

  5. Crear hints para los views Quark

    ... ize * 8 + 10, 16)) .string_(text) .align_(\left) .background_(Color.grey(0.9)) .font_(Font("Helvetica", 12)); tooltipWindow.front; }); }; // Función para ocultar el tooltip hideTooltip = { if (tooltipWindow.notNil) { "Closing tooltip...".po ...

  6. GMUserView Quark

    ... erSize, this.bounds.width, borderSize)); }; } stringCenteredIn { |string, rect, font, color, direction = \right| if(direction == \top) { Pen.rotate( 0.5pi.neg, rect.left + (rect.width / 2), rect.top + (rect.height / 2) ); }; if(direction == ...

  7. ClotheslineView Quark

    ... ivatedColor, <>deactivatedColor, <>emphasisFillColor, <>passiveModeColor; var <>font, <>zoomRatio = 1.1, <>scrollRatio = 0.125, <>minNumLines = 5, <>lineHeight; var <>keepFront = true; // if GUI opens in score, keep to front var <>keepCurso ...

  8. shifting_buttons Quark

    ... but not guaranteed. ****************************/ w = Window("test").front; f = Font(Font.defaultMonoFace, 24); w.layout = HLayout( VLayout( *~lefts = [ \slot1, \slot2, \slot3, \slot4] .collect { |name, i| Button(w).states_([[name], [name, ...

  9. sGlobal Quark

    ... ounds.width-400, 0, 400, 200); //x, y, w, h var palette= SGUI.palette; var fnt= Font.monospace(10); var volumeSpec= ControlSpec(-inf, 10, 'db', 0.0, 0.0, "dB"); var snapshotKeys= #[ //more can be added [$A, $S, $D, $F, $G, $H, $J, $K], [$Z, ...

  10. ClockFace Quark

    ... UI.staticText.new(window, Rect(0, 0, 430, 100)) .string_(cursecs.asTimeString) .font_(Font("Arial", 40)); window.onClose_({this.stop}); } }

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow