-
... * 0.5 ); var name; rect = vw.bounds.moveTo(0, 0).insetBy(1,1); if( pressed ) { Pen.width = 2; fillColor = hiliteColor; fillRect = rect.insetAll(0, (1 - value) * rect.height,0,0 ); if (useMoveValue) { fillRect2 = rect.insetAll(0, (1 - moveV ...
-
... TALLED! See also: RedLTurtle , RedIFS , RedMandelbrot Description Plotting with Pen . After Flake - "The Computational Beauty of Nature". Class Methods . new Arguments: drawFunc A Function that draws something. matrices An array of arrays d ...
-
//simple pendulum in a world with gravity ( var width= 300, height= 300, w, wgrav, world, n= 1, ploc; //--world w= RedWindow("pendulum test1", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedVector2D[wid ...
-
//simple pendulum in a world with gravity ( var width= 300, height= 300, w, wgrav, world, n= 1, ploc; //--world w= RedWindow("pendulum test1", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedVector2D[wid ...
-
... ctor2D[0, 0], 1.5, 10) }.dup(n); //world,loc,vel,acc,mass,size //--loop w.draw{ Pen.strokeColor= Color.green; rep.loc= w.mouse; Pen.strokeRect(Rect.aboutRedObject2D(rep)); Pen.strokeColor= Color.white; world.objects.do{|o| if(o!=rep, { o.ad ...
-
... ctor2D[0, 0], 1.5, 10) }.dup(n); //world,loc,vel,acc,mass,size //--loop w.draw{ Pen.strokeColor= Color.green; rep.loc= w.mouse; Pen.strokeRect(Rect.aboutRedObject2D(rep)); Pen.strokeColor= Color.white; world.objects.do{|o| if(o!=rep, { o.ad ...
-
//a few pendulums that attract eachother ( var width= 300, height= 300, w, wgrav, world, n= 18, ploc; //--world w= RedWindow("pendulum test3", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedVector2D[wid ...
-
//a few pendulums that attract eachother ( var width= 300, height= 300, w, wgrav, world, n= 18, ploc; //--world w= RedWindow("pendulum test3", Rect(128, 64, width, height)).front; wgrav= RedVector2D[0, 0.98]; world= RedWorld(RedVector2D[wid ...
-
... barSize = view.bounds.height * displayRatio * timesNotesWerePlayed[index]; Pen.fillColor_( Color( myFavoriteColor.red + (mySecondFavoriteColor.red - myFavoriteColor.red * timers[index]), myFavoriteColor.green + ...
-
... os / selectionDelta) * bounds.width; // *bufferGlobalLimits[0] } drawplayhead { Pen.line( Point(playhead, bounds.top+1), Point(playhead, bounds.bottom) ); } updateLabel { label.bounds = Rect(canvasBounds.left+2, bounds.bottom-10, 100, 15) ; ...