3 classvar font, fillColor, strokeColor;
10 str.drawAtPoint( Point( 0, 0 ), font ? SCFont.default, fillColor ? Color.black );
13 *stringAtPoint { arg str, point;
14 str.drawAtPoint( point, font ? SCFont.default, fillColor ? Color.black );
17 *stringInRect { arg str, rect;
18 str.drawInRect( rect, font ? SCFont.default, fillColor ? Color.black );
21 *stringCenteredIn { arg str, inRect;
22 str.drawCenteredIn( inRect, font ? SCFont.default, fillColor ? Color.black );
25 *stringLeftJustIn { arg str, inRect;
26 str.drawLeftJustIn( inRect, font ? SCFont.default, fillColor ? Color.black );
29 *stringRightJustIn { arg str, inRect;
30 str.drawRightJustIn( inRect, font ? SCFont.default, fillColor ? Color.black );
34 img.drawAtPoint( Point( 0, 0 ), img.bounds );
37 *imageAtPoint { arg img, point;
38 img.drawAtPoint( point, img.bounds );
41 *strokeColor_ { arg color;
46 *fillColor_ { arg color;
52 color = color ? Color.black;
71 *translate { arg x=0, y=0;
76 *scale { arg x=0, y=0;
86 *rotate { arg angle=0, x=0, y=0;
91 *width_ { arg width = 1;
100 res = function.value;
107 ^this.primitiveFailed
112 ^this.primitiveFailed
117 ^this.primitiveFailed
121 ^this.moveTo(p1).lineTo(p2);
124 *addArc { arg center, radius, startAngle, arcAngle;
126 ^this.primitiveFailed
129 *addWedge { arg center, radius, startAngle, arcAngle;
131 ^this.primitiveFailed
134 *addAnnularWedge { arg center, innerRadius, outerRadius, startAngle, arcAngle;
136 ^this.primitiveFailed
141 ^this.primitiveFailed
146 ^this.primitiveFailed
151 ^this.primitiveFailed
156 ^this.primitiveFailed
158 *matrix_ { arg array;
160 ^this.primitiveFailed
163 *strokeRect { arg rect;
165 ^this.primitiveFailed
168 *fillRect { arg rect;
170 ^this.primitiveFailed
173 *strokeOval { arg rect;
175 ^this.primitiveFailed
178 *fillOval { arg rect;
180 ^this.primitiveFailed
183 *drawAquaButton { arg rect, type=0, down = false, on = false;
185 ^this.primitiveFailed
188 *setSmoothing { arg flag = true;
189 this.deprecated(thisMethod, Meta_SCPen.findRespondingMethodFor(\smoothing_));
190 this.smoothing = flag;
193 *smoothing_ { arg flag = true;
195 ^this.primitiveFailed
204 *clearRect {arg aRect=nil;
206 ^this.primitiveFailed
209 *arcTo { arg point1, point2, radius;
211 ^this.primitiveFailed
214 *curveTo { arg point, cpoint1, cpoint2;
216 ^this.primitiveFailed
219 *quadCurveTo { arg point, cpoint1;
221 ^this.primitiveFailed
224 *alpha_ {arg opacity;
226 ^this.primitiveFailed
230 different blend modes:
265 *blendMode_{ arg mode;
267 ^this.primitiveFailed
270 *setShadow { arg offsetPoint=Point(2,2), blur=0.5, color=Color.black;
271 this.prSetShadow(offsetPoint, blur, color);
274 *prSetShadow { arg offsetPoint, blur, color;
276 ^this.primitiveFailed
279 *beginTransparencyLayer {
281 ^this.primitiveFailed
284 *endTransparencyLayer { // will work only for Mac Os X >= 10.3 - does nothing for others
286 ^this.primitiveFailed
289 *draw { arg option = 0;// 0 = fill, 1 = eofill, 2 = stroke, 3 = fillstroke, 4 = eofillstroke
291 ^this.primitiveFailed
294 *joinStyle_ { arg style = 0; // 0 = miter, 1 = round, 2 = bevel
296 ^this.primitiveFailed
299 *capStyle_ { arg style = 0; // 0 = butt, 1 = round, 2 = square
301 ^this.primitiveFailed
304 *lineDash_ { arg pattern; // should be a FloatArray
306 ^this.primitiveFailed
311 ^this.primitiveFailed
314 *fillAxialGradient { arg startPoint, endPoint, color0, color1;
315 this.prFillAxialGradient(startPoint, endPoint, color0, color1);
318 *fillRadialGradient { arg innerCircleCenter, outerCircleCenter, startRadius,
319 endRadius, color0, color1;
320 this.prFillRadialGradient(innerCircleCenter, outerCircleCenter, startRadius,
321 endRadius, color0, color1)
324 *prFillAxialGradient { arg startPoint, endPoint, color0, color1;
325 _Pen_DrawAxialGradient
326 ^this.primitiveFailed
329 *prFillRadialGradient { arg innerCircleCenter, outerCircleCenter, startRadius,
330 endRadius, color0, color1;
331 _Pen_DrawRadialGradient
332 ^this.primitiveFailed
338 ^this.primitiveFailed
343 ^this.primitiveFailed