-
... t.forward(100); ) w = SCWindow .new.front ( w.drawHook = { Pen .use { t.stroke; Color .red.set; Pen .fillRect( Rect (100,100,4,4)); Color .green.set; Pen .fillRect( Rect (0,0,4,4)); } }; w.refresh; ) f = { |turtle, length = 100, depth = 1| ...
-
... mass,size hypercubes= {|i| Red4DTesseract()}.dup(n); //--loop w.draw{ Pen.strokeColor= Color.white; Pen.fillColor= Color.green(1, 0.25); world.objects.do{|o, i| thetas[i]= thetas[i]+speeds[i]; hypercubes[i].rotation= RedVector.newFrom(theta ...
-
//redFrik Redraw { var <win, <mouse, mod, pmouse, userView, strokeColor, width; *new {|bounds| ^super.new.initRedraw(bounds); } initRedraw {|bounds| bounds= bounds ?? {Rect(300, 300, 500, 500)}; win= Window("redraw", bounds, false); userVie ...
-
... mass,size hypercubes= {|i| Red4DTesseract()}.dup(n); //--loop w.draw{ Pen.strokeColor= Color.white; Pen.fillColor= Color.green(1, 0.25); world.objects.do{|o, i| thetas[i]= thetas[i]+speeds[i]; hypercubes[i].rotation= RedVector.newFrom(theta ...
-
... SCUserView on which this class is based background gets and sets the background color *window Creates an ScaledUserViewWindow instead ScaledUserView .window; drawFuncs Next to the drawFunc , as used in the above examples, there are several ...
-
... I { classvar <>showControl = true, <>showAudio = true; var <analyzers; var <unitColors; var <>audioMax = 0, <>controlMax = 0; makeViews { |bounds| analyzers = ( \audio: UChainAudioAnalyzer(chain), \control: UChainControlAnalyzer(chain) ); R ...
-
... ld,loc,vel,acc,mass,size boxes= {Red3DBox()}.dup(n); //--loop w.draw{ Pen.strokeColor= Color.white; Pen.fillColor= Color.green(1, 0.25); world.objects.do{|o, i| thetas[i]= thetas[i]+speeds[i]; boxes[i].rotation= RedVector3D[thetas[i], theta ...
-
... ld,loc,vel,acc,mass,size boxes= {Red3DBox()}.dup(n); //--loop w.draw{ Pen.strokeColor= Color.white; Pen.fillColor= Color.green(1, 0.25); world.objects.do{|o, i| thetas[i]= thetas[i]+speeds[i]; boxes[i].rotation= RedVector3D[thetas[i], theta ...
-
... ow("fft gui example userview", Rect(100, 100, width, height)).front; img= Image.color(width, fft.fftSize2+1, Color.black).interpolation_(\fast); win.drawFunc= { channelData= fft.fft(channelData); if(~smoothingFilter.notNil, { channelData= ~ ...
-
... (win, Rect(0, 0, width, height)); var physics, anchor, springs; usr.background= Color.red; physics= TraerParticleSystem(0.1, 0.2, 0.3, 0.1); num.do{|i| physics.makeParticle(0.5, width.rand, height.rand, 0)}; anchor= physics.makeParticle(1, ...