-
SCPen draw on a SCWindow Inherits from: Object A class which allows you to draw on a SCWindow . It has no instance methods. The following methods must be called within an SCWindow-drawHook or a SCUserView-drawFunc function, and will only be ...
-
... bject : SCView SCUserView is a user-definable View intended mainly for use with Pen and drawHooks. It is also good for making custom buttons or other gui interfaces and displays. Thus anything you can draw with the methods of Pen , combined ...
-
... SCUserView this.drawFunc={ this.draw}; } // (4) define a drawing function for SCPen draw{ // Draw the fill SCPen.fillColor = Color.grey; Pen.addRect(Rect(0,0, this.bounds.width*value,this.bounds.height)); Pen.fill; // Draw the triangle SCPe ...
-
Pen a cross-platform redirector for a GUI widget Inherits from: Object : ViewRedirect This class will return the gui kit specific version of a Pen. See also: GUI , GUI-Classes , GUI-Overview Examples and Documentation: For examples and plat ...
-
... i kits, and also provides syntax for transparently writing kit and platform independent code. Two main classes control this mechnanism: the gui factory abstraction class, GUI , and the subclasses of ViewRedirect , which transparently uses t ...
-
... Point((i+1 * 20)@0, Font ( "Courier" , 9), Color .black); }); }; d.drawFunc = { Pen .use({ Pen .translate(0, 5); drawFunc.value; }); Pen .translate(15, 0).rotate(0.5pi); drawFunc.value; }; e.drawFunc = { Pen .translate(40, 0).rotate(0.5pi); ...
-
... Hook = { n.do { |x| n.do { |y| var z = field[x][y]; z = f.(z); field[x][y] = z; Pen .color = Color .gray(z.rho.linlin(-100, 100, 1, 0)); Pen .addRect( Rect (x * dx, y * dy, dx, dy) ); Pen .fill } } }; fork({ 6.do { w.refresh; 2.wait } }, Ap ...
-
... ge .new(20,20); j.draw({ arg image; var lozenge; lozenge = Rect (3, 3, 16, 16); Pen .addOval(lozenge); Pen .fillAxialGradient(1@1, 19@19, Color .new255(255, 165, 0), Color .new255(238, 232, 170)); Pen .width = 1; Pen .strokeColor = Color .b ...
-
... t is a Char . "ABCDEFG" .at(2).postln; compare(aString) Returns a -1, 0, or 1 depending on whether the receiver should be sorted before the argument, is equal to the argument or should be sorted after the argument. This is a case sensitive ...
-
... in which to host SCView , SCWindow is also a canvas on which you can draw using Pen. See the SCPen file for many examples. For modal versions of SCWindow see SCModalWindow and SCModalSheet . See also: SCView , GUI , SCScrollTopView , SCPen ...