-
//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 ...
-
... methods Instance Methods Inherited instance methods Examples // trigger gate is mouse button // spring constant is mouse x // mouse y controls damping ( { var inforce, outforce, freq, k, d; inforce = K2A.ar(MouseButton.kr(0, 1, 0)) > 0; k = ...
-
... thods new Inherited class methods Instance methods draw play stop resize isOpen mouse isPlaying clear userView Inherited instance methods Examples Classes (extension) | Red > redUniverse'>redUniverse RedWindow Extension wrapper for UserView ...
-
... Inherited class methods Instance Methods Inherited instance methods Examples // mouse x controls switch of level // mouse y controls gravity ( { var t, sf; sf = K2A.ar(MouseX.kr > 0.5) > 0; t = TBall.ar(sf, MouseY.kr(0.01, 1.0, 1), 0.01); P ...
-
// this file is part of redUniverse toolkit /redFrik //todo: //mouseDownAction etc. now mouse is lost if setting userView.mouseDownAction RedWindow : SCWindow { var <>mouse, <isPlaying= false, <userView; *new {|name= "redWindow", bounds, re ...
-
... form compatible. The ioType can be \in or \out . Examples of input elements are mouse axes, joystick axes, and buttons. Examples of output elements are LEDs on the device, or forcefeedback or rumble (e.g. on gamepads). Here is an example of ...
-
... nherited class methods Instance methods draw play stop resize background isOpen mouse isPlaying userView animate frame frameRate Inherited instance methods Examples Classes (extension) | Red > redUniverse'>redUniverse RedQWindow Extension w ...
-
... ct friction proximity from which on attraction to surface starts // examples // mouse x controls switch of level ( { var f, sf; sf = K2A .ar( MouseX .kr > 0.5) > 0; f = Ball .ar(sf, MouseY .kr(0.01, 20, 1), 0.01); f = f * 10 + 500; SinOsc . ...
-
... nherited class methods Instance methods draw play stop resize background isOpen mouse isPlaying userView animate frame frameRate Inherited instance methods Examples Classes (extension) | Red > redUniverse'>redUniverse RedJWindow Extension w ...
-
// this file is part of redUniverse toolkit /redFrik //todo: //mouseDownAction etc. now mouse is lost if setting userView.mouseDownAction //needs more work - just a temporary fix - resize broken //TO USE REDUNIVERSE WITH QT CHANGE EXAMPLE C ...