-
... VG11/ // and checked with Adobe's SVG web-browser plugin and Illustrator // the Pen class methods in sc look a lot like the instructions found in // SVG files, so almost all vector elements can be drawn in SCWindows. (SVGXXX-plot methods) / ...
-
... along with a renderFunc that will be called to render the object's display. the Pen will be offset so the renderFunc should draw the object at 0,0 todo: selection rectangle copy icon not showing no copy icon if no copy func keydown action e ...
-
... .copy.height_( 92 ), object ? xyView.object ); timeView.resize_(8); xyView.addDependant({ this.updateTimeView; if( xyView.mouseMode != \record ) { timeView.mouseMode = xyView.mouseMode; }; if( xyView.object != timeView.object ) { timeView.o ...
-
... tory = 0, <labelPadding = 20, left=0, top=0, <>swingFactor, <view; var context, pen; *new{ arg parent, bounds, labels, colors, name=" ", scroll=false; ^super.new.init(parent, bounds, labels, colors, name, scroll ); } init{ arg parent, bound ...
-
... ; dim = dimVector ? Cartesian(100,100,100); } draw {|func| userView.drawFunc= { Pen.translate(this.bounds.width/2,this.bounds.height/2); Pen.scale(zoom,zoom); Pen.translate(xTranslate,yTranslate); func.value(); Pen.translate(0,0); Pen.scale ...
-
+ Pen { *transformToRect {|rect, fromRect, keepRatio = false, scale = 1, move = 0.5| var scaleAmt; rect = rect ?? {Rect(0,0,400,400)}; fromRect = fromRect ? rect; rect = fromRect.scaleCenteredIn( rect, keepRatio, scale, move ); scaleAmt = ( ...
-
... r.interactionRect.width / thisCycles[cycle]; nTimes.do({ |time| var radius = 2; Pen.fillColor_(Color.grey); if(thisStates[cycle] == time) { Pen.fillColor_(super.mainColor); radius = min( caseSize.x * 0.4, caseSize.y * 0.4 ); }; Pen.addArc( ...
-
... _(Color.white.alpha_(0)) .resize_(5) .drawFunc_({arg view; var b = view.bounds; Pen.use { Pen.scale( b.width / imgWidth, b.height / imgHeight ); Pen.drawImage( 0@0, image ); }; if( drawCrossHair, { Pen.color = crosshaircolor; Pen.addRect( b ...
-
//a pendulum in 3d ( var width= 300, height= 300, depth= 300, w, wgrav, world, obj, ploc, s= 1, f= 0.1; //--world w= RedWindow("pendulum 3d", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0, 0]; world= RedWorld(RedVector3D[widt ...
-
... ); } fill { |rect, tileMode=1, alpha=1.0, fromRect, operation = 'sourceOver'| ^Pen.use{ Pen.clip; this.drawBackground( rect, tileMode, alpha, fromRect, operation ); }; } penFill { |rect, alpha=1.0, fromRect, tileMode=1, operation = 'source ...