-
//redFrik Redraw { var <win, <mouse, mod, pmouse, userView, strokeColor, width; *new {|bounds| ^super.new.initRedraw(bounds); } initRedraw {|bounds| bounds= bounds ?? {Rect(300, 300, 500, 500)}; win= Window("redraw", bounds, false); userVie ...
-
Mouse { classvar <all, <task, <screenSize, pos, <prevPos; var <name, <>action, <>xspec, <>yspec; *initClass { all = (); screenSize = Window.screenBounds.extent; } *pos { if (task.isPlaying) { ^pos }; ^pos = QtGUI.cursorPosition; } *initTask ...
-
Mouse { classvar <all, <task, <screenSize, pos, <prevPos; var <name, <>action, <>xspec, <>yspec; *initClass { all = (); screenSize = Window.screenBounds.extent; } *pos { if (task.isPlaying) { ^pos }; ^pos = QtGUI.cursorPosition; } *initTask ...
-
... y sc3.4 or sc3.5 in 32bit mode (i.e. something is broken under 64bit sc3.5) /* PMouseX : Pattern { classvar screenBounds; var <>minval, <>maxval, <>warp, <>lag, <>length; *new {|minval= 0, maxval= 1, warp= 0, lag= 0.2, length= inf| ^super.n ...
-
( idInfo: "Generic Mouse", protocol: 'hid', deviceType: \mouse, elementTypes: [\mouseAxis, \button, \mouseWheel], status: ( linux: "unknown", osx: "tested and working. 2016-03-24, adc", win: "unknown"), deviceName: "Generic Mouse", deviceIn ...
-
... width, height), false); var usr= UserView(win, Rect(0, 0, width, height)); var mouse, b, c; var physics; var handleBoundaryCollisions; usr.background= Color.white; physics= TraerParticleSystem.new; mouse= physics.makeParticle(1, 0, 0, 0); ...
-
//more springs. RedSpring is just a simple helper class //mouse controls red ball (target) ( var width= 300, height= 300, w, world, wgrav, objs, sprs, trg, mp, n= 8; //--world w= RedWindow("more springs", Rect(128, 64, width, height)).front ...
-
//chain of springs. //mouse controls red ball (target) ( var width= 300, height= 300, w, world, wgrav, objs, sprs, trg, mp, n= 18; //--world w= RedWindow("chain of springs", Rect(128, 64, width, height)).front; mp= w.mouse; wgrav= RedVector ...
-
... height), false, false); var usr= UserView(win, Rect(0, 0, width, height)); var mouse, objects= List.new; SynthDef(\main, {|in= 0, out= 0| var src= In.ar(in, 2); src= src.tanh; src= FreeVerb2.ar(src[0], src[1], 0.2, 1); Out.ar(out, src); }) ...
-
//simple spring //mouse controls red ball (target) ( var width= 300, height= 300, w, world, wgrav, obj, trg, mp; //--world w= RedWindow("spring test", Rect(128, 64, width, height)).front; mp= w.mouse; wgrav= RedVector2D[0, 0.98]; world= Red ...