-
... length obj.addForce(world.gravity); obj.update; world.contain(obj); //--render Pen.strokeColor= Color.grey; Pen.line(obj.loc.asPoint, trg.loc.asPoint); Pen.stroke; Pen.fillColor= Color.red; Pen.fillOval(Rect.aboutRedObject2D(trg)); Pen.fil ...
-
... 00, 400,170), resizable:false).front } ); win.drawHook = { // set the Color GUI.pen.color = Color.new255(255, 100, 0); GUI.pen.width = 3; GUI.pen.translate(28,28); GUI.pen.scale(1.6, 1.6); GUI.pen.moveTo(1@7); p.do({arg point; GUI.pen.lineT ...
-
... r community. This demonstrates how to : - Create a standalone module which opens inside a new window, - Create a custom graphical 2d slider. Be careful, it only responds to mouse action, not to keyboard instructions, - Write a simple ...
-
AbstractSplineGui : ObjectGui { var uv,pen,<>alpha=1.0; var <>color,<>crossHairsColor,<>textColor; var <>pointSize=3,<>font,<>showGrid=true; gui { arg parent,bounds,userView; if(userView.notNil,{ parent = userView.parent; bounds = bounds ?? ...
-
... hisSVGPath == "").not) { thisSVG.free; }; thisSVGPath = aPath; thisSVG = Image.openSVG(thisSVGPath); thisSVGSize = Point(thisSVG.width, thisSVG.height); this.resizeSVG; } resizeSVG { var buttonSize = min( super.interactionRect.width, super. ...
-
... |b| b.start}); //edit here to match your board //var board= CytonWifi(NetAddr("OpenBCI_WifiShieldOSC.local", 13999), initAction: {|b| b.start}); //var board= SyntheticData(initAction: {|b| b.start}); //synthetic test data //var board= Playb ...
-
... rt, end| ^this.class.new( *points.copyRange( start, end ) ) } drawFunction { ^{ Pen.moveTo( points[0] ); points[1..].do({ |point| Pen.lineTo(point) }); } } drawFunctionJ { ^{ JPen.moveTo( points[0] ); points[1..].do({ |point| JPen.lineTo(po ...
-
... th+50)).front;\ window.view.background_( Color .black);\ window.drawHook = \\ \ Pen .use \\ Pen .translate(10, 10);\ colors.do\ |color, i| \ color.set;\ Pen .fillRect( Rect (pad/2, 0, i_width, i_width));\ /*Pen.addAnnularWedge(Point(*((pad+ ...
-
... { innerRect = scaledRect.insetBy(0.5,0.5); //selected outline if( selected ) { Pen.width = 2; Pen.color = Color.grey(0.2); this.drawShape(scaledRect); Pen.stroke; }; //event is playing if( event.isPlaying ) { Pen.width = 3; Pen.color = Col ...
-
... { innerRect = scaledRect.insetBy(0.5,0.5); //selected outline if( selected ) { Pen.width = 2; Pen.color = Color.grey(0.2); this.drawShape(scaledRect); Pen.stroke; }; //event is playing if( event.isPlaying ) { Pen.width = 3; Pen.color = Col ...