-
... lization of the values of the number boxes. The first node represents the start point, the second the sustain point and the third the end point"}); var pitchEnvB = EnvelopeView() .value_() .thumbSize_(7) .strokeColor_(Color.new(0, ...
-
... lization of the values of the number boxes. The first node represents the start point, the second the sustain point and the third the end point"}); var pitchEnvB = EnvelopeView() .value_() .thumbSize_(7) .strokeColor_(Color.new(0, ...
-
... user can draw using the mouse. //LET'S PAINT! //select all and compile var point, red, green, blue, win, view, colorTask; var redChange, greenChange, blueChange; //rate of change of each color component //mess around with these va ...
-
... aveTop = height * 0.25, waveMid = 0.5 * (waveTop + height), mapY = { |x, y| Point(x, y.linlin(-1, 1, height-1, waveTop)) }; var fg = Color.gray(0.8), scoreColor = Color(1, 1, 0.4, 0.5); var oneGrain = { |start = 0, samps = 100 ...
-
... r layout = UserView(); var background_color = Color( 0, 0, 0 ); var rythm = Point( 4, 4 ); var rythm_length = ( rythm.x * rythm.y ); var tempo = 1; var parameters = Array.fill( 4, { Array.fill( ( rythm_length + 1 ), { 0 } ) } ); ...
-
... TempoClock.default.beats - starttime; var x1, y1; // coordinates of rotating point 1 var r1 = 100; // radius var ox1 = 500; // disc center var oy1 = 500; var f1 = 1; // rotation frequency var x2, y2; var r2 = 100; ...
-
... 0,0]; var friction = 1.15; var width = 600, height = 700; var ballPosition = Point(width/2, height/2); var ballSize = 10; var ballXMovement = rand2(1.5); var ballYMovement = 3.0*((rand(2)*2)-1); var ballMaxSpeed = 30; var scores = [ ...
-
... caleY = height * (0.5 - scale), scaleX; Pen.color_(Color.gray(0.7)) .moveTo(Point(0, scaleY)).lineTo(Point(width, scaleY)) .moveTo(Point(0, height - scaleY)).lineTo(Point(width, height - scaleY)) .moveTo(Point(0, height * 0.5)).line ...
-
Visual demonstration of aliasing/foldover (modified from James Harkins) by jnarveson (jnarveson) Code
... r, width = (screen.width - 120).asInteger, win = Window(\aliasing, Rect.aboutPoint(screen.center, width / 2, height / 2 + 60)).background_(Color.white), sinPts = 400, sampPts = 20, sr, freq = 1, fsl, sinColor = Color.red, sampColor ...
-
... Color.green, numSteps = 64, cstep = reciprocal( numSteps-1 ); var point = Point(wi/2,he/2); var rect1 = Rect.aboutPoint( point, 10,10 ); var rect2 = Rect.aboutPoint( point, 140,140 ); var xstep = ( r ...