-
... .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 = ( ...
-
... s methods new Inherited class methods Instance methods draw play stop resize isOpen mouse isPlaying clear userView Inherited instance methods Examples Classes (extension) | Red > redUniverse'>redUniverse RedWindow Extension wrapper for User ...
-
... 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( ...
-
Damped Driven Double Pendulum Sonification and Visualization by xavieredavenport (xavieredavenport) Code
... run ctrl+. to stop Version 1. A little toy physics simulation of a double pendulum with damping and drive. The math is a little inconsistent in SuperCollider when dealing with numbers super small and super large, especially when trig ...
-
... _(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 ...
-
//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 ...