-
... eil.do({ |i| (bounds.width/tileSize).ceil.do({ |ii| if( ((i + ii) % 2) == 1 ) { Pen.addRect( Rect( ii * tileSize, i * tileSize, tileSize, tileSize ) ); }; }); }); Pen.fillAxialGradient( bounds.leftBottom + (0@(tileSize.neg)), bounds.leftTop ...
-
... xtH)) .align_(labelAlign) .font_(Font("Helvetica", labelSize)) .string_(""); // Pen draws in here usrView = UserView(compView, Rect(0, txtH, size, size)).canFocus_(false); scs= XiiDiscs.new; // does the interval calcs dotsColFn = { Color.bl ...
-
... ing;\ var format = [340, 360];\ var colors = [ Color .black, Color .gray];\ var penWidth = 1;\ \ \ // based on example of SCUserView \ drawing = \ | collective | \ \ var w, v, txt, tmppoints, undone, all, participation;\ tmppoints = (); // ...
-
... .3; var outer= view.bounds.height*0.5; var slice= 2pi/RedMst.clock.beatsPerBar; Pen.color_(colFore); RedMst.clock.beatsPerBar.do{|x| Pen.addAnnularWedge( midPnt, inner, outer, x*slice+1.5pi, slice ) }; Pen.stroke; Pen.addAnnularWedge( midPn ...
-
... super.interactionRect.width * colorPickerWidth) - (margin * 1.5)).do({ |xIndex| Pen.addRect( Rect( super.interactionRect.left + margin + xIndex, yOrigin, 1, ( (super.interactionRect.height - (margin * 3)) * (1 - previewHeight) ) ); ); Pen.f ...
-
... 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; }; ...
-
... {|view| var mult = view.bounds.extent.asArray; // clipping into the boundingbox Pen.addRect( view.bounds.moveTo( 0, 0 )); Pen.clip; // draw Background Pen.color = background; Pen.addRect( view.bounds.moveTo( 0, 0 )); Pen.fill; normedData.do ...
-
... s.height); blackKeySize= Size(whiteKeySize.width*0.6, whiteKeySize.height*0.6); Pen.push; x= 0; Pen.strokeColor= Color.black; keys.do{|key| var strRect, velPoint; if(key.isWhite, { key.put(\rect, Rect(x, 0, whiteKeySize.width, whiteKeySize. ...
-
... aPath| if(thisIMG.notNil) { this.free; }; thisSVGPath = aPath; thisIMG = Image.openSVG(aPath); thisSVGSize = Point( thisIMG.width, thisIMG.height ); this.prResizeSVG; } svgRatio { ^thisSVGRatio } svgRatio_ { |aFloat| thisSVGRatio = aFloat; ...
-
... works with touch on smartphones, here: "https://s4ntp.org/ntmi/play#username".openOS; // The webmouse message is: 0: message name \mouse 1: random influx chan 1, stays constant for this touch-sequence 2: random influx chan 2 for this touch ...