-
// 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 ...
-
// 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 ...
-
// 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 ...
-
// 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 ...
-
//springs double //with mouse controlling mid point //illustrates RedSpring's update2 convenience method for interconnecting two objects with one spring ( var width= 300, height= 300, w, world, wgrav, obj, obj2, trg, mp, spr1, spr2; //--wor ...
-
//mouse position ( w = Window().acceptsMouseOver_(true).front; x = ENdef(\x,{ var pos = w.view.enMousePos; pos.collect{ |p| putStrLn("mouse pos is: "++p) }.enOut; })).start; ) // is down ( t = StaticText(); w = Window().layout_(HLayout(t)). ...
-
//particlesystem. //with mouse controlling world gravity (the 'wind') //with simple grain sounds mapped to each particle. ( s.waitForBoot{ var width= 300, height= 300, w, wgrav, world, sys, makeParticle, n= 200, mp; //--synthesis SynthDef(\ ...
-
//redFrik //requires Qt GUI PMouseX : Pattern { classvar >updateRate= 0.1, screenBounds, <>cursorPosition, cursorLag; var <>minval, <>maxval, <>warp, <>lag, <>length; *new {|minval= 0, maxval= 1, warp= 0, lag= 0.2, length= inf| ^super.newCo ...
-
//simple particlesystem. //with mouse controlling world gravity and system position ( var width= 300, height= 300, w, world, sys; //--world w= RedWindow("particlesystem test", Rect(128, 64, width, height)).front; world= RedWorld3(RedVector2 ...
-
//spring construction inspired by soda constructor //mouse drags around balls ( var width= 300, height= 300, w, world, wgrav, sprs, over, n= 10; //--world w= RedWindow("soda springs", Rect(128, 64, width, height)).front; wgrav= RedVector2D[ ...