-
... [x,(hudRect.top.neg+z),r]]; }).flatten(1); var starY = 0; var board = UserView(win, Rect(0, 0, win.view.bounds.width, hudRect.top)) .animate_(true) .frameRate_(15) .drawFunc_({ starY = (starY+1).wrap(0,hudRect.top); Pe ...
-
... var win= Window("red05", Rect(100, 100, width, height), false, false); var usr= UserView(win, Rect(0, 0, width, height)); var physics; usr.background= Color.red; usr.clearOnRefresh= false; physics= TraerParticleSystem(0, 0, 0, 0.4); usr.mou ...
-
... var win= Window("red05", Rect(100, 100, width, height), false, false); var usr= UserView(win, Rect(0, 0, width, height)); var physics; usr.background= Color.red; usr.clearOnRefresh= false; physics= TraerParticleSystem(0, 0, 0, 0.4); usr.mou ...
-
... d(w,Rect(0,0,80,80)).action_({ "release function".postln; }); */ SCMButtonAdd : UserView { var pressed=false, strokeColor, highLightColor; *new { |parent, bounds| ^super.new(parent, bounds).init(); } init { strokeColor = Color.black; highLi ...
-
... == 27.asAscii}.if{win.close}}; win.view.background = Color .white; view = GUI .userView.new(win, win.view.bounds); view.drawFunc = { var numAppearance, val; strings.do{ |str, i| numAppearance = numbers[i]; val = countSpec.unmap(numAppearan ...
-
GMGridContainer : UserView { var thisViews; var thisMargins = 4; var thisOrientation = \horizontal; *new { ^super.new.init; } init { thisViews = List(0); this.onResize_( FunctionList() .addFunc({ this.prArrangeViews; }); ); } insertView { | ...
-
... be used to change size could do zooming as well but fonts do not scale well */ UserViewObjectsManager { var <>view,<>bounds; var <>onDoubleClick,<>onMoved,<>onDelete,<>onCopy,<>keyDownAction; var <>selectedStrokeColor; var <>objects,<>sele ...
-
... .seconds ; ~allPoints = [] ; ~diffPoints = [] ; w = Window.new.front; q = UserView.new(w,w.view.bounds); q.mouseDownAction_({ | view, x, y, modifiers, buttonNumber, clickCount | ~allPoints = []; }); q.mouseMoveAction_({ | v ...
-
w = Window("test", Window.availableBounds).front; u = UserView(w, Rect(100, 100, 450, 550)).front; q.inph.mode = \full; x.stop; x = SkipJack({ u.refresh }, 0.04); x.dump u.drawFunc = { |uv| var bounds = uv.bounds.moveTo(0,0); var center = b ...
-
... .5, >eq = false, <>storeBounds,>color, <>minHeight,>drawFunction; *viewClass {^ UserView} *new { arg parent, bounds; ^super.new.init(parent, bounds); } init { arg argParent, argBounds; var w,switch=0,parentView,triangle; minHeight=CollapseV ...