-
... make the window slightly transparent q.draw.demoWin.alpha_(0.997); // and put a userview on it, on which we can we draw: q.draw.demoUV = UserView(q.draw.demoWin, Rect(0,0,400,400)).front; q.draw.demoUV.background = Color.black; q.draw.demoU ...
-
... local; s.waitForBoot{ if (s.hasShmInterface) { w = Window().front; u = UserView(w, w.view.bounds); f = { |x, y| var size = 20 + (y/4); k = k.center_(Point(x, y)); k = k.size_(Size(size, size)); b.setSynchronous(x ...
-
WindowHandleView : UserView { var dragging, dragStart, <>win, isWin; *qtClass { ^'QcCustomPainted' } *new { arg parent, bounds; ^super.new(parent, bounds ?? {this.sizeHint} ).init; } init { this.canFocus = false; this.setDefaultBackground() ...
-
... req, amp; var temp; var black, white; var counter=0; //for scrolling around var userview; var drawdataready= false , drawpos=0; var i, t; //var drawupdate = drawaccum/ var bufferfetchwait = (1.0/172.0); var drawupdatex = drawaccum*xperframe ...
-
... ildren[1]; ^this.new(sliderZone, slider.bounds); } init { |parent, bounds| uv = UserView(parent, bounds); uv.background_(Color(1,1,1,0)); uv.acceptsMouse_(false); // horizontal for now: uv.drawFunc = { |uv| var bounds = uv.bounds; var maxwi ...
-
... var win= Window("Bouncy Balls", Rect(100, 100, 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. ...
-
... var win= Window("Bouncy Balls", Rect(100, 100, 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. ...
-
... - added RedMRCM and RedIFS * 090521 - RedWindow and RedJWindow now draws in the UserView - thanks Thor * 090514 - growth example and asPoint added to RedVector * 090510 - added RedLSystem and RedLTurtle classes. updated example 070-lsystem. ...
-
... clear; fillcolor = Color.yellow; fillmode = true; state = false; mouseTracker = UserView.new(win, bounds) .canFocus_(false) //.relativeOrigin_(false) .mouseDownAction_({|me, x, y, mod| if(mod == 262401, { // right mouse down // rightDownAct ...
-
... .layout = VLayout( sl = Slider().orientation_(\horizontal).maxHeight_(30), uv = UserView().background_(Color(0.1, 0.1, 0.4)) ); sl.action = SpeedLim(0.15, { |view| j = view.value; uv.refresh; }, AppClock); uv.drawFunc = { |view| var b = vie ...