-
... r= UserView(win, Rect(0, 0, b.width, b.height)); usr.background= background ?? {Color.white}; usr.drawFunc= { Pen.translate(b.width*0.5, b.height*0.5); this.draw(b.width, b.height); }; win.front; ^win; } //--private prDraw {|index| if(index ...
-
... ww.glyph.de *******/ FancySlider : SCViewHolder { var <>step, <value=0, <>sliderColor,<>knobColor, <>orientation=\horizontal,<>frameColor,<>drawFunc, <>thumbSize=7; var <>shift_scale = 100.0, <>ctrl_scale = 10.0, <>alt_scale = 0.1; *new { a ...
-
... aticText().fixedHeight_(" ".bounds(fnt).height*6) .align_(\topLeft).background_(Color.grey(0.9, 0.5)) ); if(SGUI.currentTheme!=\dark, { win.view.children.select{|v| v.isKindOf(Slider)}.do{|v| v.background= Color.grey(0.7725, 0.5); }; }); SG ...
-
... ers from outside Ex. 6c: non standard usage: setting values for plotting Ex. 7: color grouping Ex. 8: EZSmoothSlider, EZRoundSlider Ex. 9: slider step precision Ex. 10: MIDI learn functionality with sliders Classes (extension) | Libraries > ...
-
... ]).action_({ win.visible = false; }); this.singSang(win, Rect(220, 15, 50, 30), Color.gray(alpha: 0), Color(0,0,0,rrand(0.3,0.9))); } updateTexts {|argVals| { genText.string = "Current generation: %".format(argVals[0]); fitText.string = "Cu ...
-
... At(i+1)); }; world.objects.do{|o| o.update}; //--render Pen.width= 5; Pen.strokeColor= Color.black; Pen.fillColor= Color.white; world.objects.do{|o| var p, x, y; p= o.loc.asPoint; Pen.addOval(Rect.aboutPoint(p, o.size, o.size)); x= sin(o.ph ...
-
... At(i+1)); }; world.objects.do{|o| o.update}; //--render Pen.width= 5; Pen.strokeColor= Color.black; Pen.fillColor= Color.white; world.objects.do{|o| var p, x, y; p= o.loc.asPoint; Pen.addOval(Rect.aboutPoint(p, o.size, o.size)); x= sin(o.ph ...
-
... sys.update; //--render sys.do{|o| //iterate all particles in the system Pen.fillColor= Color.grey((o.age/50), 1); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )
-
... sys.update; //--render sys.do{|o| //iterate all particles in the system Pen.fillColor= Color.grey((o.age/50), 1); Pen.fillOval(Rect.aboutRedObject2D(o)); }; }; w.play; CmdPeriod.doOnce({w.close}); )
-
... //////////////////////////////////// ( var buildTrackPoints, buildBandEnergy, mkColor; // Helper: Z354Sound-Partial -> Dorota track-points Array // Format pro Punkt: [t, f, normAmp, phase] buildTrackPoints = { |atsSound, partialIdx, numFram ...