-
//linked pendulums ( var width= 300, height= 300, w, wgrav, world, n= 5, ploc; //--world w= RedWindow("linked pendulums", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedVector2D[width, height], wgrav, 2 ...
-
//linked pendulums ( var width= 300, height= 300, w, wgrav, world, n= 5, ploc; //--world w= RedWindow("linked pendulums", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedVector2D[width, height], wgrav, 2 ...
-
... t.scale; radius = that.radius * scale; // Draw outline Pen.line(that.ox@that.oy,that.x@that.y); // not in qt... if((GUI.scheme == "CocoaGUI") and: (radius > 5.0), { Pen.setShadow(1@1, scal ...
-
... @ (params.gainByIndex(ind).linlin(range.neg,range,bounds.height,0,\none)); }); Pen.color_( Color.white.alpha_(0.25) ); Pen.addRoundedRect( bounds, 6, 6 ).fill; Pen.color = Color.gray(0.2).alpha_(0.5); Pen.addRoundedRect( bounds.insetBy(0,0 ...
-
... i-1), world.objects.wrapAt(i+1)); }; world.objects.do{|o| o.update}; //--render Pen.width= 5; Pen.strokeColor= Color.black; Pen.fillColor= Color.white; world.objects.do{|o| var p, x, y; p= o.loc.asPoint; Pen.addOval(Rect.aboutPoint(p, o.siz ...
-
... i-1), world.objects.wrapAt(i+1)); }; world.objects.do{|o| o.update}; //--render Pen.width= 5; Pen.strokeColor= Color.black; Pen.fillColor= Color.white; world.objects.do{|o| var p, x, y; p= o.loc.asPoint; Pen.addOval(Rect.aboutPoint(p, o.siz ...
-
... te drag or a symbol like \isCntrl var <>background, <styles, <defaultStyle; var pen, boxWidth, boxHeight, boxBounds, font; var plus, mainInlets, mainOutlets, mainPlus; *new { arg mx, w, bounds; ^super.new.init(mx, w, bounds); } init { arg a ...
-
... e tab positions and orders focusHistory, <window, <context, // thu GUI COntext <pen, >closeIcon, >detachIcon, left = 0, // probably obsolete top = 0 // probably obsolete ; *new{ arg parent, bounds; ^super.new.init(parent, bounds); } init{ a ...
-
... r.notNil, { over.loc= w.mouse; }); sprs.do{|spr| spr.update; //--render springs Pen.strokeColor= Color.grey; Pen.line(spr.object.loc.asPoint, spr.target.loc.asPoint); Pen.stroke; }; world.objects.do{|obj, i| obj.addForce(world.gravity); //w ...
-
... r.notNil, { over.loc= w.mouse; }); sprs.do{|spr| spr.update; //--render springs Pen.strokeColor= Color.grey; Pen.line(spr.object.loc.asPoint, spr.target.loc.asPoint); Pen.stroke; }; world.objects.do{|obj, i| obj.addForce(world.gravity); //w ...