Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    //f.olofsson 2019 SGUI { //abstract class classvar currentPalette, <>font, <>themes, <currentTheme; var <view, >action; *initClass { themes= ( dark: QPalette.dark.highlight_(Color.green(1, 0.75)), light: QPalette.light.highlight_(Color.gree ...

  2. Object Quark

    ... , bounds).front}, bounds) }, draw: { arg pen, bounds, style; pen.color = style['fontColor']; pen.font = style['font']; if(style['center'], { pen.stringCenteredIn(~name.value, bounds) }, { pen.stringLeftJustIn(~name.value, bounds.insetBy(2, ...

  3. WFSPathBox Quark

    ... ath.asWFSPath2.draw( 1, pixelScale: vw.pixelScale * 1.5, color: color); } { Pen.font = Font( Font.defaultSansFace, 16 ); Pen.color = Color.red(0.66); Pen.stringAtPoint( "?", 5@0 ); }; }) .mouseDownAction_({ |vw, sx, sy, mod, x, y, isInside, ...

  4. SCLOrkPDParameterView Quark

    ... = StaticText.new(this); subView.string = parameterName.asString ++ ":"; subView.font = Font(Font.defaultSansFace, bold: true); currentLayout.add(subView); labelString = ""; lineHeight = 0; totalHeight = 0; // NumberBox // RangeSlider // Sco ...

  5. GUIEvent Quark

    ... ct(0,40,50,20))); StaticText(v,Rect(0,60,50,20)) .string_(name).align_(\center).font_(Font("Futura", 10)); }; }, simpknob: { |win, name, cv, rect| var v; ~label.value(win, name); cv.asArray.do { |cv| v = CompositeView(win, Rect(0,0,50,60)); ...

  6. 03b_shared_coding_drawer Quark

    ... awFunc = { |uv| Pen.stringCenteredIn( "q.draw.demoUV.drawFunc runs", uv.bounds, Font("Futura", 24), Color.white ); }; // make sure history has a line History.enter("// this is a historic line"); // and show the last entered code line on the ...

  7. init-GUI Quark

    ... var minNumLines = 5; var scrollRatio = 1/8; var keepCursorCentered = true; var font = Font(Font.defaultSansFace, 10); margin = margin ?? { 30 @ 30 }; xmargin = margin.x; ymargin = margin.y; bounds = bounds ?? { Rect(20, 30, 800, 300) }; wi ...

  8. 1_butz Quark

    ... Butz.style.winCol = Color.red(1, 0.8); Butz.style.winExtent_(60@16); Butz.style.font.name = Font.defaultMonoFace; Butz.style.font.size = (18 * (NTMI.g.screenScale ** 0.5)).round; "// Butz font: %\n\n".postf(Butz.style.font); Butz.show; Butz ...

  9. TabbedView2 Quark

    ... overriden by individual tabs <>tabViews, // array of TabbbedViewTab instances <font, // default Font. cannot be overriden by individual tabs <resize = 1, <>detachedClosable=true, <>archiveKeys, <activeTab, <>changeAction, // execute on cha ...

  10. XiiGrainBox Quark

    ... rPos.add(1.0.rand) }); selbPool = GUI.popUpMenu.new(win, Rect(10, 5, 102, 16)) .font_(GUI.font.new("Helvetica", 9)) .items_(if(XQ.poolNames == [], {["no pool", "no pool 2"]}, {XQ.poolNames})) .value_(1) .background_(Color.white) .action_({ ...

prev 21 22 23 24 25 26 27 28 29 30 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow