-
... 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 ...
-
... 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 ...
-
... rray; }; // Slider Draw Function draw_slider = { | slider, value, color | Pen.width = stroke_size; // Draw the frame Pen.strokeColor = Color.white; Pen.fillColor = Color.black; Pen.addRect(Rect(0, 0, slider.bounds.width,slid ...
-
... |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 ...
-
... contain(~objA); world.contain(~objB); bary= ~objA.barycenter(~objB); //--render Pen.strokeColor= Color.magenta; Pen.strokeOval(Rect.aboutRedObject2D(~objA)); Pen.strokeColor= Color.cyan; Pen.strokeOval(Rect.aboutRedObject2D(~objB)); Pen.fil ...
-
... contain(~objA); world.contain(~objB); bary= ~objA.barycenter(~objB); //--render Pen.strokeColor= Color.magenta; Pen.strokeOval(Rect.aboutRedObject2D(~objA)); Pen.strokeColor= Color.cyan; Pen.strokeOval(Rect.aboutRedObject2D(~objB)); Pen.fil ...
-
... one of the values of QToolButtonStyle . Discussion: ( ~icon = Image(64).draw({ Pen.fillOval(Rect(0, 0, 64, 64)) }); ~styles = QToolButtonStyle.classVarNames; ~tool = ToolBar( MenuAction("Text") .icon_(~icon) .action_({ ~tool.toolButtonStyl ...
-
... sys.wave.wrapAt(i)]); }; //sys.addForce(world.gravity); sys.update; //--render Pen.fillColor= Color.grey(1, 0.5); //Pen.strokeColor= Color.grey(1, 0.5); //Pen.moveTo(sys.objects[0].loc.asPoint); sys.do{|o, i| Pen.fillOval(Rect.aboutRedObje ...