-
... FUNCTIONS // ///////////////////////////// drawCircle { |position, symbolSize| Pen.addArc( position, (symbolSize / 2), 0, 2pi ); Pen.fill; if(super.outlineSize > 0) { Pen.addArc( position, (symbolSize / 2) - (super.outlineSize * 2), 0, 2pi ...
-
... x, y, mod| drawList.do({ |object| object.mouseUp(x, y); }) }) .drawFunc_({ GUI.pen.color = background; // background color GUI.pen.fillRect(Rect(0.5, 0.5, rect.width-1, rect.height-1)); // background fill GUI.pen.color = Color.black; drawL ...
-
... fault ); size = this.object.size; view.fromBounds = Rect( 0, 1.1 ,size, -1.2 ); Pen.use({ points = this.points.asCollection.collect(_.asPoint); mean = object.mean; Pen.color = Color.gray(0.5,0.5); [ 0@0, "%", 0@1, "%", 0@ud, "%", 20@(object ...
-
... ing;\ var format = [340, 360];\ var colors = [ Color .black, Color .gray];\ var penWidth = 1;\ \ #e, f = [a, b].collect();\ \ \ \ // based on example of SCUserView \ drawing = \ | collective, i | \ \ var w, v, txt, tmppoints, undone, all, p ...
-
... ); var fixtureBounds = Rect( extentHalf.x, extentHalf.y, *extentHalf.asArray ); Pen.use{ Pen.color = Color.black; Pen.fillRect(bounds); // color Pen.color = color; Pen.fillRect(colorBounds); // white Pen.color = white; Pen.fillRect(whiteBou ...
-
... Pt; if (ghostPos.notNil) { xpos = ghostPos * width; centPt = xpos@(height*0.5); Pen.color_(dict[\ghostCol]); Pen.width_(1); Pen.addRoundedRect(Rect.aboutPoint(centPt, 8, height*0.5 - 2), 5, 5); Pen.addArc(centPt, 5, 0, 2pi); Pen.stroke; }; ...
-
... super.drawBackground(super.backgroundColor); // Draw beat if(thisBeat != -1) { Pen.fillColor_(super.beatColor); if(super.orientation == \horizontal) { Pen.fillRect( Rect( super.interactionRect.left + (thisBeat * (super.interactionRect.widt ...
-
... rand2, mass, mass*10); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ Pen.strokeColor= Color.grey(0.5); Pen.strokeRect(Rect.aboutRedVector3D(RedVector[width*0.5, height*0.5, depth], width*0.5, width, height, depth, s, f)); Pen.str ...
-
... |vw| if( View.currentDrag.notNil && { canReceiveDragHandler.value == true; }) { Pen.width = 2; if( current === vw ) { Pen.color = color.copy.alpha_(1); } { Pen.color = color.copy.alpha_(0.25); }; Pen.roundedRect( vw.bounds.moveTo(0,0).inset ...
-
... |vw| if( View.currentDrag.notNil && { canReceiveDragHandler.value == true; }) { Pen.width = 2; if( current === vw ) { Pen.color = color.copy.alpha_(1); } { Pen.color = color.copy.alpha_(0.25); }; Pen.roundedRect( vw.bounds.moveTo(0,0).inset ...