-
... tX, extY; dx = rect.left; dy = rect.top; extX = rect.width; extY = rect.height; Pen.use{ Pen.color = color; Pen.translate(dx, dy); Pen.moveTo((0)@(extY*0.5)); Pen.lineTo(extX@(extY*0.5)); Pen.moveTo((extX*0.5)@(0)); Pen.lineTo((extX*0.5)@(e ...
-
... nc = { | view | var case_height = view.bounds.height / parameters.size; Pen.fillColor_( colors[ selected_view ] ); Pen.fillRect( Rect( case_height * 0.2, case_height * selected_view + ( case_height * 0.2 ), view.bou ...
-
... mCogs*outerTeethBA), Point(size*0.5*outerRadB, size*pi/numCogs*outerTeethAB) ]; Pen.width= lineWidth; Pen.translate(size*0.5, size*0.5); Pen.strokeOval(Rect.aboutPoint(Point(0, 0), size*0.5*innerRad, size*0.5*innerRad)); numCogs.do{|i| Pen. ...
-
... - 4; var height = bounds.height - 4; var satPreLeft, satLeft; if (preAmp > 0) { Pen.color_(preCol); Pen.addRect(Rect(2,2, preAmp * maxwid, height)); Pen.fill; if (preAmp > 1.0) { Pen.color_(preSatCol); satPreLeft = (1 - (preAmp - 1).clip(0, ...
-
// wslib 2007 // Pen-based plot view PlotView : SCUserView { var <value; var <lineColor, <lineWidth = 1; var <dotColor, <dotSize = 0; var <fillColor, <fill = false; var <border = 1, <borderColor; var <minVal = 0, <maxVal = 1; var orientatio ...
-
Messing around with pen, trying not to use randomness. Turned out like a 90's screen saver. w = Window("screensaver", Window.screenBounds).front.fullScreen; w.view.keyDownAction = { w.close }; u = UserView(w, w.view.bounds); u.background ...
-
... sSymbolRatio ); var newSymbolSize; symbolSize = symbolSize - super.outlineSize; Pen.strokeColor_(super.outlineColor); super.drawFrame(super.backgroundColor); // Draw highlights if(thisDisplayHighlights) { if(thisHighlights.notNil) { min( th ...
-
... be compiled // BEFORE we can compile this particular class Class.initClassTree(Pen); Class.initClassTree(GMStyle); Class.initClassTree(Point); } init { super.init; this.style_(GMStyle.default); caseSize = Point(1, 1); thisGridSize = Point( ...
-
... signed sound fillcolor = Color.white; // the color of impregnation } draw { GUI.pen.use({ GUI.pen.width = 0.8; GUI.pen.translate(point.x, point.y); GUI.pen.moveTo(0@0); if(selected, { GUI.pen.strokeColor = Color.black; GUI.pen.strokeOval(Re ...
-
... ToDraw, height = 1| var radius = 5; radius = radius.min( rectToDraw.height/2 ); Pen.moveTo( (rectToDraw.left - 1) @ 0 ); Pen.lineTo( (rectToDraw.left + 1) @ 0 ); Pen.lineTo( (rectToDraw.left + 1) @ (rectToDraw.top - radius) ); Pen.arcTo( (r ...