-
Pen: Filter: Description Class methods Construct path moveTo lineTo line curveTo quadCurveTo arcTo addArc addWedge addAnnularWedge addRect addOval Draw the path stroke fill draw fillStroke Construct and draw strokeRect fillRect strokeOval f ...
-
... ont; (startGeneration-1).do{lsys.next}; commands= ( $F: {|length, theta, noise| Pen.line(Point(0, 0), Point(0, length)); Pen.stroke; Pen.translate(0, length); {Pen.translate(0, 0-length)}; }, $G: {|length, theta, noise| Pen.translate(0, len ...
-
... t.addFirst([~leftObj.loc[0], ~rightObj.loc[0]]); //store x positions //--render Pen.strokeColor= Color.red; Pen.line(~leftObj.loc.asPoint, leftWall.loc.asPoint); Pen.line(~rightObj.loc.asPoint, rightWall.loc.asPoint); Pen.stroke; Pen.stroke ...
-
... update; world.contain(obj); world.contain(obj2); world.contain(trg); //--render Pen.strokeColor= Color.grey; Pen.line(obj.loc.asPoint, trg.loc.asPoint); Pen.line(obj2.loc.asPoint, trg.loc.asPoint); Pen.stroke; Pen.fillColor= Color.red; Pen. ...
-
... ; o.addForce(world.gravity); o.update; world.contain(o); }; groups.do{|list, i| Pen.strokeColor= colors[i]; list.do{|p, j| Pen.addRect(Rect.aboutPoint(p, 0.5, 0.5)); }; Pen.stroke; }; Pen.strokeColor= Color.white; kmeans.centroids.do{|cent, ...
-
... c, vel, acc, 1.5, 10); //world,loc,vel,acc,mass,size }.dup(n); //--loop w.draw{ Pen.strokeColor= Color.white; world.objects.do{|o| o.addForce(o.world.gravity); o.update; world.contain(o); //Pen.addRect(Rect.aboutPoint(o.loc.asPoint, o.size, ...
-
... Func({arg uview; var value_string = v.value.round(0.01).asString; var string_x; Pen.font = Font("Helvetica",11); string_x= (v.value*300).clip(4, 300-26); Pen.color = Color.white.alpha_(0.7); Pen.addRect(Rect(string_x-1,1,26,12)); Pen.fill; ...
-
QPenPrinter: Filter: Description Class methods new print Inherited class methods Instance methods Printing showDialog print newPage Properties paperRect pageRect pageSize Page range fromPage toPage Inherited instance methods Undocumented in ...
-
... GUI > Views'>Views UserView : View : QObject : Object A custom drawn view using Pen Source: QUserView.sc Subclasses: QUserView See also: Pen Description An empty view on which you can draw using the Pen class. This view displays and does no ...
-
... cus = false; c.drawFunc = { Color.grey(0.8).set; // draw the speaker layout GUI.pen.translate(200,200); ((actPoint.theta + (0.5pi)).wrap2(pi) * rtoang).round(0.01).asString.drawCenteredIn(Rect.aboutPoint(0@170, 30, 10), GUI.font.new("Arial" ...