all repos — simplyrpg @ 12669c61e2eec0d84ef981688888e4986778c0b8

Fork of https://github.com/harperd1/simplyRPG — multi-map VTT, token visibility, dark theme, stream HUD

libraries/EaselJS_docs/classes/Graphics.html (view raw)

    1<!DOCTYPE html>
    2<html lang="en">
    3<head>
    4    <meta charset="utf-8">
    5    <link rel="stylesheet" href="../assets/css/yui-cssgrids-min.css">
    6    <link rel="stylesheet" href="../assets/vendor/prettify/prettify-min.css">
    7    <link rel="stylesheet" href="../assets/css/main.css" id="site_styles">
    8    <link rel="shortcut icon" type="image/x-icon" href="../assets/favicon.ico">
    9    <script src="../assets/js/yui-source.js"></script>
   10	<title>EaselJS v1.0.0 API Documentation : Graphics</title>
   11</head>
   12<body class="yui3-skin-sam">
   13
   14<div id="doc">
   15    <div id="hd" class="yui3-g header">
   16        <div class="yui3-u-3-4">
   17            
   18                <h1><a href="http://www.createjs.com/easeljs"><img src="../assets/docs-icon-EaselJS.png" title="EaselJS"></a></h1>
   19            
   20        </div>
   21        <div class="version">
   22            <em>API Documentation for: 1.0.0</em>
   23        </div>
   24    </div>
   25    <div id="bd" class="yui3-g">
   26
   27        <div class="yui3-u-1-4">
   28            <div id="docs-sidebar" class="sidebar apidocs">
   29                <div id="api-list">
   30    <h2 class="off-left">APIs</h2>
   31    <div id="api-tabview" class="tabview">
   32        <ul class="tabs">
   33            <li><a href="#api-classes">Classes</a></li>
   34        </ul>
   35
   36        <div id="api-tabview-filter">
   37            <input type="search" id="api-filter" placeholder="Type to filter APIs">
   38        </div>
   39
   40        <div id="api-tabview-panel">
   41            <ul id="api-classes" class="apis classes">
   42            
   43                <li><a href="../classes/AlphaMapFilter.html">AlphaMapFilter</a></li>
   44            
   45                <li><a href="../classes/AlphaMaskFilter.html">AlphaMaskFilter</a></li>
   46            
   47                <li><a href="../classes/Bitmap.html">Bitmap</a></li>
   48            
   49                <li><a href="../classes/BitmapCache.html">BitmapCache</a></li>
   50            
   51                <li><a href="../classes/BitmapText.html">BitmapText</a></li>
   52            
   53                <li><a href="../classes/BlurFilter.html">BlurFilter</a></li>
   54            
   55                <li><a href="../classes/ButtonHelper.html">ButtonHelper</a></li>
   56            
   57                <li><a href="../classes/ColorFilter.html">ColorFilter</a></li>
   58            
   59                <li><a href="../classes/ColorMatrix.html">ColorMatrix</a></li>
   60            
   61                <li><a href="../classes/ColorMatrixFilter.html">ColorMatrixFilter</a></li>
   62            
   63                <li><a href="../classes/Container.html">Container</a></li>
   64            
   65                <li><a href="../classes/DisplayObject.html">DisplayObject</a></li>
   66            
   67                <li><a href="../classes/DisplayProps.html">DisplayProps</a></li>
   68            
   69                <li><a href="../classes/DOMElement.html">DOMElement</a></li>
   70            
   71                <li><a href="../classes/EaselJS.html">EaselJS</a></li>
   72            
   73                <li><a href="../classes/Event.html">Event</a></li>
   74            
   75                <li><a href="../classes/EventDispatcher.html">EventDispatcher</a></li>
   76            
   77                <li><a href="../classes/Filter.html">Filter</a></li>
   78            
   79                <li><a href="../classes/Graphics.html">Graphics</a></li>
   80            
   81                <li><a href="../classes/Graphics.Arc.html">Graphics.Arc</a></li>
   82            
   83                <li><a href="../classes/Graphics.ArcTo.html">Graphics.ArcTo</a></li>
   84            
   85                <li><a href="../classes/Graphics.BeginPath.html">Graphics.BeginPath</a></li>
   86            
   87                <li><a href="../classes/Graphics.BezierCurveTo.html">Graphics.BezierCurveTo</a></li>
   88            
   89                <li><a href="../classes/Graphics.Circle.html">Graphics.Circle</a></li>
   90            
   91                <li><a href="../classes/Graphics.ClosePath.html">Graphics.ClosePath</a></li>
   92            
   93                <li><a href="../classes/Graphics.Ellipse.html">Graphics.Ellipse</a></li>
   94            
   95                <li><a href="../classes/Graphics.Fill.html">Graphics.Fill</a></li>
   96            
   97                <li><a href="../classes/Graphics.LineTo.html">Graphics.LineTo</a></li>
   98            
   99                <li><a href="../classes/Graphics.MoveTo.html">Graphics.MoveTo</a></li>
  100            
  101                <li><a href="../classes/Graphics.PolyStar.html">Graphics.PolyStar</a></li>
  102            
  103                <li><a href="../classes/Graphics.QuadraticCurveTo.html">Graphics.QuadraticCurveTo</a></li>
  104            
  105                <li><a href="../classes/Graphics.Rect.html">Graphics.Rect</a></li>
  106            
  107                <li><a href="../classes/Graphics.RoundRect.html">Graphics.RoundRect</a></li>
  108            
  109                <li><a href="../classes/Graphics.Stroke.html">Graphics.Stroke</a></li>
  110            
  111                <li><a href="../classes/Graphics.StrokeDash.html">Graphics.StrokeDash</a></li>
  112            
  113                <li><a href="../classes/Graphics.StrokeStyle.html">Graphics.StrokeStyle</a></li>
  114            
  115                <li><a href="../classes/Matrix2D.html">Matrix2D</a></li>
  116            
  117                <li><a href="../classes/MouseEvent.html">MouseEvent</a></li>
  118            
  119                <li><a href="../classes/MovieClip.html">MovieClip</a></li>
  120            
  121                <li><a href="../classes/MovieClipPlugin.html">MovieClipPlugin</a></li>
  122            
  123                <li><a href="../classes/Point.html">Point</a></li>
  124            
  125                <li><a href="../classes/Rectangle.html">Rectangle</a></li>
  126            
  127                <li><a href="../classes/Shadow.html">Shadow</a></li>
  128            
  129                <li><a href="../classes/Shape.html">Shape</a></li>
  130            
  131                <li><a href="../classes/Sprite.html">Sprite</a></li>
  132            
  133                <li><a href="../classes/SpriteSheet.html">SpriteSheet</a></li>
  134            
  135                <li><a href="../classes/SpriteSheetBuilder.html">SpriteSheetBuilder</a></li>
  136            
  137                <li><a href="../classes/SpriteSheetUtils.html">SpriteSheetUtils</a></li>
  138            
  139                <li><a href="../classes/Stage.html">Stage</a></li>
  140            
  141                <li><a href="../classes/StageGL.html">StageGL</a></li>
  142            
  143                <li><a href="../classes/Text.html">Text</a></li>
  144            
  145                <li><a href="../classes/Ticker.html">Ticker</a></li>
  146            
  147                <li><a href="../classes/Touch.html">Touch</a></li>
  148            
  149                <li><a href="../classes/UID.html">UID</a></li>
  150            
  151                <li><a href="../classes/Utility Methods.html">Utility Methods</a></li>
  152            
  153                <li><a href="../classes/VideoBuffer.html">VideoBuffer</a></li>
  154            
  155                <li><a href="../classes/WebGLInspector.html">WebGLInspector</a></li>
  156            
  157            </ul>
  158
  159            <ul id="api-modules" class="apis modules">
  160            
  161                <li><a href="../modules/CreateJS.html">CreateJS</a></li>
  162            
  163                <li><a href="../modules/EaselJS.html">EaselJS</a></li>
  164            
  165            </ul>
  166        </div>
  167    </div>
  168</div>
  169
  170            </div>
  171        </div>
  172        <div class="yui3-u-3-4">
  173            <div id="api-options">
  174        Show:
  175        <label for="api-show-inherited">
  176            <input type="checkbox" id="api-show-inherited" checked>
  177            Inherited
  178        </label>
  179
  180        <label for="api-show-protected">
  181            <input type="checkbox" id="api-show-protected">
  182            Protected
  183        </label>
  184
  185        <label for="api-show-private">
  186            <input type="checkbox" id="api-show-private">
  187            Private
  188        </label>
  189        <label for="api-show-deprecated">
  190            <input type="checkbox" id="api-show-deprecated">
  191            Deprecated
  192        </label>
  193
  194    </div>
  195            <div class="apidocs">
  196                <div id="docs-main">
  197                    <div class="content">
  198                        <h1>Graphics Class</h1>
  199<div class="box meta">
  200    
  201
  202    
  203
  204    
  205        <div class="foundat">
  206            Defined in: <a href="../files/easeljs_display_Graphics.js.html#l41"><code>Graphics:41</code></a>
  207        </div>
  208    
  209
  210    
  211        
  212            Module: <a href="../modules/EaselJS.html">EaselJS</a>
  213        
  214    
  215
  216    
  217</div>
  218
  219
  220
  221<div class="box intro">
  222    <p>The Graphics class exposes an easy to use API for generating vector drawing instructions and drawing them to a
  223specified context. Note that you can use Graphics without any dependency on the EaselJS framework by calling <a href="../classes/Graphics.html#method_draw" class="crosslink">draw</a>
  224directly, or it can be used with the <a href="../classes/Shape.html" class="crosslink">Shape</a> object to draw vector graphics within the
  225context of an EaselJS display list.</p>
  226<p>There are two approaches to working with Graphics object: calling methods on a Graphics instance (the "Graphics API"), or
  227instantiating Graphics command objects and adding them to the graphics queue via <a href="../classes/Graphics.html#method_append" class="crosslink">append</a>.
  228The former abstracts the latter, simplifying beginning and ending paths, fills, and strokes.</p>
  229<pre class="code prettyprint"><code> var g = new createjs.Graphics();
  230 g.setStrokeStyle(1);
  231 g.beginStroke("#000000");
  232 g.beginFill("red");
  233 g.drawCircle(0,0,30);</code></pre>
  234<p>All drawing methods in Graphics return the Graphics instance, so they can be chained together. For example,
  235the following line of code would generate the instructions to draw a rectangle with a red stroke and blue fill:</p>
  236<pre class="code prettyprint"><code> myGraphics.beginStroke("red").beginFill("blue").drawRect(20, 20, 100, 50);</code></pre>
  237<p>Each graphics API call generates a command object (see below). The last command to be created can be accessed via
  238<a href="../classes/Graphics.html#property_command" class="crosslink">command</a>:</p>
  239<pre class="code prettyprint"><code> var fillCommand = myGraphics.beginFill("red").command;
  240 // ... later, update the fill style/color:
  241 fillCommand.style = "blue";
  242 // or change it to a bitmap fill:
  243 fillCommand.bitmap(myImage);</code></pre>
  244<p>For more direct control of rendering, you can instantiate and append command objects to the graphics queue directly. In this case, you
  245need to manage path creation manually, and ensure that fill/stroke is applied to a defined path:</p>
  246<pre class="code prettyprint"><code> // start a new path. Graphics.beginCmd is a reusable BeginPath instance:
  247 myGraphics.append(createjs.Graphics.beginCmd);
  248 // we need to define the path before applying the fill:
  249 var circle = new createjs.Graphics.Circle(0,0,30);
  250 myGraphics.append(circle);
  251 // fill the path we just defined:
  252 var fill = new createjs.Graphics.Fill("red");
  253 myGraphics.append(fill);</code></pre>
  254<p>These approaches can be used together, for example to insert a custom command:</p>
  255<pre class="code prettyprint"><code> myGraphics.beginFill("red");
  256 var customCommand = new CustomSpiralCommand(etc);
  257 myGraphics.append(customCommand);
  258 myGraphics.beginFill("blue");
  259 myGraphics.drawCircle(0, 0, 30);</code></pre>
  260<p>See <a href="../classes/Graphics.html#method_append" class="crosslink">append</a> for more info on creating custom commands.</p>
  261<p><h4>Tiny API</h4>
  262The Graphics class also includes a "tiny API", which is one or two-letter methods that are shortcuts for all of the
  263Graphics methods. These methods are great for creating compact instructions, and is used by the Toolkit for CreateJS
  264to generate readable code. All tiny methods are marked as protected, so you can view them by enabling protected
  265descriptions in the docs.</p>
  266<table>
  267    <tr><td><b>Tiny</b></td><td><b>Method</b></td><td><b>Tiny</b></td><td><b>Method</b></td></tr>
  268    <tr><td>mt</td><td><a href="../classes/Graphics.html#method_moveTo" class="crosslink">moveTo</a> </td>
  269    <td>lt</td> <td><a href="../classes/Graphics.html#method_lineTo" class="crosslink">lineTo</a></td></tr>
  270    <tr><td>a/at</td><td><a href="../classes/Graphics.html#method_arc" class="crosslink">arc</a> / <a href="../classes/Graphics.html#method_arcTo" class="crosslink">arcTo</a> </td>
  271    <td>bt</td><td><a href="../classes/Graphics.html#method_bezierCurveTo" class="crosslink">bezierCurveTo</a> </td></tr>
  272    <tr><td>qt</td><td><a href="../classes/Graphics.html#method_quadraticCurveTo" class="crosslink">quadraticCurveTo</a> (also curveTo)</td>
  273    <td>r</td><td><a href="../classes/Graphics.html#method_rect" class="crosslink">rect</a> </td></tr>
  274    <tr><td>cp</td><td><a href="../classes/Graphics.html#method_closePath" class="crosslink">closePath</a> </td>
  275    <td>c</td><td><a href="../classes/Graphics.html#method_clear" class="crosslink">clear</a> </td></tr>
  276    <tr><td>f</td><td><a href="../classes/Graphics.html#method_beginFill" class="crosslink">beginFill</a> </td>
  277    <td>lf</td><td><a href="../classes/Graphics.html#method_beginLinearGradientFill" class="crosslink">beginLinearGradientFill</a> </td></tr>
  278    <tr><td>rf</td><td><a href="../classes/Graphics.html#method_beginRadialGradientFill" class="crosslink">beginRadialGradientFill</a> </td>
  279    <td>bf</td><td><a href="../classes/Graphics.html#method_beginBitmapFill" class="crosslink">beginBitmapFill</a> </td></tr>
  280    <tr><td>ef</td><td><a href="../classes/Graphics.html#method_endFill" class="crosslink">endFill</a> </td>
  281    <td>ss / sd</td><td><a href="../classes/Graphics.html#method_setStrokeStyle" class="crosslink">setStrokeStyle</a> / <a href="../classes/Graphics.html#method_setStrokeDash" class="crosslink">setStrokeDash</a> </td></tr>
  282    <tr><td>s</td><td><a href="../classes/Graphics.html#method_beginStroke" class="crosslink">beginStroke</a> </td>
  283    <td>ls</td><td><a href="../classes/Graphics.html#method_beginLinearGradientStroke" class="crosslink">beginLinearGradientStroke</a> </td></tr>
  284    <tr><td>rs</td><td><a href="../classes/Graphics.html#method_beginRadialGradientStroke" class="crosslink">beginRadialGradientStroke</a> </td>
  285    <td>bs</td><td><a href="../classes/Graphics.html#method_beginBitmapStroke" class="crosslink">beginBitmapStroke</a> </td></tr>
  286    <tr><td>es</td><td><a href="../classes/Graphics.html#method_endStroke" class="crosslink">endStroke</a> </td>
  287    <td>dr</td><td><a href="../classes/Graphics.html#method_drawRect" class="crosslink">drawRect</a> </td></tr>
  288    <tr><td>rr</td><td><a href="../classes/Graphics.html#method_drawRoundRect" class="crosslink">drawRoundRect</a> </td>
  289    <td>rc</td><td><a href="../classes/Graphics.html#method_drawRoundRectComplex" class="crosslink">drawRoundRectComplex</a> </td></tr>
  290    <tr><td>dc</td><td><a href="../classes/Graphics.html#method_drawCircle" class="crosslink">drawCircle</a> </td>
  291    <td>de</td><td><a href="../classes/Graphics.html#method_drawEllipse" class="crosslink">drawEllipse</a> </td></tr>
  292    <tr><td>dp</td><td><a href="../classes/Graphics.html#method_drawPolyStar" class="crosslink">drawPolyStar</a> </td>
  293    <td>p</td><td><a href="../classes/Graphics.html#method_decodePath" class="crosslink">decodePath</a> </td></tr>
  294</table>
  295
  296<p>Here is the above example, using the tiny API instead.</p>
  297<pre class="code prettyprint"><code> myGraphics.s("red").f("blue").r(20, 20, 100, 50);</code></pre>
  298
  299</div>
  300
  301
  302    <div class="constructor">
  303        <h2>Constructor</h2>
  304        <div id="method_Graphics" class="method item">
  305    <h3 class="name"><code>Graphics</code></h3>
  306
  307    
  308        <span class="paren">()</span>
  309    
  310
  311    
  312
  313    
  314
  315    
  316
  317    
  318
  319    
  320
  321    
  322
  323    
  324
  325    <div class="meta">
  326        
  327            
  328                
  329                <p>
  330                
  331                Defined in
  332                
  333            
  334        
  335        
  336        <a href="../files/easeljs_display_Graphics.js.html#l41"><code>Graphics:41</code></a>
  337        
  338        </p>
  339
  340
  341        
  342
  343        
  344    </div>
  345
  346    <div class="description">
  347        
  348    </div>
  349
  350    
  351
  352    
  353
  354    
  355</div>
  356
  357    </div>
  358
  359
  360<div id="classdocs" class="tabview">
  361    <ul class="api-class-tabs">
  362        <li class="api-class-tab index"><a href="#index">Index</a></li>
  363
  364        
  365            <li class="api-class-tab methods"><a href="#methods">Methods</a></li>
  366        
  367        
  368            <li class="api-class-tab properties"><a href="#properties">Properties</a></li>
  369        
  370        
  371        
  372    </ul>
  373
  374    <div>
  375        <div id="index" class="api-class-tabpanel index">
  376            <h2 class="off-left">Item Index</h2>
  377
  378            
  379                <div class="index-section methods">
  380                    <h3>Methods</h3>
  381
  382                    <ul class="index-list methods">
  383                        
  384                            <li class="index-item method protected">
  385                                <a href="#method__getInstructions">_getInstructions</a>
  386
  387                                
  388                                
  389                            </li>
  390                        
  391                            <li class="index-item method protected">
  392                                <a href="#method__setFill">_setFill</a>
  393
  394                                
  395                                
  396                            </li>
  397                        
  398                            <li class="index-item method protected">
  399                                <a href="#method__setStroke">_setStroke</a>
  400
  401                                
  402                                
  403                            </li>
  404                        
  405                            <li class="index-item method protected">
  406                                <a href="#method__updateInstructions">_updateInstructions</a>
  407
  408                                
  409                                
  410                            </li>
  411                        
  412                            <li class="index-item method protected">
  413                                <a href="#method_a">a</a>
  414
  415                                
  416                                
  417                            </li>
  418                        
  419                            <li class="index-item method">
  420                                <a href="#method_append">append</a>
  421
  422                                
  423                                
  424                            </li>
  425                        
  426                            <li class="index-item method">
  427                                <a href="#method_arc">arc</a>
  428
  429                                
  430                                
  431                            </li>
  432                        
  433                            <li class="index-item method">
  434                                <a href="#method_arcTo">arcTo</a>
  435
  436                                
  437                                
  438                            </li>
  439                        
  440                            <li class="index-item method protected">
  441                                <a href="#method_at">at</a>
  442
  443                                
  444                                
  445                            </li>
  446                        
  447                            <li class="index-item method">
  448                                <a href="#method_beginBitmapFill">beginBitmapFill</a>
  449
  450                                
  451                                
  452                            </li>
  453                        
  454                            <li class="index-item method">
  455                                <a href="#method_beginBitmapStroke">beginBitmapStroke</a>
  456
  457                                
  458                                
  459                            </li>
  460                        
  461                            <li class="index-item method">
  462                                <a href="#method_beginFill">beginFill</a>
  463
  464                                
  465                                
  466                            </li>
  467                        
  468                            <li class="index-item method">
  469                                <a href="#method_beginLinearGradientFill">beginLinearGradientFill</a>
  470
  471                                
  472                                
  473                            </li>
  474                        
  475                            <li class="index-item method">
  476                                <a href="#method_beginLinearGradientStroke">beginLinearGradientStroke</a>
  477
  478                                
  479                                
  480                            </li>
  481                        
  482                            <li class="index-item method">
  483                                <a href="#method_beginRadialGradientFill">beginRadialGradientFill</a>
  484
  485                                
  486                                
  487                            </li>
  488                        
  489                            <li class="index-item method">
  490                                <a href="#method_beginRadialGradientStroke">beginRadialGradientStroke</a>
  491
  492                                
  493                                
  494                            </li>
  495                        
  496                            <li class="index-item method">
  497                                <a href="#method_beginStroke">beginStroke</a>
  498
  499                                
  500                                
  501                            </li>
  502                        
  503                            <li class="index-item method">
  504                                <a href="#method_bezierCurveTo">bezierCurveTo</a>
  505
  506                                
  507                                
  508                            </li>
  509                        
  510                            <li class="index-item method protected">
  511                                <a href="#method_bf">bf</a>
  512
  513                                
  514                                
  515                            </li>
  516                        
  517                            <li class="index-item method protected">
  518                                <a href="#method_bs">bs</a>
  519
  520                                
  521                                
  522                            </li>
  523                        
  524                            <li class="index-item method protected">
  525                                <a href="#method_bt">bt</a>
  526
  527                                
  528                                
  529                            </li>
  530                        
  531                            <li class="index-item method protected">
  532                                <a href="#method_c">c</a>
  533
  534                                
  535                                
  536                            </li>
  537                        
  538                            <li class="index-item method">
  539                                <a href="#method_clear">clear</a>
  540
  541                                
  542                                
  543                            </li>
  544                        
  545                            <li class="index-item method">
  546                                <a href="#method_clone">clone</a>
  547
  548                                
  549                                
  550                            </li>
  551                        
  552                            <li class="index-item method">
  553                                <a href="#method_closePath">closePath</a>
  554
  555                                
  556                                
  557                            </li>
  558                        
  559                            <li class="index-item method protected">
  560                                <a href="#method_cp">cp</a>
  561
  562                                
  563                                
  564                            </li>
  565                        
  566                            <li class="index-item method">
  567                                <a href="#method_curveTo">curveTo</a>
  568
  569                                
  570                                
  571                            </li>
  572                        
  573                            <li class="index-item method protected">
  574                                <a href="#method_dc">dc</a>
  575
  576                                
  577                                
  578                            </li>
  579                        
  580                            <li class="index-item method protected">
  581                                <a href="#method_de">de</a>
  582
  583                                
  584                                
  585                            </li>
  586                        
  587                            <li class="index-item method">
  588                                <a href="#method_decodePath">decodePath</a>
  589
  590                                
  591                                
  592                            </li>
  593                        
  594                            <li class="index-item method protected">
  595                                <a href="#method_dp">dp</a>
  596
  597                                
  598                                
  599                            </li>
  600                        
  601                            <li class="index-item method protected">
  602                                <a href="#method_dr">dr</a>
  603
  604                                
  605                                
  606                            </li>
  607                        
  608                            <li class="index-item method">
  609                                <a href="#method_draw">draw</a>
  610
  611                                
  612                                
  613                            </li>
  614                        
  615                            <li class="index-item method">
  616                                <a href="#method_drawAsPath">drawAsPath</a>
  617
  618                                
  619                                
  620                            </li>
  621                        
  622                            <li class="index-item method">
  623                                <a href="#method_drawCircle">drawCircle</a>
  624
  625                                
  626                                
  627                            </li>
  628                        
  629                            <li class="index-item method">
  630                                <a href="#method_drawEllipse">drawEllipse</a>
  631
  632                                
  633                                
  634                            </li>
  635                        
  636                            <li class="index-item method">
  637                                <a href="#method_drawPolyStar">drawPolyStar</a>
  638
  639                                
  640                                
  641                            </li>
  642                        
  643                            <li class="index-item method">
  644                                <a href="#method_drawRect">drawRect</a>
  645
  646                                
  647                                
  648                            </li>
  649                        
  650                            <li class="index-item method">
  651                                <a href="#method_drawRoundRect">drawRoundRect</a>
  652
  653                                
  654                                
  655                            </li>
  656                        
  657                            <li class="index-item method">
  658                                <a href="#method_drawRoundRectComplex">drawRoundRectComplex</a>
  659
  660                                
  661                                
  662                            </li>
  663                        
  664                            <li class="index-item method protected">
  665                                <a href="#method_ef">ef</a>
  666
  667                                
  668                                
  669                            </li>
  670                        
  671                            <li class="index-item method">
  672                                <a href="#method_endFill">endFill</a>
  673
  674                                
  675                                
  676                            </li>
  677                        
  678                            <li class="index-item method">
  679                                <a href="#method_endStroke">endStroke</a>
  680
  681                                
  682                                
  683                            </li>
  684                        
  685                            <li class="index-item method protected">
  686                                <a href="#method_es">es</a>
  687
  688                                
  689                                
  690                            </li>
  691                        
  692                            <li class="index-item method protected">
  693                                <a href="#method_f">f</a>
  694
  695                                
  696                                
  697                            </li>
  698                        
  699                            <li class="index-item method">
  700                                <a href="#method_getHSL">getHSL</a>
  701
  702                                
  703                                    <span class="flag static">static</span>
  704                                
  705                                
  706                            </li>
  707                        
  708                            <li class="index-item method">
  709                                <a href="#method_getRGB">getRGB</a>
  710
  711                                
  712                                    <span class="flag static">static</span>
  713                                
  714                                
  715                            </li>
  716                        
  717                            <li class="index-item method">
  718                                <a href="#method_isEmpty">isEmpty</a>
  719
  720                                
  721                                
  722                            </li>
  723                        
  724                            <li class="index-item method protected">
  725                                <a href="#method_lf">lf</a>
  726
  727                                
  728                                
  729                            </li>
  730                        
  731                            <li class="index-item method">
  732                                <a href="#method_lineTo">lineTo</a>
  733
  734                                
  735                                
  736                            </li>
  737                        
  738                            <li class="index-item method protected">
  739                                <a href="#method_ls">ls</a>
  740
  741                                
  742                                
  743                            </li>
  744                        
  745                            <li class="index-item method protected">
  746                                <a href="#method_lt">lt</a>
  747
  748                                
  749                                
  750                            </li>
  751                        
  752                            <li class="index-item method">
  753                                <a href="#method_moveTo">moveTo</a>
  754
  755                                
  756                                
  757                            </li>
  758                        
  759                            <li class="index-item method protected">
  760                                <a href="#method_mt">mt</a>
  761
  762                                
  763                                
  764                            </li>
  765                        
  766                            <li class="index-item method protected">
  767                                <a href="#method_p">p</a>
  768
  769                                
  770                                
  771                            </li>
  772                        
  773                            <li class="index-item method protected">
  774                                <a href="#method_qt">qt</a>
  775
  776                                
  777                                
  778                            </li>
  779                        
  780                            <li class="index-item method">
  781                                <a href="#method_quadraticCurveTo">quadraticCurveTo</a>
  782
  783                                
  784                                
  785                            </li>
  786                        
  787                            <li class="index-item method protected">
  788                                <a href="#method_r">r</a>
  789
  790                                
  791                                
  792                            </li>
  793                        
  794                            <li class="index-item method protected">
  795                                <a href="#method_rc">rc</a>
  796
  797                                
  798                                
  799                            </li>
  800                        
  801                            <li class="index-item method">
  802                                <a href="#method_rect">rect</a>
  803
  804                                
  805                                
  806                            </li>
  807                        
  808                            <li class="index-item method protected">
  809                                <a href="#method_rf">rf</a>
  810
  811                                
  812                                
  813                            </li>
  814                        
  815                            <li class="index-item method protected">
  816                                <a href="#method_rr">rr</a>
  817
  818                                
  819                                
  820                            </li>
  821                        
  822                            <li class="index-item method protected">
  823                                <a href="#method_rs">rs</a>
  824
  825                                
  826                                
  827                            </li>
  828                        
  829                            <li class="index-item method protected">
  830                                <a href="#method_s">s</a>
  831
  832                                
  833                                
  834                            </li>
  835                        
  836                            <li class="index-item method protected">
  837                                <a href="#method_sd">sd</a>
  838
  839                                
  840                                
  841                            </li>
  842                        
  843                            <li class="index-item method">
  844                                <a href="#method_setStrokeDash">setStrokeDash</a>
  845
  846                                
  847                                
  848                            </li>
  849                        
  850                            <li class="index-item method">
  851                                <a href="#method_setStrokeStyle">setStrokeStyle</a>
  852
  853                                
  854                                
  855                            </li>
  856                        
  857                            <li class="index-item method protected">
  858                                <a href="#method_ss">ss</a>
  859
  860                                
  861                                
  862                            </li>
  863                        
  864                            <li class="index-item method">
  865                                <a href="#method_store">store</a>
  866
  867                                
  868                                
  869                            </li>
  870                        
  871                            <li class="index-item method">
  872                                <a href="#method_toString">toString</a>
  873
  874                                
  875                                
  876                            </li>
  877                        
  878                            <li class="index-item method">
  879                                <a href="#method_unstore">unstore</a>
  880
  881                                
  882                                
  883                            </li>
  884                        
  885                    </ul>
  886                </div>
  887            
  888
  889            
  890                <div class="index-section properties">
  891                    <h3>Properties</h3>
  892
  893                    <ul class="index-list properties">
  894                        
  895                            <li class="index-item property protected">
  896                                <a href="#property__activeInstructions">_activeInstructions</a>
  897
  898                                
  899                                
  900                            </li>
  901                        
  902                            <li class="index-item property protected">
  903                                <a href="#property__commitIndex">_commitIndex</a>
  904
  905                                
  906                                
  907                            </li>
  908                        
  909                            <li class="index-item property protected">
  910                                <a href="#property__ctx">_ctx</a>
  911
  912                                
  913                                    <span class="flag static">static</span>
  914                                
  915                                
  916                            </li>
  917                        
  918                            <li class="index-item property protected">
  919                                <a href="#property__dirty">_dirty</a>
  920
  921                                
  922                                
  923                            </li>
  924                        
  925                            <li class="index-item property protected">
  926                                <a href="#property__fill">_fill</a>
  927
  928                                
  929                                
  930                            </li>
  931                        
  932                            <li class="index-item property protected">
  933                                <a href="#property__instructions">_instructions</a>
  934
  935                                
  936                                
  937                            </li>
  938                        
  939                            <li class="index-item property protected">
  940                                <a href="#property__oldStrokeDash">_oldStrokeDash</a>
  941
  942                                
  943                                
  944                            </li>
  945                        
  946                            <li class="index-item property protected">
  947                                <a href="#property__oldStrokeStyle">_oldStrokeStyle</a>
  948
  949                                
  950                                
  951                            </li>
  952                        
  953                            <li class="index-item property protected">
  954                                <a href="#property__storeIndex">_storeIndex</a>
  955
  956                                
  957                                
  958                            </li>
  959                        
  960                            <li class="index-item property protected">
  961                                <a href="#property__stroke">_stroke</a>
  962
  963                                
  964                                
  965                            </li>
  966                        
  967                            <li class="index-item property protected">
  968                                <a href="#property__strokeDash">_strokeDash</a>
  969
  970                                
  971                                
  972                            </li>
  973                        
  974                            <li class="index-item property protected">
  975                                <a href="#property__strokeIgnoreScale">_strokeIgnoreScale</a>
  976
  977                                
  978                                
  979                            </li>
  980                        
  981                            <li class="index-item property protected">
  982                                <a href="#property__strokeStyle">_strokeStyle</a>
  983
  984                                
  985                                
  986                            </li>
  987                        
  988                            <li class="index-item property">
  989                                <a href="#property_BASE_64">BASE_64</a>
  990
  991                                
  992                                    <span class="flag static">static</span>
  993                                
  994                                
  995                            </li>
  996                        
  997                            <li class="index-item property">
  998                                <a href="#property_beginCmd">beginCmd</a>
  999
 1000                                
 1001                                    <span class="flag static">static</span>
 1002                                
 1003                                
 1004                            </li>
 1005                        
 1006                            <li class="index-item property">
 1007                                <a href="#property_command">command</a>
 1008
 1009                                
 1010                                
 1011                            </li>
 1012                        
 1013                            <li class="index-item property">
 1014                                <a href="#property_instructions">instructions</a>
 1015
 1016                                
 1017                                
 1018                            </li>
 1019                        
 1020                            <li class="index-item property">
 1021                                <a href="#property_STROKE_CAPS_MAP">STROKE_CAPS_MAP</a>
 1022
 1023                                
 1024                                    <span class="flag static">static</span>
 1025                                
 1026                                
 1027                            </li>
 1028                        
 1029                            <li class="index-item property">
 1030                                <a href="#property_STROKE_JOINTS_MAP">STROKE_JOINTS_MAP</a>
 1031
 1032                                
 1033                                    <span class="flag static">static</span>
 1034                                
 1035                                
 1036                            </li>
 1037                        
 1038                    </ul>
 1039                </div>
 1040            
 1041
 1042            
 1043
 1044            
 1045        </div>
 1046
 1047        
 1048            <div id="methods" class="api-class-tabpanel">
 1049                <h2 class="off-left">Methods</h2>
 1050
 1051                
 1052                    <div id="method__getInstructions" class="method item protected">
 1053    <h3 class="name"><code>_getInstructions</code></h3>
 1054
 1055    
 1056        <span class="paren">()</span>
 1057    
 1058
 1059    
 1060        <span class="returns-inline">
 1061            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 1062        </span>
 1063    
 1064
 1065    
 1066
 1067    
 1068        <span class="flag protected">protected</span>
 1069    
 1070
 1071    
 1072
 1073    
 1074
 1075    
 1076
 1077    
 1078
 1079    <div class="meta">
 1080        
 1081            
 1082                
 1083                <p>
 1084                
 1085                Defined in
 1086                
 1087            
 1088        
 1089        
 1090        <a href="../files/easeljs_display_Graphics.js.html#l379"><code>_getInstructions:379</code></a>
 1091        
 1092        </p>
 1093
 1094
 1095        
 1096
 1097        
 1098    </div>
 1099
 1100    <div class="description">
 1101        <p>Use the <a href="../classes/Graphics.html#property_instructions" class="crosslink">instructions</a> property instead.</p>
 1102
 1103    </div>
 1104
 1105    
 1106
 1107    
 1108        <div class="returns">
 1109            <h4>Returns:</h4>
 1110
 1111            <div class="returns-description">
 1112                
 1113                    
 1114                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>:
 1115                    
 1116                    <p>The instructions array, useful for chaining</p>
 1117
 1118                
 1119            </div>
 1120        </div>
 1121    
 1122
 1123    
 1124</div>
 1125
 1126                
 1127                    <div id="method__setFill" class="method item protected">
 1128    <h3 class="name"><code>_setFill</code></h3>
 1129
 1130    
 1131        <div class="args">
 1132            <span class="paren">(</span><ul class="args-list inline commas">
 1133            
 1134                <li class="arg">
 1135                    
 1136                        <code>fill</code>
 1137                    
 1138                </li>
 1139            
 1140            </ul><span class="paren">)</span>
 1141        </div>
 1142    
 1143
 1144    
 1145
 1146    
 1147
 1148    
 1149        <span class="flag protected">protected</span>
 1150    
 1151
 1152    
 1153
 1154    
 1155
 1156    
 1157
 1158    
 1159
 1160    <div class="meta">
 1161        
 1162            
 1163                
 1164                <p>
 1165                
 1166                Defined in
 1167                
 1168            
 1169        
 1170        
 1171        <a href="../files/easeljs_display_Graphics.js.html#l1591"><code>_setFill:1591</code></a>
 1172        
 1173        </p>
 1174
 1175
 1176        
 1177
 1178        
 1179    </div>
 1180
 1181    <div class="description">
 1182        
 1183    </div>
 1184
 1185    
 1186        <div class="params">
 1187            <h4>Parameters:</h4>
 1188
 1189            <ul class="params-list">
 1190            
 1191                <li class="param">
 1192                    
 1193                        <code class="param-name">fill</code>
 1194                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 1195                    
 1196
 1197                    
 1198
 1199                    <div class="param-description">
 1200                         
 1201                    </div>
 1202
 1203                    
 1204                </li>
 1205            
 1206            </ul>
 1207        </div>
 1208    
 1209
 1210    
 1211
 1212    
 1213</div>
 1214
 1215                
 1216                    <div id="method__setStroke" class="method item protected">
 1217    <h3 class="name"><code>_setStroke</code></h3>
 1218
 1219    
 1220        <div class="args">
 1221            <span class="paren">(</span><ul class="args-list inline commas">
 1222            
 1223                <li class="arg">
 1224                    
 1225                        <code>stroke</code>
 1226                    
 1227                </li>
 1228            
 1229            </ul><span class="paren">)</span>
 1230        </div>
 1231    
 1232
 1233    
 1234
 1235    
 1236
 1237    
 1238        <span class="flag protected">protected</span>
 1239    
 1240
 1241    
 1242
 1243    
 1244
 1245    
 1246
 1247    
 1248
 1249    <div class="meta">
 1250        
 1251            
 1252                
 1253                <p>
 1254                
 1255                Defined in
 1256                
 1257            
 1258        
 1259        
 1260        <a href="../files/easeljs_display_Graphics.js.html#l1602"><code>_setStroke:1602</code></a>
 1261        
 1262        </p>
 1263
 1264
 1265        
 1266
 1267        
 1268    </div>
 1269
 1270    <div class="description">
 1271        
 1272    </div>
 1273
 1274    
 1275        <div class="params">
 1276            <h4>Parameters:</h4>
 1277
 1278            <ul class="params-list">
 1279            
 1280                <li class="param">
 1281                    
 1282                        <code class="param-name">stroke</code>
 1283                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 1284                    
 1285
 1286                    
 1287
 1288                    <div class="param-description">
 1289                         
 1290                    </div>
 1291
 1292                    
 1293                </li>
 1294            
 1295            </ul>
 1296        </div>
 1297    
 1298
 1299    
 1300
 1301    
 1302</div>
 1303
 1304                
 1305                    <div id="method__updateInstructions" class="method item protected">
 1306    <h3 class="name"><code>_updateInstructions</code></h3>
 1307
 1308    
 1309        <div class="args">
 1310            <span class="paren">(</span><ul class="args-list inline commas">
 1311            
 1312                <li class="arg">
 1313                    
 1314                        <code>commit</code>
 1315                    
 1316                </li>
 1317            
 1318            </ul><span class="paren">)</span>
 1319        </div>
 1320    
 1321
 1322    
 1323
 1324    
 1325
 1326    
 1327        <span class="flag protected">protected</span>
 1328    
 1329
 1330    
 1331
 1332    
 1333
 1334    
 1335
 1336    
 1337
 1338    <div class="meta">
 1339        
 1340            
 1341                
 1342                <p>
 1343                
 1344                Defined in
 1345                
 1346            
 1347        
 1348        
 1349        <a href="../files/easeljs_display_Graphics.js.html#l1550"><code>_updateInstructions:1550</code></a>
 1350        
 1351        </p>
 1352
 1353
 1354        
 1355
 1356        
 1357    </div>
 1358
 1359    <div class="description">
 1360        
 1361    </div>
 1362
 1363    
 1364        <div class="params">
 1365            <h4>Parameters:</h4>
 1366
 1367            <ul class="params-list">
 1368            
 1369                <li class="param">
 1370                    
 1371                        <code class="param-name">commit</code>
 1372                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 1373                    
 1374
 1375                    
 1376
 1377                    <div class="param-description">
 1378                         
 1379                    </div>
 1380
 1381                    
 1382                </li>
 1383            
 1384            </ul>
 1385        </div>
 1386    
 1387
 1388    
 1389
 1390    
 1391</div>
 1392
 1393                
 1394                    <div id="method_a" class="method item protected">
 1395    <h3 class="name"><code>a</code></h3>
 1396
 1397    
 1398        <div class="args">
 1399            <span class="paren">(</span><ul class="args-list inline commas">
 1400            
 1401                <li class="arg">
 1402                    
 1403                        <code>x</code>
 1404                    
 1405                </li>
 1406            
 1407                <li class="arg">
 1408                    
 1409                        <code>y</code>
 1410                    
 1411                </li>
 1412            
 1413                <li class="arg">
 1414                    
 1415                        <code>radius</code>
 1416                    
 1417                </li>
 1418            
 1419                <li class="arg">
 1420                    
 1421                        <code>startAngle</code>
 1422                    
 1423                </li>
 1424            
 1425                <li class="arg">
 1426                    
 1427                        <code>endAngle</code>
 1428                    
 1429                </li>
 1430            
 1431                <li class="arg">
 1432                    
 1433                        <code>anticlockwise</code>
 1434                    
 1435                </li>
 1436            
 1437            </ul><span class="paren">)</span>
 1438        </div>
 1439    
 1440
 1441    
 1442        <span class="returns-inline">
 1443            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 1444        </span>
 1445    
 1446
 1447    
 1448
 1449    
 1450        <span class="flag protected">protected</span>
 1451    
 1452
 1453    
 1454
 1455    
 1456
 1457    
 1458        <span class="flag chainable">chainable</span>
 1459    
 1460
 1461    
 1462
 1463    <div class="meta">
 1464        
 1465            
 1466                
 1467                <p>
 1468                
 1469                Defined in
 1470                
 1471            
 1472        
 1473        
 1474        <a href="../files/easeljs_display_Graphics.js.html#l1228"><code>a:1228</code></a>
 1475        
 1476        </p>
 1477
 1478
 1479        
 1480
 1481        
 1482    </div>
 1483
 1484    <div class="description">
 1485        <p>Shortcut to arc.</p>
 1486
 1487    </div>
 1488
 1489    
 1490        <div class="params">
 1491            <h4>Parameters:</h4>
 1492
 1493            <ul class="params-list">
 1494            
 1495                <li class="param">
 1496                    
 1497                        <code class="param-name">x</code>
 1498                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 1499                    
 1500
 1501                    
 1502
 1503                    <div class="param-description">
 1504                         
 1505                    </div>
 1506
 1507                    
 1508                </li>
 1509            
 1510                <li class="param">
 1511                    
 1512                        <code class="param-name">y</code>
 1513                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 1514                    
 1515
 1516                    
 1517
 1518                    <div class="param-description">
 1519                         
 1520                    </div>
 1521
 1522                    
 1523                </li>
 1524            
 1525                <li class="param">
 1526                    
 1527                        <code class="param-name">radius</code>
 1528                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 1529                    
 1530
 1531                    
 1532
 1533                    <div class="param-description">
 1534                         
 1535                    </div>
 1536
 1537                    
 1538                </li>
 1539            
 1540                <li class="param">
 1541                    
 1542                        <code class="param-name">startAngle</code>
 1543                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 1544                    
 1545
 1546                    
 1547
 1548                    <div class="param-description">
 1549                        <p>Measured in radians.</p>
 1550
 1551                    </div>
 1552
 1553                    
 1554                </li>
 1555            
 1556                <li class="param">
 1557                    
 1558                        <code class="param-name">endAngle</code>
 1559                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 1560                    
 1561
 1562                    
 1563
 1564                    <div class="param-description">
 1565                        <p>Measured in radians.</p>
 1566
 1567                    </div>
 1568
 1569                    
 1570                </li>
 1571            
 1572                <li class="param">
 1573                    
 1574                        <code class="param-name">anticlockwise</code>
 1575                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 1576                    
 1577
 1578                    
 1579
 1580                    <div class="param-description">
 1581                         
 1582                    </div>
 1583
 1584                    
 1585                </li>
 1586            
 1587            </ul>
 1588        </div>
 1589    
 1590
 1591    
 1592        <div class="returns">
 1593            <h4>Returns:</h4>
 1594
 1595            <div class="returns-description">
 1596                
 1597                    
 1598                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 1599                    
 1600                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 1601
 1602                
 1603            </div>
 1604        </div>
 1605    
 1606
 1607    
 1608</div>
 1609
 1610                
 1611                    <div id="method_append" class="method item">
 1612    <h3 class="name"><code>append</code></h3>
 1613
 1614    
 1615        <div class="args">
 1616            <span class="paren">(</span><ul class="args-list inline commas">
 1617            
 1618                <li class="arg">
 1619                    
 1620                        <code>command</code>
 1621                    
 1622                </li>
 1623            
 1624                <li class="arg">
 1625                    
 1626                        <code>clean</code>
 1627                    
 1628                </li>
 1629            
 1630            </ul><span class="paren">)</span>
 1631        </div>
 1632    
 1633
 1634    
 1635        <span class="returns-inline">
 1636            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 1637        </span>
 1638    
 1639
 1640    
 1641
 1642    
 1643
 1644    
 1645
 1646    
 1647
 1648    
 1649        <span class="flag chainable">chainable</span>
 1650    
 1651
 1652    
 1653
 1654    <div class="meta">
 1655        
 1656            
 1657                
 1658                <p>
 1659                
 1660                Defined in
 1661                
 1662            
 1663        
 1664        
 1665        <a href="../files/easeljs_display_Graphics.js.html#l971"><code>append:971</code></a>
 1666        
 1667        </p>
 1668
 1669
 1670        
 1671
 1672        
 1673    </div>
 1674
 1675    <div class="description">
 1676        <p>Appends a graphics command object to the graphics queue. Command objects expose an "exec" method
 1677that accepts two parameters: the Context2D to operate on, and an arbitrary data object passed into
 1678<a href="../classes/Graphics.html#method_draw" class="crosslink">draw</a>. The latter will usually be the Shape instance that called draw.</p>
 1679<p>This method is used internally by Graphics methods, such as drawCircle, but can also be used directly to insert
 1680built-in or custom graphics commands. For example:</p>
 1681<pre class="code prettyprint"><code>    // attach data to our shape, so we can access it during the draw:
 1682    myShape.color = "red";
 1683
 1684    // append a Circle command object:
 1685    myShape.graphics.append(new createjs.Graphics.Circle(50, 50, 30));
 1686
 1687    // append a custom command object with an exec method that sets the fill style
 1688    // based on the shape&#39;s data, and then fills the circle.
 1689    myShape.graphics.append({exec:function(ctx, shape) {
 1690        ctx.fillStyle = shape.color;
 1691        ctx.fill();
 1692    }});</code></pre>
 1693
 1694    </div>
 1695
 1696    
 1697        <div class="params">
 1698            <h4>Parameters:</h4>
 1699
 1700            <ul class="params-list">
 1701            
 1702                <li class="param">
 1703                    
 1704                        <code class="param-name">command</code>
 1705                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 1706                    
 1707
 1708                    
 1709
 1710                    <div class="param-description">
 1711                        <p>A graphics command object exposing an "exec" method.</p>
 1712
 1713                    </div>
 1714
 1715                    
 1716                </li>
 1717            
 1718                <li class="param">
 1719                    
 1720                        <code class="param-name">clean</code>
 1721                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 1722                    
 1723
 1724                    
 1725
 1726                    <div class="param-description">
 1727                        <p>The clean param is primarily for internal use. A value of true indicates that a command does not generate a path that should be stroked or filled.</p>
 1728
 1729                    </div>
 1730
 1731                    
 1732                </li>
 1733            
 1734            </ul>
 1735        </div>
 1736    
 1737
 1738    
 1739        <div class="returns">
 1740            <h4>Returns:</h4>
 1741
 1742            <div class="returns-description">
 1743                
 1744                    
 1745                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 1746                    
 1747                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 1748
 1749                
 1750            </div>
 1751        </div>
 1752    
 1753
 1754    
 1755</div>
 1756
 1757                
 1758                    <div id="method_arc" class="method item">
 1759    <h3 class="name"><code>arc</code></h3>
 1760
 1761    
 1762        <div class="args">
 1763            <span class="paren">(</span><ul class="args-list inline commas">
 1764            
 1765                <li class="arg">
 1766                    
 1767                        <code>x</code>
 1768                    
 1769                </li>
 1770            
 1771                <li class="arg">
 1772                    
 1773                        <code>y</code>
 1774                    
 1775                </li>
 1776            
 1777                <li class="arg">
 1778                    
 1779                        <code>radius</code>
 1780                    
 1781                </li>
 1782            
 1783                <li class="arg">
 1784                    
 1785                        <code>startAngle</code>
 1786                    
 1787                </li>
 1788            
 1789                <li class="arg">
 1790                    
 1791                        <code>endAngle</code>
 1792                    
 1793                </li>
 1794            
 1795                <li class="arg">
 1796                    
 1797                        <code>anticlockwise</code>
 1798                    
 1799                </li>
 1800            
 1801            </ul><span class="paren">)</span>
 1802        </div>
 1803    
 1804
 1805    
 1806        <span class="returns-inline">
 1807            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 1808        </span>
 1809    
 1810
 1811    
 1812
 1813    
 1814
 1815    
 1816
 1817    
 1818
 1819    
 1820        <span class="flag chainable">chainable</span>
 1821    
 1822
 1823    
 1824
 1825    <div class="meta">
 1826        
 1827            
 1828                
 1829                <p>
 1830                
 1831                Defined in
 1832                
 1833            
 1834        
 1835        
 1836        <a href="../files/easeljs_display_Graphics.js.html#l501"><code>arc:501</code></a>
 1837        
 1838        </p>
 1839
 1840
 1841        
 1842
 1843        
 1844    </div>
 1845
 1846    <div class="description">
 1847        <p>Draws an arc defined by the radius, startAngle and endAngle arguments, centered at the position (x, y). For
 1848example, to draw a full circle with a radius of 20 centered at (100, 100):</p>
 1849<pre class="code prettyprint"><code> arc(100, 100, 20, 0, Math.PI*2);</code></pre>
 1850<p>For detailed information, read the
 1851<a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-arc">whatwg spec</a>.
 1852A tiny API method "a" also exists.</p>
 1853
 1854    </div>
 1855
 1856    
 1857        <div class="params">
 1858            <h4>Parameters:</h4>
 1859
 1860            <ul class="params-list">
 1861            
 1862                <li class="param">
 1863                    
 1864                        <code class="param-name">x</code>
 1865                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 1866                    
 1867
 1868                    
 1869
 1870                    <div class="param-description">
 1871                         
 1872                    </div>
 1873
 1874                    
 1875                </li>
 1876            
 1877                <li class="param">
 1878                    
 1879                        <code class="param-name">y</code>
 1880                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 1881                    
 1882
 1883                    
 1884
 1885                    <div class="param-description">
 1886                         
 1887                    </div>
 1888
 1889                    
 1890                </li>
 1891            
 1892                <li class="param">
 1893                    
 1894                        <code class="param-name">radius</code>
 1895                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 1896                    
 1897
 1898                    
 1899
 1900                    <div class="param-description">
 1901                         
 1902                    </div>
 1903
 1904                    
 1905                </li>
 1906            
 1907                <li class="param">
 1908                    
 1909                        <code class="param-name">startAngle</code>
 1910                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 1911                    
 1912
 1913                    
 1914
 1915                    <div class="param-description">
 1916                        <p>Measured in radians.</p>
 1917
 1918                    </div>
 1919
 1920                    
 1921                </li>
 1922            
 1923                <li class="param">
 1924                    
 1925                        <code class="param-name">endAngle</code>
 1926                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 1927                    
 1928
 1929                    
 1930
 1931                    <div class="param-description">
 1932                        <p>Measured in radians.</p>
 1933
 1934                    </div>
 1935
 1936                    
 1937                </li>
 1938            
 1939                <li class="param">
 1940                    
 1941                        <code class="param-name">anticlockwise</code>
 1942                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 1943                    
 1944
 1945                    
 1946
 1947                    <div class="param-description">
 1948                         
 1949                    </div>
 1950
 1951                    
 1952                </li>
 1953            
 1954            </ul>
 1955        </div>
 1956    
 1957
 1958    
 1959        <div class="returns">
 1960            <h4>Returns:</h4>
 1961
 1962            <div class="returns-description">
 1963                
 1964                    
 1965                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 1966                    
 1967                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 1968
 1969                
 1970            </div>
 1971        </div>
 1972    
 1973
 1974    
 1975</div>
 1976
 1977                
 1978                    <div id="method_arcTo" class="method item">
 1979    <h3 class="name"><code>arcTo</code></h3>
 1980
 1981    
 1982        <div class="args">
 1983            <span class="paren">(</span><ul class="args-list inline commas">
 1984            
 1985                <li class="arg">
 1986                    
 1987                        <code>x1</code>
 1988                    
 1989                </li>
 1990            
 1991                <li class="arg">
 1992                    
 1993                        <code>y1</code>
 1994                    
 1995                </li>
 1996            
 1997                <li class="arg">
 1998                    
 1999                        <code>x2</code>
 2000                    
 2001                </li>
 2002            
 2003                <li class="arg">
 2004                    
 2005                        <code>y2</code>
 2006                    
 2007                </li>
 2008            
 2009                <li class="arg">
 2010                    
 2011                        <code>radius</code>
 2012                    
 2013                </li>
 2014            
 2015            </ul><span class="paren">)</span>
 2016        </div>
 2017    
 2018
 2019    
 2020        <span class="returns-inline">
 2021            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 2022        </span>
 2023    
 2024
 2025    
 2026
 2027    
 2028
 2029    
 2030
 2031    
 2032
 2033    
 2034        <span class="flag chainable">chainable</span>
 2035    
 2036
 2037    
 2038
 2039    <div class="meta">
 2040        
 2041            
 2042                
 2043                <p>
 2044                
 2045                Defined in
 2046                
 2047            
 2048        
 2049        
 2050        <a href="../files/easeljs_display_Graphics.js.html#l484"><code>arcTo:484</code></a>
 2051        
 2052        </p>
 2053
 2054
 2055        
 2056
 2057        
 2058    </div>
 2059
 2060    <div class="description">
 2061        <p>Draws an arc with the specified control points and radius.  For detailed information, read the
 2062<a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-arcto">
 2063whatwg spec</a>. A tiny API method "at" also exists.</p>
 2064
 2065    </div>
 2066
 2067    
 2068        <div class="params">
 2069            <h4>Parameters:</h4>
 2070
 2071            <ul class="params-list">
 2072            
 2073                <li class="param">
 2074                    
 2075                        <code class="param-name">x1</code>
 2076                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 2077                    
 2078
 2079                    
 2080
 2081                    <div class="param-description">
 2082                         
 2083                    </div>
 2084
 2085                    
 2086                </li>
 2087            
 2088                <li class="param">
 2089                    
 2090                        <code class="param-name">y1</code>
 2091                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 2092                    
 2093
 2094                    
 2095
 2096                    <div class="param-description">
 2097                         
 2098                    </div>
 2099
 2100                    
 2101                </li>
 2102            
 2103                <li class="param">
 2104                    
 2105                        <code class="param-name">x2</code>
 2106                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 2107                    
 2108
 2109                    
 2110
 2111                    <div class="param-description">
 2112                         
 2113                    </div>
 2114
 2115                    
 2116                </li>
 2117            
 2118                <li class="param">
 2119                    
 2120                        <code class="param-name">y2</code>
 2121                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 2122                    
 2123
 2124                    
 2125
 2126                    <div class="param-description">
 2127                         
 2128                    </div>
 2129
 2130                    
 2131                </li>
 2132            
 2133                <li class="param">
 2134                    
 2135                        <code class="param-name">radius</code>
 2136                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 2137                    
 2138
 2139                    
 2140
 2141                    <div class="param-description">
 2142                         
 2143                    </div>
 2144
 2145                    
 2146                </li>
 2147            
 2148            </ul>
 2149        </div>
 2150    
 2151
 2152    
 2153        <div class="returns">
 2154            <h4>Returns:</h4>
 2155
 2156            <div class="returns-description">
 2157                
 2158                    
 2159                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 2160                    
 2161                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 2162
 2163                
 2164            </div>
 2165        </div>
 2166    
 2167
 2168    
 2169</div>
 2170
 2171                
 2172                    <div id="method_at" class="method item protected">
 2173    <h3 class="name"><code>at</code></h3>
 2174
 2175    
 2176        <div class="args">
 2177            <span class="paren">(</span><ul class="args-list inline commas">
 2178            
 2179                <li class="arg">
 2180                    
 2181                        <code>x1</code>
 2182                    
 2183                </li>
 2184            
 2185                <li class="arg">
 2186                    
 2187                        <code>y1</code>
 2188                    
 2189                </li>
 2190            
 2191                <li class="arg">
 2192                    
 2193                        <code>x2</code>
 2194                    
 2195                </li>
 2196            
 2197                <li class="arg">
 2198                    
 2199                        <code>y2</code>
 2200                    
 2201                </li>
 2202            
 2203                <li class="arg">
 2204                    
 2205                        <code>radius</code>
 2206                    
 2207                </li>
 2208            
 2209            </ul><span class="paren">)</span>
 2210        </div>
 2211    
 2212
 2213    
 2214        <span class="returns-inline">
 2215            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 2216        </span>
 2217    
 2218
 2219    
 2220
 2221    
 2222        <span class="flag protected">protected</span>
 2223    
 2224
 2225    
 2226
 2227    
 2228
 2229    
 2230        <span class="flag chainable">chainable</span>
 2231    
 2232
 2233    
 2234
 2235    <div class="meta">
 2236        
 2237            
 2238                
 2239                <p>
 2240                
 2241                Defined in
 2242                
 2243            
 2244        
 2245        
 2246        <a href="../files/easeljs_display_Graphics.js.html#l1187"><code>at:1187</code></a>
 2247        
 2248        </p>
 2249
 2250
 2251        
 2252
 2253        
 2254    </div>
 2255
 2256    <div class="description">
 2257        <p>Shortcut to arcTo.</p>
 2258
 2259    </div>
 2260
 2261    
 2262        <div class="params">
 2263            <h4>Parameters:</h4>
 2264
 2265            <ul class="params-list">
 2266            
 2267                <li class="param">
 2268                    
 2269                        <code class="param-name">x1</code>
 2270                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 2271                    
 2272
 2273                    
 2274
 2275                    <div class="param-description">
 2276                         
 2277                    </div>
 2278
 2279                    
 2280                </li>
 2281            
 2282                <li class="param">
 2283                    
 2284                        <code class="param-name">y1</code>
 2285                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 2286                    
 2287
 2288                    
 2289
 2290                    <div class="param-description">
 2291                         
 2292                    </div>
 2293
 2294                    
 2295                </li>
 2296            
 2297                <li class="param">
 2298                    
 2299                        <code class="param-name">x2</code>
 2300                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 2301                    
 2302
 2303                    
 2304
 2305                    <div class="param-description">
 2306                         
 2307                    </div>
 2308
 2309                    
 2310                </li>
 2311            
 2312                <li class="param">
 2313                    
 2314                        <code class="param-name">y2</code>
 2315                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 2316                    
 2317
 2318                    
 2319
 2320                    <div class="param-description">
 2321                         
 2322                    </div>
 2323
 2324                    
 2325                </li>
 2326            
 2327                <li class="param">
 2328                    
 2329                        <code class="param-name">radius</code>
 2330                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 2331                    
 2332
 2333                    
 2334
 2335                    <div class="param-description">
 2336                         
 2337                    </div>
 2338
 2339                    
 2340                </li>
 2341            
 2342            </ul>
 2343        </div>
 2344    
 2345
 2346    
 2347        <div class="returns">
 2348            <h4>Returns:</h4>
 2349
 2350            <div class="returns-description">
 2351                
 2352                    
 2353                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 2354                    
 2355                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 2356
 2357                
 2358            </div>
 2359        </div>
 2360    
 2361
 2362    
 2363</div>
 2364
 2365                
 2366                    <div id="method_beginBitmapFill" class="method item">
 2367    <h3 class="name"><code>beginBitmapFill</code></h3>
 2368
 2369    
 2370        <div class="args">
 2371            <span class="paren">(</span><ul class="args-list inline commas">
 2372            
 2373                <li class="arg">
 2374                    
 2375                        <code>image</code>
 2376                    
 2377                </li>
 2378            
 2379                <li class="arg">
 2380                    
 2381                        <code>repetition</code>
 2382                    
 2383                </li>
 2384            
 2385                <li class="arg">
 2386                    
 2387                        <code>matrix</code>
 2388                    
 2389                </li>
 2390            
 2391            </ul><span class="paren">)</span>
 2392        </div>
 2393    
 2394
 2395    
 2396        <span class="returns-inline">
 2397            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 2398        </span>
 2399    
 2400
 2401    
 2402
 2403    
 2404
 2405    
 2406
 2407    
 2408
 2409    
 2410        <span class="flag chainable">chainable</span>
 2411    
 2412
 2413    
 2414
 2415    <div class="meta">
 2416        
 2417            
 2418                
 2419                <p>
 2420                
 2421                Defined in
 2422                
 2423            
 2424        
 2425        
 2426        <a href="../files/easeljs_display_Graphics.js.html#l664"><code>beginBitmapFill:664</code></a>
 2427        
 2428        </p>
 2429
 2430
 2431        
 2432
 2433        
 2434    </div>
 2435
 2436    <div class="description">
 2437        <p>Begins a pattern fill using the specified image. This ends the current sub-path. A tiny API method "bf" also
 2438exists.</p>
 2439
 2440    </div>
 2441
 2442    
 2443        <div class="params">
 2444            <h4>Parameters:</h4>
 2445
 2446            <ul class="params-list">
 2447            
 2448                <li class="param">
 2449                    
 2450                        <code class="param-name">image</code>
 2451                        <span class="type">HTMLImageElement | HTMLCanvasElement | HTMLVideoElement</span>
 2452                    
 2453
 2454                    
 2455
 2456                    <div class="param-description">
 2457                        <p>The Image, Canvas, or Video object to use
 2458as the pattern. Must be loaded prior to creating a bitmap fill, or the fill will be empty.</p>
 2459
 2460                    </div>
 2461
 2462                    
 2463                </li>
 2464            
 2465                <li class="param">
 2466                    
 2467                        <code class="param-name">repetition</code>
 2468                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 2469                    
 2470
 2471                    
 2472
 2473                    <div class="param-description">
 2474                        <p>Optional. Indicates whether to repeat the image in the fill area. One of "repeat",
 2475"repeat-x", "repeat-y", or "no-repeat". Defaults to "repeat". Note that Firefox does not support "repeat-x" or
 2476"repeat-y" (latest tests were in FF 20.0), and will default to "repeat".</p>
 2477
 2478                    </div>
 2479
 2480                    
 2481                </li>
 2482            
 2483                <li class="param">
 2484                    
 2485                        <code class="param-name">matrix</code>
 2486                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
 2487                    
 2488
 2489                    
 2490
 2491                    <div class="param-description">
 2492                        <p>Optional. Specifies a transformation matrix for the bitmap fill. This transformation
 2493will be applied relative to the parent transform.</p>
 2494
 2495                    </div>
 2496
 2497                    
 2498                </li>
 2499            
 2500            </ul>
 2501        </div>
 2502    
 2503
 2504    
 2505        <div class="returns">
 2506            <h4>Returns:</h4>
 2507
 2508            <div class="returns-description">
 2509                
 2510                    
 2511                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 2512                    
 2513                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 2514
 2515                
 2516            </div>
 2517        </div>
 2518    
 2519
 2520    
 2521</div>
 2522
 2523                
 2524                    <div id="method_beginBitmapStroke" class="method item">
 2525    <h3 class="name"><code>beginBitmapStroke</code></h3>
 2526
 2527    
 2528        <div class="args">
 2529            <span class="paren">(</span><ul class="args-list inline commas">
 2530            
 2531                <li class="arg">
 2532                    
 2533                        <code>image</code>
 2534                    
 2535                </li>
 2536            
 2537                <li class="arg">
 2538                    
 2539                        <code class="optional">[repetition=repeat]</code>
 2540                    
 2541                </li>
 2542            
 2543            </ul><span class="paren">)</span>
 2544        </div>
 2545    
 2546
 2547    
 2548        <span class="returns-inline">
 2549            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 2550        </span>
 2551    
 2552
 2553    
 2554
 2555    
 2556
 2557    
 2558
 2559    
 2560
 2561    
 2562        <span class="flag chainable">chainable</span>
 2563    
 2564
 2565    
 2566
 2567    <div class="meta">
 2568        
 2569            
 2570                
 2571                <p>
 2572                
 2573                Defined in
 2574                
 2575            
 2576        
 2577        
 2578        <a href="../files/easeljs_display_Graphics.js.html#l810"><code>beginBitmapStroke:810</code></a>
 2579        
 2580        </p>
 2581
 2582
 2583        
 2584
 2585        
 2586    </div>
 2587
 2588    <div class="description">
 2589        <p>Begins a pattern fill using the specified image. This ends the current sub-path. Note that unlike bitmap fills,
 2590strokes do not currently support a matrix parameter due to limitations in the canvas API. A tiny API method "bs"
 2591also exists.</p>
 2592
 2593    </div>
 2594
 2595    
 2596        <div class="params">
 2597            <h4>Parameters:</h4>
 2598
 2599            <ul class="params-list">
 2600            
 2601                <li class="param">
 2602                    
 2603                        <code class="param-name">image</code>
 2604                        <span class="type">HTMLImageElement | HTMLCanvasElement | HTMLVideoElement</span>
 2605                    
 2606
 2607                    
 2608
 2609                    <div class="param-description">
 2610                        <p>The Image, Canvas, or Video object to use
 2611as the pattern. Must be loaded prior to creating a bitmap fill, or the fill will be empty.</p>
 2612
 2613                    </div>
 2614
 2615                    
 2616                </li>
 2617            
 2618                <li class="param">
 2619                    
 2620                        <code class="param-name optional">[repetition=repeat]</code>
 2621                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 2622                        <span class="flag optional" title="This parameter is optional.">optional</span>
 2623                    
 2624
 2625                    
 2626
 2627                    <div class="param-description">
 2628                        <p>Optional. Indicates whether to repeat the image in the fill area. One of
 2629"repeat", "repeat-x", "repeat-y", or "no-repeat". Defaults to "repeat".</p>
 2630
 2631                    </div>
 2632
 2633                    
 2634                </li>
 2635            
 2636            </ul>
 2637        </div>
 2638    
 2639
 2640    
 2641        <div class="returns">
 2642            <h4>Returns:</h4>
 2643
 2644            <div class="returns-description">
 2645                
 2646                    
 2647                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 2648                    
 2649                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 2650
 2651                
 2652            </div>
 2653        </div>
 2654    
 2655
 2656    
 2657</div>
 2658
 2659                
 2660                    <div id="method_beginFill" class="method item">
 2661    <h3 class="name"><code>beginFill</code></h3>
 2662
 2663    
 2664        <div class="args">
 2665            <span class="paren">(</span><ul class="args-list inline commas">
 2666            
 2667                <li class="arg">
 2668                    
 2669                        <code>color</code>
 2670                    
 2671                </li>
 2672            
 2673            </ul><span class="paren">)</span>
 2674        </div>
 2675    
 2676
 2677    
 2678        <span class="returns-inline">
 2679            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 2680        </span>
 2681    
 2682
 2683    
 2684
 2685    
 2686
 2687    
 2688
 2689    
 2690
 2691    
 2692        <span class="flag chainable">chainable</span>
 2693    
 2694
 2695    
 2696
 2697    <div class="meta">
 2698        
 2699            
 2700                
 2701                <p>
 2702                
 2703                Defined in
 2704                
 2705            
 2706        
 2707        
 2708        <a href="../files/easeljs_display_Graphics.js.html#l603"><code>beginFill:603</code></a>
 2709        
 2710        </p>
 2711
 2712
 2713        
 2714
 2715        
 2716    </div>
 2717
 2718    <div class="description">
 2719        <p>Begins a fill with the specified color. This ends the current sub-path. A tiny API method "f" also exists.</p>
 2720
 2721    </div>
 2722
 2723    
 2724        <div class="params">
 2725            <h4>Parameters:</h4>
 2726
 2727            <ul class="params-list">
 2728            
 2729                <li class="param">
 2730                    
 2731                        <code class="param-name">color</code>
 2732                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 2733                    
 2734
 2735                    
 2736
 2737                    <div class="param-description">
 2738                        <p>A CSS compatible color value (ex. "red", "#FF0000", or "rgba(255,0,0,0.5)"). Setting to
 2739null will result in no fill.</p>
 2740
 2741                    </div>
 2742
 2743                    
 2744                </li>
 2745            
 2746            </ul>
 2747        </div>
 2748    
 2749
 2750    
 2751        <div class="returns">
 2752            <h4>Returns:</h4>
 2753
 2754            <div class="returns-description">
 2755                
 2756                    
 2757                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 2758                    
 2759                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 2760
 2761                
 2762            </div>
 2763        </div>
 2764    
 2765
 2766    
 2767</div>
 2768
 2769                
 2770                    <div id="method_beginLinearGradientFill" class="method item">
 2771    <h3 class="name"><code>beginLinearGradientFill</code></h3>
 2772
 2773    
 2774        <div class="args">
 2775            <span class="paren">(</span><ul class="args-list inline commas">
 2776            
 2777                <li class="arg">
 2778                    
 2779                        <code>colors</code>
 2780                    
 2781                </li>
 2782            
 2783                <li class="arg">
 2784                    
 2785                        <code>ratios</code>
 2786                    
 2787                </li>
 2788            
 2789                <li class="arg">
 2790                    
 2791                        <code>x0</code>
 2792                    
 2793                </li>
 2794            
 2795                <li class="arg">
 2796                    
 2797                        <code>y0</code>
 2798                    
 2799                </li>
 2800            
 2801                <li class="arg">
 2802                    
 2803                        <code>x1</code>
 2804                    
 2805                </li>
 2806            
 2807                <li class="arg">
 2808                    
 2809                        <code>y1</code>
 2810                    
 2811                </li>
 2812            
 2813            </ul><span class="paren">)</span>
 2814        </div>
 2815    
 2816
 2817    
 2818        <span class="returns-inline">
 2819            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 2820        </span>
 2821    
 2822
 2823    
 2824
 2825    
 2826
 2827    
 2828
 2829    
 2830
 2831    
 2832        <span class="flag chainable">chainable</span>
 2833    
 2834
 2835    
 2836
 2837    <div class="meta">
 2838        
 2839            
 2840                
 2841                <p>
 2842                
 2843                Defined in
 2844                
 2845            
 2846        
 2847        
 2848        <a href="../files/easeljs_display_Graphics.js.html#l615"><code>beginLinearGradientFill:615</code></a>
 2849        
 2850        </p>
 2851
 2852
 2853        
 2854
 2855        
 2856    </div>
 2857
 2858    <div class="description">
 2859        <p>Begins a linear gradient fill defined by the line (x0, y0) to (x1, y1). This ends the current sub-path. For
 2860example, the following code defines a black to white vertical gradient ranging from 20px to 120px, and draws a
 2861square to display it:</p>
 2862<pre class="code prettyprint"><code> myGraphics.beginLinearGradientFill(["#000","#FFF"], [0, 1], 0, 20, 0, 120).drawRect(20, 20, 120, 120);</code></pre>
 2863<p>A tiny API method "lf" also exists.</p>
 2864
 2865    </div>
 2866
 2867    
 2868        <div class="params">
 2869            <h4>Parameters:</h4>
 2870
 2871            <ul class="params-list">
 2872            
 2873                <li class="param">
 2874                    
 2875                        <code class="param-name">colors</code>
 2876                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 2877                    
 2878
 2879                    
 2880
 2881                    <div class="param-description">
 2882                        <p>An array of CSS compatible color values. For example, ["#F00","#00F"] would define a gradient
 2883drawing from red to blue.</p>
 2884
 2885                    </div>
 2886
 2887                    
 2888                </li>
 2889            
 2890                <li class="param">
 2891                    
 2892                        <code class="param-name">ratios</code>
 2893                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 2894                    
 2895
 2896                    
 2897
 2898                    <div class="param-description">
 2899                        <p>An array of gradient positions which correspond to the colors. For example, [0.1, 0.9] would draw
 2900the first color to 10% then interpolating to the second color at 90%.</p>
 2901
 2902                    </div>
 2903
 2904                    
 2905                </li>
 2906            
 2907                <li class="param">
 2908                    
 2909                        <code class="param-name">x0</code>
 2910                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 2911                    
 2912
 2913                    
 2914
 2915                    <div class="param-description">
 2916                        <p>The position of the first point defining the line that defines the gradient direction and size.</p>
 2917
 2918                    </div>
 2919
 2920                    
 2921                </li>
 2922            
 2923                <li class="param">
 2924                    
 2925                        <code class="param-name">y0</code>
 2926                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 2927                    
 2928
 2929                    
 2930
 2931                    <div class="param-description">
 2932                        <p>The position of the first point defining the line that defines the gradient direction and size.</p>
 2933
 2934                    </div>
 2935
 2936                    
 2937                </li>
 2938            
 2939                <li class="param">
 2940                    
 2941                        <code class="param-name">x1</code>
 2942                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 2943                    
 2944
 2945                    
 2946
 2947                    <div class="param-description">
 2948                        <p>The position of the second point defining the line that defines the gradient direction and size.</p>
 2949
 2950                    </div>
 2951
 2952                    
 2953                </li>
 2954            
 2955                <li class="param">
 2956                    
 2957                        <code class="param-name">y1</code>
 2958                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 2959                    
 2960
 2961                    
 2962
 2963                    <div class="param-description">
 2964                        <p>The position of the second point defining the line that defines the gradient direction and size.</p>
 2965
 2966                    </div>
 2967
 2968                    
 2969                </li>
 2970            
 2971            </ul>
 2972        </div>
 2973    
 2974
 2975    
 2976        <div class="returns">
 2977            <h4>Returns:</h4>
 2978
 2979            <div class="returns-description">
 2980                
 2981                    
 2982                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 2983                    
 2984                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 2985
 2986                
 2987            </div>
 2988        </div>
 2989    
 2990
 2991    
 2992</div>
 2993
 2994                
 2995                    <div id="method_beginLinearGradientStroke" class="method item">
 2996    <h3 class="name"><code>beginLinearGradientStroke</code></h3>
 2997
 2998    
 2999        <div class="args">
 3000            <span class="paren">(</span><ul class="args-list inline commas">
 3001            
 3002                <li class="arg">
 3003                    
 3004                        <code>colors</code>
 3005                    
 3006                </li>
 3007            
 3008                <li class="arg">
 3009                    
 3010                        <code>ratios</code>
 3011                    
 3012                </li>
 3013            
 3014                <li class="arg">
 3015                    
 3016                        <code>x0</code>
 3017                    
 3018                </li>
 3019            
 3020                <li class="arg">
 3021                    
 3022                        <code>y0</code>
 3023                    
 3024                </li>
 3025            
 3026                <li class="arg">
 3027                    
 3028                        <code>x1</code>
 3029                    
 3030                </li>
 3031            
 3032                <li class="arg">
 3033                    
 3034                        <code>y1</code>
 3035                    
 3036                </li>
 3037            
 3038            </ul><span class="paren">)</span>
 3039        </div>
 3040    
 3041
 3042    
 3043        <span class="returns-inline">
 3044            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 3045        </span>
 3046    
 3047
 3048    
 3049
 3050    
 3051
 3052    
 3053
 3054    
 3055
 3056    
 3057        <span class="flag chainable">chainable</span>
 3058    
 3059
 3060    
 3061
 3062    <div class="meta">
 3063        
 3064            
 3065                
 3066                <p>
 3067                
 3068                Defined in
 3069                
 3070            
 3071        
 3072        
 3073        <a href="../files/easeljs_display_Graphics.js.html#l757"><code>beginLinearGradientStroke:757</code></a>
 3074        
 3075        </p>
 3076
 3077
 3078        
 3079
 3080        
 3081    </div>
 3082
 3083    <div class="description">
 3084        <p>Begins a linear gradient stroke defined by the line (x0, y0) to (x1, y1). This ends the current sub-path. For
 3085example, the following code defines a black to white vertical gradient ranging from 20px to 120px, and draws a
 3086square to display it:</p>
 3087<pre class="code prettyprint"><code> myGraphics.setStrokeStyle(10).
 3088     beginLinearGradientStroke(["#000","#FFF"], [0, 1], 0, 20, 0, 120).drawRect(20, 20, 120, 120);</code></pre>
 3089<p>A tiny API method "ls" also exists.</p>
 3090
 3091    </div>
 3092
 3093    
 3094        <div class="params">
 3095            <h4>Parameters:</h4>
 3096
 3097            <ul class="params-list">
 3098            
 3099                <li class="param">
 3100                    
 3101                        <code class="param-name">colors</code>
 3102                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 3103                    
 3104
 3105                    
 3106
 3107                    <div class="param-description">
 3108                        <p>An array of CSS compatible color values. For example, ["#F00","#00F"] would define
 3109a gradient drawing from red to blue.</p>
 3110
 3111                    </div>
 3112
 3113                    
 3114                </li>
 3115            
 3116                <li class="param">
 3117                    
 3118                        <code class="param-name">ratios</code>
 3119                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 3120                    
 3121
 3122                    
 3123
 3124                    <div class="param-description">
 3125                        <p>An array of gradient positions which correspond to the colors. For example, [0.1,
 31260.9] would draw the first color to 10% then interpolating to the second color at 90%.</p>
 3127
 3128                    </div>
 3129
 3130                    
 3131                </li>
 3132            
 3133                <li class="param">
 3134                    
 3135                        <code class="param-name">x0</code>
 3136                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3137                    
 3138
 3139                    
 3140
 3141                    <div class="param-description">
 3142                        <p>The position of the first point defining the line that defines the gradient direction and size.</p>
 3143
 3144                    </div>
 3145
 3146                    
 3147                </li>
 3148            
 3149                <li class="param">
 3150                    
 3151                        <code class="param-name">y0</code>
 3152                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3153                    
 3154
 3155                    
 3156
 3157                    <div class="param-description">
 3158                        <p>The position of the first point defining the line that defines the gradient direction and size.</p>
 3159
 3160                    </div>
 3161
 3162                    
 3163                </li>
 3164            
 3165                <li class="param">
 3166                    
 3167                        <code class="param-name">x1</code>
 3168                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3169                    
 3170
 3171                    
 3172
 3173                    <div class="param-description">
 3174                        <p>The position of the second point defining the line that defines the gradient direction and size.</p>
 3175
 3176                    </div>
 3177
 3178                    
 3179                </li>
 3180            
 3181                <li class="param">
 3182                    
 3183                        <code class="param-name">y1</code>
 3184                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3185                    
 3186
 3187                    
 3188
 3189                    <div class="param-description">
 3190                        <p>The position of the second point defining the line that defines the gradient direction and size.</p>
 3191
 3192                    </div>
 3193
 3194                    
 3195                </li>
 3196            
 3197            </ul>
 3198        </div>
 3199    
 3200
 3201    
 3202        <div class="returns">
 3203            <h4>Returns:</h4>
 3204
 3205            <div class="returns-description">
 3206                
 3207                    
 3208                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 3209                    
 3210                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 3211
 3212                
 3213            </div>
 3214        </div>
 3215    
 3216
 3217    
 3218</div>
 3219
 3220                
 3221                    <div id="method_beginRadialGradientFill" class="method item">
 3222    <h3 class="name"><code>beginRadialGradientFill</code></h3>
 3223
 3224    
 3225        <div class="args">
 3226            <span class="paren">(</span><ul class="args-list inline commas">
 3227            
 3228                <li class="arg">
 3229                    
 3230                        <code>colors</code>
 3231                    
 3232                </li>
 3233            
 3234                <li class="arg">
 3235                    
 3236                        <code>ratios</code>
 3237                    
 3238                </li>
 3239            
 3240                <li class="arg">
 3241                    
 3242                        <code>x0</code>
 3243                    
 3244                </li>
 3245            
 3246                <li class="arg">
 3247                    
 3248                        <code>y0</code>
 3249                    
 3250                </li>
 3251            
 3252                <li class="arg">
 3253                    
 3254                        <code>r0</code>
 3255                    
 3256                </li>
 3257            
 3258                <li class="arg">
 3259                    
 3260                        <code>x1</code>
 3261                    
 3262                </li>
 3263            
 3264                <li class="arg">
 3265                    
 3266                        <code>y1</code>
 3267                    
 3268                </li>
 3269            
 3270                <li class="arg">
 3271                    
 3272                        <code>r1</code>
 3273                    
 3274                </li>
 3275            
 3276            </ul><span class="paren">)</span>
 3277        </div>
 3278    
 3279
 3280    
 3281        <span class="returns-inline">
 3282            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 3283        </span>
 3284    
 3285
 3286    
 3287
 3288    
 3289
 3290    
 3291
 3292    
 3293
 3294    
 3295        <span class="flag chainable">chainable</span>
 3296    
 3297
 3298    
 3299
 3300    <div class="meta">
 3301        
 3302            
 3303                
 3304                <p>
 3305                
 3306                Defined in
 3307                
 3308            
 3309        
 3310        
 3311        <a href="../files/easeljs_display_Graphics.js.html#l639"><code>beginRadialGradientFill:639</code></a>
 3312        
 3313        </p>
 3314
 3315
 3316        
 3317
 3318        
 3319    </div>
 3320
 3321    <div class="description">
 3322        <p>Begins a radial gradient fill. This ends the current sub-path. For example, the following code defines a red to
 3323blue radial gradient centered at (100, 100), with a radius of 50, and draws a circle to display it:</p>
 3324<pre class="code prettyprint"><code> myGraphics.beginRadialGradientFill(["#F00","#00F"], [0, 1], 100, 100, 0, 100, 100, 50).drawCircle(100, 100, 50);</code></pre>
 3325<p>A tiny API method "rf" also exists.</p>
 3326
 3327    </div>
 3328
 3329    
 3330        <div class="params">
 3331            <h4>Parameters:</h4>
 3332
 3333            <ul class="params-list">
 3334            
 3335                <li class="param">
 3336                    
 3337                        <code class="param-name">colors</code>
 3338                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 3339                    
 3340
 3341                    
 3342
 3343                    <div class="param-description">
 3344                        <p>An array of CSS compatible color values. For example, ["#F00","#00F"] would define
 3345a gradient drawing from red to blue.</p>
 3346
 3347                    </div>
 3348
 3349                    
 3350                </li>
 3351            
 3352                <li class="param">
 3353                    
 3354                        <code class="param-name">ratios</code>
 3355                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 3356                    
 3357
 3358                    
 3359
 3360                    <div class="param-description">
 3361                        <p>An array of gradient positions which correspond to the colors. For example, [0.1,
 33620.9] would draw the first color to 10% then interpolating to the second color at 90%.</p>
 3363
 3364                    </div>
 3365
 3366                    
 3367                </li>
 3368            
 3369                <li class="param">
 3370                    
 3371                        <code class="param-name">x0</code>
 3372                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3373                    
 3374
 3375                    
 3376
 3377                    <div class="param-description">
 3378                        <p>Center position of the inner circle that defines the gradient.</p>
 3379
 3380                    </div>
 3381
 3382                    
 3383                </li>
 3384            
 3385                <li class="param">
 3386                    
 3387                        <code class="param-name">y0</code>
 3388                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3389                    
 3390
 3391                    
 3392
 3393                    <div class="param-description">
 3394                        <p>Center position of the inner circle that defines the gradient.</p>
 3395
 3396                    </div>
 3397
 3398                    
 3399                </li>
 3400            
 3401                <li class="param">
 3402                    
 3403                        <code class="param-name">r0</code>
 3404                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3405                    
 3406
 3407                    
 3408
 3409                    <div class="param-description">
 3410                        <p>Radius of the inner circle that defines the gradient.</p>
 3411
 3412                    </div>
 3413
 3414                    
 3415                </li>
 3416            
 3417                <li class="param">
 3418                    
 3419                        <code class="param-name">x1</code>
 3420                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3421                    
 3422
 3423                    
 3424
 3425                    <div class="param-description">
 3426                        <p>Center position of the outer circle that defines the gradient.</p>
 3427
 3428                    </div>
 3429
 3430                    
 3431                </li>
 3432            
 3433                <li class="param">
 3434                    
 3435                        <code class="param-name">y1</code>
 3436                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3437                    
 3438
 3439                    
 3440
 3441                    <div class="param-description">
 3442                        <p>Center position of the outer circle that defines the gradient.</p>
 3443
 3444                    </div>
 3445
 3446                    
 3447                </li>
 3448            
 3449                <li class="param">
 3450                    
 3451                        <code class="param-name">r1</code>
 3452                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3453                    
 3454
 3455                    
 3456
 3457                    <div class="param-description">
 3458                        <p>Radius of the outer circle that defines the gradient.</p>
 3459
 3460                    </div>
 3461
 3462                    
 3463                </li>
 3464            
 3465            </ul>
 3466        </div>
 3467    
 3468
 3469    
 3470        <div class="returns">
 3471            <h4>Returns:</h4>
 3472
 3473            <div class="returns-description">
 3474                
 3475                    
 3476                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 3477                    
 3478                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 3479
 3480                
 3481            </div>
 3482        </div>
 3483    
 3484
 3485    
 3486</div>
 3487
 3488                
 3489                    <div id="method_beginRadialGradientStroke" class="method item">
 3490    <h3 class="name"><code>beginRadialGradientStroke</code></h3>
 3491
 3492    
 3493        <div class="args">
 3494            <span class="paren">(</span><ul class="args-list inline commas">
 3495            
 3496                <li class="arg">
 3497                    
 3498                        <code>colors</code>
 3499                    
 3500                </li>
 3501            
 3502                <li class="arg">
 3503                    
 3504                        <code>ratios</code>
 3505                    
 3506                </li>
 3507            
 3508                <li class="arg">
 3509                    
 3510                        <code>x0</code>
 3511                    
 3512                </li>
 3513            
 3514                <li class="arg">
 3515                    
 3516                        <code>y0</code>
 3517                    
 3518                </li>
 3519            
 3520                <li class="arg">
 3521                    
 3522                        <code>r0</code>
 3523                    
 3524                </li>
 3525            
 3526                <li class="arg">
 3527                    
 3528                        <code>x1</code>
 3529                    
 3530                </li>
 3531            
 3532                <li class="arg">
 3533                    
 3534                        <code>y1</code>
 3535                    
 3536                </li>
 3537            
 3538                <li class="arg">
 3539                    
 3540                        <code>r1</code>
 3541                    
 3542                </li>
 3543            
 3544            </ul><span class="paren">)</span>
 3545        </div>
 3546    
 3547
 3548    
 3549        <span class="returns-inline">
 3550            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 3551        </span>
 3552    
 3553
 3554    
 3555
 3556    
 3557
 3558    
 3559
 3560    
 3561
 3562    
 3563        <span class="flag chainable">chainable</span>
 3564    
 3565
 3566    
 3567
 3568    <div class="meta">
 3569        
 3570            
 3571                
 3572                <p>
 3573                
 3574                Defined in
 3575                
 3576            
 3577        
 3578        
 3579        <a href="../files/easeljs_display_Graphics.js.html#l782"><code>beginRadialGradientStroke:782</code></a>
 3580        
 3581        </p>
 3582
 3583
 3584        
 3585
 3586        
 3587    </div>
 3588
 3589    <div class="description">
 3590        <p>Begins a radial gradient stroke. This ends the current sub-path. For example, the following code defines a red to
 3591blue radial gradient centered at (100, 100), with a radius of 50, and draws a rectangle to display it:</p>
 3592<pre class="code prettyprint"><code> myGraphics.setStrokeStyle(10)
 3593     .beginRadialGradientStroke(["#F00","#00F"], [0, 1], 100, 100, 0, 100, 100, 50)
 3594     .drawRect(50, 90, 150, 110);</code></pre>
 3595<p>A tiny API method "rs" also exists.</p>
 3596
 3597    </div>
 3598
 3599    
 3600        <div class="params">
 3601            <h4>Parameters:</h4>
 3602
 3603            <ul class="params-list">
 3604            
 3605                <li class="param">
 3606                    
 3607                        <code class="param-name">colors</code>
 3608                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 3609                    
 3610
 3611                    
 3612
 3613                    <div class="param-description">
 3614                        <p>An array of CSS compatible color values. For example, ["#F00","#00F"] would define
 3615a gradient drawing from red to blue.</p>
 3616
 3617                    </div>
 3618
 3619                    
 3620                </li>
 3621            
 3622                <li class="param">
 3623                    
 3624                        <code class="param-name">ratios</code>
 3625                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 3626                    
 3627
 3628                    
 3629
 3630                    <div class="param-description">
 3631                        <p>An array of gradient positions which correspond to the colors. For example, [0.1,
 36320.9] would draw the first color to 10% then interpolating to the second color at 90%, then draw the second color
 3633to 100%.</p>
 3634
 3635                    </div>
 3636
 3637                    
 3638                </li>
 3639            
 3640                <li class="param">
 3641                    
 3642                        <code class="param-name">x0</code>
 3643                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3644                    
 3645
 3646                    
 3647
 3648                    <div class="param-description">
 3649                        <p>Center position of the inner circle that defines the gradient.</p>
 3650
 3651                    </div>
 3652
 3653                    
 3654                </li>
 3655            
 3656                <li class="param">
 3657                    
 3658                        <code class="param-name">y0</code>
 3659                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3660                    
 3661
 3662                    
 3663
 3664                    <div class="param-description">
 3665                        <p>Center position of the inner circle that defines the gradient.</p>
 3666
 3667                    </div>
 3668
 3669                    
 3670                </li>
 3671            
 3672                <li class="param">
 3673                    
 3674                        <code class="param-name">r0</code>
 3675                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3676                    
 3677
 3678                    
 3679
 3680                    <div class="param-description">
 3681                        <p>Radius of the inner circle that defines the gradient.</p>
 3682
 3683                    </div>
 3684
 3685                    
 3686                </li>
 3687            
 3688                <li class="param">
 3689                    
 3690                        <code class="param-name">x1</code>
 3691                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3692                    
 3693
 3694                    
 3695
 3696                    <div class="param-description">
 3697                        <p>Center position of the outer circle that defines the gradient.</p>
 3698
 3699                    </div>
 3700
 3701                    
 3702                </li>
 3703            
 3704                <li class="param">
 3705                    
 3706                        <code class="param-name">y1</code>
 3707                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3708                    
 3709
 3710                    
 3711
 3712                    <div class="param-description">
 3713                        <p>Center position of the outer circle that defines the gradient.</p>
 3714
 3715                    </div>
 3716
 3717                    
 3718                </li>
 3719            
 3720                <li class="param">
 3721                    
 3722                        <code class="param-name">r1</code>
 3723                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3724                    
 3725
 3726                    
 3727
 3728                    <div class="param-description">
 3729                        <p>Radius of the outer circle that defines the gradient.</p>
 3730
 3731                    </div>
 3732
 3733                    
 3734                </li>
 3735            
 3736            </ul>
 3737        </div>
 3738    
 3739
 3740    
 3741        <div class="returns">
 3742            <h4>Returns:</h4>
 3743
 3744            <div class="returns-description">
 3745                
 3746                    
 3747                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 3748                    
 3749                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 3750
 3751                
 3752            </div>
 3753        </div>
 3754    
 3755
 3756    
 3757</div>
 3758
 3759                
 3760                    <div id="method_beginStroke" class="method item">
 3761    <h3 class="name"><code>beginStroke</code></h3>
 3762
 3763    
 3764        <div class="args">
 3765            <span class="paren">(</span><ul class="args-list inline commas">
 3766            
 3767                <li class="arg">
 3768                    
 3769                        <code>color</code>
 3770                    
 3771                </li>
 3772            
 3773            </ul><span class="paren">)</span>
 3774        </div>
 3775    
 3776
 3777    
 3778        <span class="returns-inline">
 3779            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 3780        </span>
 3781    
 3782
 3783    
 3784
 3785    
 3786
 3787    
 3788
 3789    
 3790
 3791    
 3792        <span class="flag chainable">chainable</span>
 3793    
 3794
 3795    
 3796
 3797    <div class="meta">
 3798        
 3799            
 3800                
 3801                <p>
 3802                
 3803                Defined in
 3804                
 3805            
 3806        
 3807        
 3808        <a href="../files/easeljs_display_Graphics.js.html#l745"><code>beginStroke:745</code></a>
 3809        
 3810        </p>
 3811
 3812
 3813        
 3814
 3815        
 3816    </div>
 3817
 3818    <div class="description">
 3819        <p>Begins a stroke with the specified color. This ends the current sub-path. A tiny API method "s" also exists.</p>
 3820
 3821    </div>
 3822
 3823    
 3824        <div class="params">
 3825            <h4>Parameters:</h4>
 3826
 3827            <ul class="params-list">
 3828            
 3829                <li class="param">
 3830                    
 3831                        <code class="param-name">color</code>
 3832                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 3833                    
 3834
 3835                    
 3836
 3837                    <div class="param-description">
 3838                        <p>A CSS compatible color value (ex. "#FF0000", "red", or "rgba(255,0,0,0.5)"). Setting to
 3839null will result in no stroke.</p>
 3840
 3841                    </div>
 3842
 3843                    
 3844                </li>
 3845            
 3846            </ul>
 3847        </div>
 3848    
 3849
 3850    
 3851        <div class="returns">
 3852            <h4>Returns:</h4>
 3853
 3854            <div class="returns-description">
 3855                
 3856                    
 3857                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 3858                    
 3859                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 3860
 3861                
 3862            </div>
 3863        </div>
 3864    
 3865
 3866    
 3867</div>
 3868
 3869                
 3870                    <div id="method_bezierCurveTo" class="method item">
 3871    <h3 class="name"><code>bezierCurveTo</code></h3>
 3872
 3873    
 3874        <div class="args">
 3875            <span class="paren">(</span><ul class="args-list inline commas">
 3876            
 3877                <li class="arg">
 3878                    
 3879                        <code>cp1x</code>
 3880                    
 3881                </li>
 3882            
 3883                <li class="arg">
 3884                    
 3885                        <code>cp1y</code>
 3886                    
 3887                </li>
 3888            
 3889                <li class="arg">
 3890                    
 3891                        <code>cp2x</code>
 3892                    
 3893                </li>
 3894            
 3895                <li class="arg">
 3896                    
 3897                        <code>cp2y</code>
 3898                    
 3899                </li>
 3900            
 3901                <li class="arg">
 3902                    
 3903                        <code>x</code>
 3904                    
 3905                </li>
 3906            
 3907                <li class="arg">
 3908                    
 3909                        <code>y</code>
 3910                    
 3911                </li>
 3912            
 3913            </ul><span class="paren">)</span>
 3914        </div>
 3915    
 3916
 3917    
 3918        <span class="returns-inline">
 3919            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 3920        </span>
 3921    
 3922
 3923    
 3924
 3925    
 3926
 3927    
 3928
 3929    
 3930
 3931    
 3932        <span class="flag chainable">chainable</span>
 3933    
 3934
 3935    
 3936
 3937    <div class="meta">
 3938        
 3939            
 3940                
 3941                <p>
 3942                
 3943                Defined in
 3944                
 3945            
 3946        
 3947        
 3948        <a href="../files/easeljs_display_Graphics.js.html#l540"><code>bezierCurveTo:540</code></a>
 3949        
 3950        </p>
 3951
 3952
 3953        
 3954
 3955        
 3956    </div>
 3957
 3958    <div class="description">
 3959        <p>Draws a bezier curve from the current drawing point to (x, y) using the control points (cp1x, cp1y) and (cp2x,
 3960cp2y). For detailed information, read the
 3961<a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-beziercurveto">
 3962whatwg spec</a>. A tiny API method "bt" also exists.</p>
 3963
 3964    </div>
 3965
 3966    
 3967        <div class="params">
 3968            <h4>Parameters:</h4>
 3969
 3970            <ul class="params-list">
 3971            
 3972                <li class="param">
 3973                    
 3974                        <code class="param-name">cp1x</code>
 3975                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3976                    
 3977
 3978                    
 3979
 3980                    <div class="param-description">
 3981                         
 3982                    </div>
 3983
 3984                    
 3985                </li>
 3986            
 3987                <li class="param">
 3988                    
 3989                        <code class="param-name">cp1y</code>
 3990                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 3991                    
 3992
 3993                    
 3994
 3995                    <div class="param-description">
 3996                         
 3997                    </div>
 3998
 3999                    
 4000                </li>
 4001            
 4002                <li class="param">
 4003                    
 4004                        <code class="param-name">cp2x</code>
 4005                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4006                    
 4007
 4008                    
 4009
 4010                    <div class="param-description">
 4011                         
 4012                    </div>
 4013
 4014                    
 4015                </li>
 4016            
 4017                <li class="param">
 4018                    
 4019                        <code class="param-name">cp2y</code>
 4020                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4021                    
 4022
 4023                    
 4024
 4025                    <div class="param-description">
 4026                         
 4027                    </div>
 4028
 4029                    
 4030                </li>
 4031            
 4032                <li class="param">
 4033                    
 4034                        <code class="param-name">x</code>
 4035                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4036                    
 4037
 4038                    
 4039
 4040                    <div class="param-description">
 4041                         
 4042                    </div>
 4043
 4044                    
 4045                </li>
 4046            
 4047                <li class="param">
 4048                    
 4049                        <code class="param-name">y</code>
 4050                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4051                    
 4052
 4053                    
 4054
 4055                    <div class="param-description">
 4056                         
 4057                    </div>
 4058
 4059                    
 4060                </li>
 4061            
 4062            </ul>
 4063        </div>
 4064    
 4065
 4066    
 4067        <div class="returns">
 4068            <h4>Returns:</h4>
 4069
 4070            <div class="returns-description">
 4071                
 4072                    
 4073                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 4074                    
 4075                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 4076
 4077                
 4078            </div>
 4079        </div>
 4080    
 4081
 4082    
 4083</div>
 4084
 4085                
 4086                    <div id="method_bf" class="method item protected">
 4087    <h3 class="name"><code>bf</code></h3>
 4088
 4089    
 4090        <div class="args">
 4091            <span class="paren">(</span><ul class="args-list inline commas">
 4092            
 4093                <li class="arg">
 4094                    
 4095                        <code>image</code>
 4096                    
 4097                </li>
 4098            
 4099                <li class="arg">
 4100                    
 4101                        <code>repetition</code>
 4102                    
 4103                </li>
 4104            
 4105                <li class="arg">
 4106                    
 4107                        <code>matrix</code>
 4108                    
 4109                </li>
 4110            
 4111            </ul><span class="paren">)</span>
 4112        </div>
 4113    
 4114
 4115    
 4116        <span class="returns-inline">
 4117            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 4118        </span>
 4119    
 4120
 4121    
 4122
 4123    
 4124        <span class="flag protected">protected</span>
 4125    
 4126
 4127    
 4128
 4129    
 4130
 4131    
 4132        <span class="flag chainable">chainable</span>
 4133    
 4134
 4135    
 4136
 4137    <div class="meta">
 4138        
 4139            
 4140                
 4141                <p>
 4142                
 4143                Defined in
 4144                
 4145            
 4146        
 4147        
 4148        <a href="../files/easeljs_display_Graphics.js.html#l1321"><code>bf:1321</code></a>
 4149        
 4150        </p>
 4151
 4152
 4153        
 4154
 4155        
 4156    </div>
 4157
 4158    <div class="description">
 4159        <p>Shortcut to beginBitmapFill.</p>
 4160
 4161    </div>
 4162
 4163    
 4164        <div class="params">
 4165            <h4>Parameters:</h4>
 4166
 4167            <ul class="params-list">
 4168            
 4169                <li class="param">
 4170                    
 4171                        <code class="param-name">image</code>
 4172                        <span class="type">HTMLImageElement | HTMLCanvasElement | HTMLVideoElement</span>
 4173                    
 4174
 4175                    
 4176
 4177                    <div class="param-description">
 4178                        <p>The Image, Canvas, or Video object to use
 4179as the pattern.</p>
 4180
 4181                    </div>
 4182
 4183                    
 4184                </li>
 4185            
 4186                <li class="param">
 4187                    
 4188                        <code class="param-name">repetition</code>
 4189                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 4190                    
 4191
 4192                    
 4193
 4194                    <div class="param-description">
 4195                        <p>Optional. Indicates whether to repeat the image in the fill area. One of "repeat",
 4196"repeat-x", "repeat-y", or "no-repeat". Defaults to "repeat". Note that Firefox does not support "repeat-x" or
 4197"repeat-y" (latest tests were in FF 20.0), and will default to "repeat".</p>
 4198
 4199                    </div>
 4200
 4201                    
 4202                </li>
 4203            
 4204                <li class="param">
 4205                    
 4206                        <code class="param-name">matrix</code>
 4207                        <span class="type"><a href="../classes/Matrix2D.html" class="crosslink">Matrix2D</a></span>
 4208                    
 4209
 4210                    
 4211
 4212                    <div class="param-description">
 4213                        <p>Optional. Specifies a transformation matrix for the bitmap fill. This transformation
 4214will be applied relative to the parent transform.</p>
 4215
 4216                    </div>
 4217
 4218                    
 4219                </li>
 4220            
 4221            </ul>
 4222        </div>
 4223    
 4224
 4225    
 4226        <div class="returns">
 4227            <h4>Returns:</h4>
 4228
 4229            <div class="returns-description">
 4230                
 4231                    
 4232                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 4233                    
 4234                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 4235
 4236                
 4237            </div>
 4238        </div>
 4239    
 4240
 4241    
 4242</div>
 4243
 4244                
 4245                    <div id="method_bs" class="method item protected">
 4246    <h3 class="name"><code>bs</code></h3>
 4247
 4248    
 4249        <div class="args">
 4250            <span class="paren">(</span><ul class="args-list inline commas">
 4251            
 4252                <li class="arg">
 4253                    
 4254                        <code>image</code>
 4255                    
 4256                </li>
 4257            
 4258                <li class="arg">
 4259                    
 4260                        <code class="optional">[repetition=repeat]</code>
 4261                    
 4262                </li>
 4263            
 4264            </ul><span class="paren">)</span>
 4265        </div>
 4266    
 4267
 4268    
 4269        <span class="returns-inline">
 4270            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 4271        </span>
 4272    
 4273
 4274    
 4275
 4276    
 4277        <span class="flag protected">protected</span>
 4278    
 4279
 4280    
 4281
 4282    
 4283
 4284    
 4285        <span class="flag chainable">chainable</span>
 4286    
 4287
 4288    
 4289
 4290    <div class="meta">
 4291        
 4292            
 4293                
 4294                <p>
 4295                
 4296                Defined in
 4297                
 4298            
 4299        
 4300        
 4301        <a href="../files/easeljs_display_Graphics.js.html#l1427"><code>bs:1427</code></a>
 4302        
 4303        </p>
 4304
 4305
 4306        
 4307
 4308        
 4309    </div>
 4310
 4311    <div class="description">
 4312        <p>Shortcut to beginBitmapStroke.</p>
 4313
 4314    </div>
 4315
 4316    
 4317        <div class="params">
 4318            <h4>Parameters:</h4>
 4319
 4320            <ul class="params-list">
 4321            
 4322                <li class="param">
 4323                    
 4324                        <code class="param-name">image</code>
 4325                        <span class="type">HTMLImageElement | HTMLCanvasElement | HTMLVideoElement</span>
 4326                    
 4327
 4328                    
 4329
 4330                    <div class="param-description">
 4331                        <p>The Image, Canvas, or Video object to use
 4332as the pattern.</p>
 4333
 4334                    </div>
 4335
 4336                    
 4337                </li>
 4338            
 4339                <li class="param">
 4340                    
 4341                        <code class="param-name optional">[repetition=repeat]</code>
 4342                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 4343                        <span class="flag optional" title="This parameter is optional.">optional</span>
 4344                    
 4345
 4346                    
 4347
 4348                    <div class="param-description">
 4349                        <p>Optional. Indicates whether to repeat the image in the fill area. One of
 4350"repeat", "repeat-x", "repeat-y", or "no-repeat". Defaults to "repeat".</p>
 4351
 4352                    </div>
 4353
 4354                    
 4355                </li>
 4356            
 4357            </ul>
 4358        </div>
 4359    
 4360
 4361    
 4362        <div class="returns">
 4363            <h4>Returns:</h4>
 4364
 4365            <div class="returns-description">
 4366                
 4367                    
 4368                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 4369                    
 4370                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 4371
 4372                
 4373            </div>
 4374        </div>
 4375    
 4376
 4377    
 4378</div>
 4379
 4380                
 4381                    <div id="method_bt" class="method item protected">
 4382    <h3 class="name"><code>bt</code></h3>
 4383
 4384    
 4385        <div class="args">
 4386            <span class="paren">(</span><ul class="args-list inline commas">
 4387            
 4388                <li class="arg">
 4389                    
 4390                        <code>cp1x</code>
 4391                    
 4392                </li>
 4393            
 4394                <li class="arg">
 4395                    
 4396                        <code>cp1y</code>
 4397                    
 4398                </li>
 4399            
 4400                <li class="arg">
 4401                    
 4402                        <code>cp2x</code>
 4403                    
 4404                </li>
 4405            
 4406                <li class="arg">
 4407                    
 4408                        <code>cp2y</code>
 4409                    
 4410                </li>
 4411            
 4412                <li class="arg">
 4413                    
 4414                        <code>x</code>
 4415                    
 4416                </li>
 4417            
 4418                <li class="arg">
 4419                    
 4420                        <code>y</code>
 4421                    
 4422                </li>
 4423            
 4424            </ul><span class="paren">)</span>
 4425        </div>
 4426    
 4427
 4428    
 4429        <span class="returns-inline">
 4430            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 4431        </span>
 4432    
 4433
 4434    
 4435
 4436    
 4437        <span class="flag protected">protected</span>
 4438    
 4439
 4440    
 4441
 4442    
 4443
 4444    
 4445        <span class="flag chainable">chainable</span>
 4446    
 4447
 4448    
 4449
 4450    <div class="meta">
 4451        
 4452            
 4453                
 4454                <p>
 4455                
 4456                Defined in
 4457                
 4458            
 4459        
 4460        
 4461        <a href="../files/easeljs_display_Graphics.js.html#l1201"><code>bt:1201</code></a>
 4462        
 4463        </p>
 4464
 4465
 4466        
 4467
 4468        
 4469    </div>
 4470
 4471    <div class="description">
 4472        <p>Shortcut to bezierCurveTo.</p>
 4473
 4474    </div>
 4475
 4476    
 4477        <div class="params">
 4478            <h4>Parameters:</h4>
 4479
 4480            <ul class="params-list">
 4481            
 4482                <li class="param">
 4483                    
 4484                        <code class="param-name">cp1x</code>
 4485                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4486                    
 4487
 4488                    
 4489
 4490                    <div class="param-description">
 4491                         
 4492                    </div>
 4493
 4494                    
 4495                </li>
 4496            
 4497                <li class="param">
 4498                    
 4499                        <code class="param-name">cp1y</code>
 4500                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4501                    
 4502
 4503                    
 4504
 4505                    <div class="param-description">
 4506                         
 4507                    </div>
 4508
 4509                    
 4510                </li>
 4511            
 4512                <li class="param">
 4513                    
 4514                        <code class="param-name">cp2x</code>
 4515                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4516                    
 4517
 4518                    
 4519
 4520                    <div class="param-description">
 4521                         
 4522                    </div>
 4523
 4524                    
 4525                </li>
 4526            
 4527                <li class="param">
 4528                    
 4529                        <code class="param-name">cp2y</code>
 4530                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4531                    
 4532
 4533                    
 4534
 4535                    <div class="param-description">
 4536                         
 4537                    </div>
 4538
 4539                    
 4540                </li>
 4541            
 4542                <li class="param">
 4543                    
 4544                        <code class="param-name">x</code>
 4545                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4546                    
 4547
 4548                    
 4549
 4550                    <div class="param-description">
 4551                         
 4552                    </div>
 4553
 4554                    
 4555                </li>
 4556            
 4557                <li class="param">
 4558                    
 4559                        <code class="param-name">y</code>
 4560                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 4561                    
 4562
 4563                    
 4564
 4565                    <div class="param-description">
 4566                         
 4567                    </div>
 4568
 4569                    
 4570                </li>
 4571            
 4572            </ul>
 4573        </div>
 4574    
 4575
 4576    
 4577        <div class="returns">
 4578            <h4>Returns:</h4>
 4579
 4580            <div class="returns-description">
 4581                
 4582                    
 4583                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 4584                    
 4585                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 4586
 4587                
 4588            </div>
 4589        </div>
 4590    
 4591
 4592    
 4593</div>
 4594
 4595                
 4596                    <div id="method_c" class="method item protected">
 4597    <h3 class="name"><code>c</code></h3>
 4598
 4599    
 4600        <span class="paren">()</span>
 4601    
 4602
 4603    
 4604        <span class="returns-inline">
 4605            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 4606        </span>
 4607    
 4608
 4609    
 4610
 4611    
 4612        <span class="flag protected">protected</span>
 4613    
 4614
 4615    
 4616
 4617    
 4618
 4619    
 4620        <span class="flag chainable">chainable</span>
 4621    
 4622
 4623    
 4624
 4625    <div class="meta">
 4626        
 4627            
 4628                
 4629                <p>
 4630                
 4631                Defined in
 4632                
 4633            
 4634        
 4635        
 4636        <a href="../files/easeljs_display_Graphics.js.html#l1265"><code>c:1265</code></a>
 4637        
 4638        </p>
 4639
 4640
 4641        
 4642
 4643        
 4644    </div>
 4645
 4646    <div class="description">
 4647        <p>Shortcut to clear.</p>
 4648
 4649    </div>
 4650
 4651    
 4652
 4653    
 4654        <div class="returns">
 4655            <h4>Returns:</h4>
 4656
 4657            <div class="returns-description">
 4658                
 4659                    
 4660                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 4661                    
 4662                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 4663
 4664                
 4665            </div>
 4666        </div>
 4667    
 4668
 4669    
 4670</div>
 4671
 4672                
 4673                    <div id="method_clear" class="method item">
 4674    <h3 class="name"><code>clear</code></h3>
 4675
 4676    
 4677        <span class="paren">()</span>
 4678    
 4679
 4680    
 4681        <span class="returns-inline">
 4682            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 4683        </span>
 4684    
 4685
 4686    
 4687
 4688    
 4689
 4690    
 4691
 4692    
 4693
 4694    
 4695        <span class="flag chainable">chainable</span>
 4696    
 4697
 4698    
 4699
 4700    <div class="meta">
 4701        
 4702            
 4703                
 4704                <p>
 4705                
 4706                Defined in
 4707                
 4708            
 4709        
 4710        
 4711        <a href="../files/easeljs_display_Graphics.js.html#l589"><code>clear:589</code></a>
 4712        
 4713        </p>
 4714
 4715
 4716        
 4717
 4718        
 4719    </div>
 4720
 4721    <div class="description">
 4722        <p>Clears all drawing instructions, effectively resetting this Graphics instance. Any line and fill styles will need
 4723to be redefined to draw shapes following a clear call. A tiny API method "c" also exists.</p>
 4724
 4725    </div>
 4726
 4727    
 4728
 4729    
 4730        <div class="returns">
 4731            <h4>Returns:</h4>
 4732
 4733            <div class="returns-description">
 4734                
 4735                    
 4736                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 4737                    
 4738                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 4739
 4740                
 4741            </div>
 4742        </div>
 4743    
 4744
 4745    
 4746</div>
 4747
 4748                
 4749                    <div id="method_clone" class="method item">
 4750    <h3 class="name"><code>clone</code></h3>
 4751
 4752    
 4753        <span class="paren">()</span>
 4754    
 4755
 4756    
 4757        <span class="returns-inline">
 4758            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 4759        </span>
 4760    
 4761
 4762    
 4763
 4764    
 4765
 4766    
 4767
 4768    
 4769
 4770    
 4771
 4772    
 4773
 4774    <div class="meta">
 4775        
 4776            
 4777                
 4778                <p>
 4779                
 4780                Defined in
 4781                
 4782            
 4783        
 4784        
 4785        <a href="../files/easeljs_display_Graphics.js.html#l1133"><code>clone:1133</code></a>
 4786        
 4787        </p>
 4788
 4789
 4790        
 4791
 4792        
 4793    </div>
 4794
 4795    <div class="description">
 4796        <p>Returns a clone of this Graphics instance. Note that the individual command objects are not cloned.</p>
 4797
 4798    </div>
 4799
 4800    
 4801
 4802    
 4803        <div class="returns">
 4804            <h4>Returns:</h4>
 4805
 4806            <div class="returns-description">
 4807                
 4808                    
 4809                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 4810                    
 4811                    <p>A clone of the current Graphics instance.</p>
 4812
 4813                
 4814            </div>
 4815        </div>
 4816    
 4817
 4818    
 4819</div>
 4820
 4821                
 4822                    <div id="method_closePath" class="method item">
 4823    <h3 class="name"><code>closePath</code></h3>
 4824
 4825    
 4826        <span class="paren">()</span>
 4827    
 4828
 4829    
 4830        <span class="returns-inline">
 4831            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 4832        </span>
 4833    
 4834
 4835    
 4836
 4837    
 4838
 4839    
 4840
 4841    
 4842
 4843    
 4844        <span class="flag chainable">chainable</span>
 4845    
 4846
 4847    
 4848
 4849    <div class="meta">
 4850        
 4851            
 4852                
 4853                <p>
 4854                
 4855                Defined in
 4856                
 4857            
 4858        
 4859        
 4860        <a href="../files/easeljs_display_Graphics.js.html#l576"><code>closePath:576</code></a>
 4861        
 4862        </p>
 4863
 4864
 4865        
 4866
 4867        
 4868    </div>
 4869
 4870    <div class="description">
 4871        <p>Closes the current path, effectively drawing a line from the current drawing point to the first drawing point specified
 4872since the fill or stroke was last set. A tiny API method "cp" also exists.</p>
 4873
 4874    </div>
 4875
 4876    
 4877
 4878    
 4879        <div class="returns">
 4880            <h4>Returns:</h4>
 4881
 4882            <div class="returns-description">
 4883                
 4884                    
 4885                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 4886                    
 4887                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 4888
 4889                
 4890            </div>
 4891        </div>
 4892    
 4893
 4894    
 4895</div>
 4896
 4897                
 4898                    <div id="method_cp" class="method item protected">
 4899    <h3 class="name"><code>cp</code></h3>
 4900
 4901    
 4902        <span class="paren">()</span>
 4903    
 4904
 4905    
 4906        <span class="returns-inline">
 4907            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 4908        </span>
 4909    
 4910
 4911    
 4912
 4913    
 4914        <span class="flag protected">protected</span>
 4915    
 4916
 4917    
 4918
 4919    
 4920
 4921    
 4922        <span class="flag chainable">chainable</span>
 4923    
 4924
 4925    
 4926
 4927    <div class="meta">
 4928        
 4929            
 4930                
 4931                <p>
 4932                
 4933                Defined in
 4934                
 4935            
 4936        
 4937        
 4938        <a href="../files/easeljs_display_Graphics.js.html#l1256"><code>cp:1256</code></a>
 4939        
 4940        </p>
 4941
 4942
 4943        
 4944
 4945        
 4946    </div>
 4947
 4948    <div class="description">
 4949        <p>Shortcut to closePath.</p>
 4950
 4951    </div>
 4952
 4953    
 4954
 4955    
 4956        <div class="returns">
 4957            <h4>Returns:</h4>
 4958
 4959            <div class="returns-description">
 4960                
 4961                    
 4962                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 4963                    
 4964                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 4965
 4966                
 4967            </div>
 4968        </div>
 4969    
 4970
 4971    
 4972</div>
 4973
 4974                
 4975                    <div id="method_curveTo" class="method item">
 4976    <h3 class="name"><code>curveTo</code></h3>
 4977
 4978    
 4979        <div class="args">
 4980            <span class="paren">(</span><ul class="args-list inline commas">
 4981            
 4982                <li class="arg">
 4983                    
 4984                        <code>cpx</code>
 4985                    
 4986                </li>
 4987            
 4988                <li class="arg">
 4989                    
 4990                        <code>cpy</code>
 4991                    
 4992                </li>
 4993            
 4994                <li class="arg">
 4995                    
 4996                        <code>x</code>
 4997                    
 4998                </li>
 4999            
 5000                <li class="arg">
 5001                    
 5002                        <code>y</code>
 5003                    
 5004                </li>
 5005            
 5006            </ul><span class="paren">)</span>
 5007        </div>
 5008    
 5009
 5010    
 5011        <span class="returns-inline">
 5012            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 5013        </span>
 5014    
 5015
 5016    
 5017
 5018    
 5019
 5020    
 5021
 5022    
 5023
 5024    
 5025        <span class="flag chainable">chainable</span>
 5026    
 5027
 5028    
 5029
 5030    <div class="meta">
 5031        
 5032            
 5033                
 5034                <p>
 5035                
 5036                Defined in
 5037                
 5038            
 5039        
 5040        
 5041        <a href="../files/easeljs_display_Graphics.js.html#l838"><code>curveTo:838</code></a>
 5042        
 5043        </p>
 5044
 5045
 5046        
 5047
 5048        
 5049    </div>
 5050
 5051    <div class="description">
 5052        <p>Maps the familiar ActionScript <code>curveTo()</code> method to the functionally similar <a href="../classes/Graphics.html#method_quadraticCurveTo" class="crosslink">quadraticCurveTo</a>
 5053method.</p>
 5054
 5055    </div>
 5056
 5057    
 5058        <div class="params">
 5059            <h4>Parameters:</h4>
 5060
 5061            <ul class="params-list">
 5062            
 5063                <li class="param">
 5064                    
 5065                        <code class="param-name">cpx</code>
 5066                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5067                    
 5068
 5069                    
 5070
 5071                    <div class="param-description">
 5072                         
 5073                    </div>
 5074
 5075                    
 5076                </li>
 5077            
 5078                <li class="param">
 5079                    
 5080                        <code class="param-name">cpy</code>
 5081                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5082                    
 5083
 5084                    
 5085
 5086                    <div class="param-description">
 5087                         
 5088                    </div>
 5089
 5090                    
 5091                </li>
 5092            
 5093                <li class="param">
 5094                    
 5095                        <code class="param-name">x</code>
 5096                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5097                    
 5098
 5099                    
 5100
 5101                    <div class="param-description">
 5102                         
 5103                    </div>
 5104
 5105                    
 5106                </li>
 5107            
 5108                <li class="param">
 5109                    
 5110                        <code class="param-name">y</code>
 5111                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5112                    
 5113
 5114                    
 5115
 5116                    <div class="param-description">
 5117                         
 5118                    </div>
 5119
 5120                    
 5121                </li>
 5122            
 5123            </ul>
 5124        </div>
 5125    
 5126
 5127    
 5128        <div class="returns">
 5129            <h4>Returns:</h4>
 5130
 5131            <div class="returns-description">
 5132                
 5133                    
 5134                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 5135                    
 5136                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 5137
 5138                
 5139            </div>
 5140        </div>
 5141    
 5142
 5143    
 5144</div>
 5145
 5146                
 5147                    <div id="method_dc" class="method item protected">
 5148    <h3 class="name"><code>dc</code></h3>
 5149
 5150    
 5151        <div class="args">
 5152            <span class="paren">(</span><ul class="args-list inline commas">
 5153            
 5154                <li class="arg">
 5155                    
 5156                        <code>x</code>
 5157                    
 5158                </li>
 5159            
 5160                <li class="arg">
 5161                    
 5162                        <code>y</code>
 5163                    
 5164                </li>
 5165            
 5166                <li class="arg">
 5167                    
 5168                        <code>radius</code>
 5169                    
 5170                </li>
 5171            
 5172            </ul><span class="paren">)</span>
 5173        </div>
 5174    
 5175
 5176    
 5177        <span class="returns-inline">
 5178            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 5179        </span>
 5180    
 5181
 5182    
 5183
 5184    
 5185        <span class="flag protected">protected</span>
 5186    
 5187
 5188    
 5189
 5190    
 5191
 5192    
 5193        <span class="flag chainable">chainable</span>
 5194    
 5195
 5196    
 5197
 5198    <div class="meta">
 5199        
 5200            
 5201                
 5202                <p>
 5203                
 5204                Defined in
 5205                
 5206            
 5207        
 5208        
 5209        <a href="../files/easeljs_display_Graphics.js.html#l1493"><code>dc:1493</code></a>
 5210        
 5211        </p>
 5212
 5213
 5214        
 5215
 5216        
 5217    </div>
 5218
 5219    <div class="description">
 5220        <p>Shortcut to drawCircle.</p>
 5221
 5222    </div>
 5223
 5224    
 5225        <div class="params">
 5226            <h4>Parameters:</h4>
 5227
 5228            <ul class="params-list">
 5229            
 5230                <li class="param">
 5231                    
 5232                        <code class="param-name">x</code>
 5233                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5234                    
 5235
 5236                    
 5237
 5238                    <div class="param-description">
 5239                        <p>x coordinate center point of circle.</p>
 5240
 5241                    </div>
 5242
 5243                    
 5244                </li>
 5245            
 5246                <li class="param">
 5247                    
 5248                        <code class="param-name">y</code>
 5249                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5250                    
 5251
 5252                    
 5253
 5254                    <div class="param-description">
 5255                        <p>y coordinate center point of circle.</p>
 5256
 5257                    </div>
 5258
 5259                    
 5260                </li>
 5261            
 5262                <li class="param">
 5263                    
 5264                        <code class="param-name">radius</code>
 5265                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5266                    
 5267
 5268                    
 5269
 5270                    <div class="param-description">
 5271                        <p>Radius of circle.</p>
 5272
 5273                    </div>
 5274
 5275                    
 5276                </li>
 5277            
 5278            </ul>
 5279        </div>
 5280    
 5281
 5282    
 5283        <div class="returns">
 5284            <h4>Returns:</h4>
 5285
 5286            <div class="returns-description">
 5287                
 5288                    
 5289                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 5290                    
 5291                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 5292
 5293                
 5294            </div>
 5295        </div>
 5296    
 5297
 5298    
 5299</div>
 5300
 5301                
 5302                    <div id="method_de" class="method item protected">
 5303    <h3 class="name"><code>de</code></h3>
 5304
 5305    
 5306        <div class="args">
 5307            <span class="paren">(</span><ul class="args-list inline commas">
 5308            
 5309                <li class="arg">
 5310                    
 5311                        <code>x</code>
 5312                    
 5313                </li>
 5314            
 5315                <li class="arg">
 5316                    
 5317                        <code>y</code>
 5318                    
 5319                </li>
 5320            
 5321                <li class="arg">
 5322                    
 5323                        <code>w</code>
 5324                    
 5325                </li>
 5326            
 5327                <li class="arg">
 5328                    
 5329                        <code>h</code>
 5330                    
 5331                </li>
 5332            
 5333            </ul><span class="paren">)</span>
 5334        </div>
 5335    
 5336
 5337    
 5338        <span class="returns-inline">
 5339            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 5340        </span>
 5341    
 5342
 5343    
 5344
 5345    
 5346        <span class="flag protected">protected</span>
 5347    
 5348
 5349    
 5350
 5351    
 5352
 5353    
 5354        <span class="flag chainable">chainable</span>
 5355    
 5356
 5357    
 5358
 5359    <div class="meta">
 5360        
 5361            
 5362                
 5363                <p>
 5364                
 5365                Defined in
 5366                
 5367            
 5368        
 5369        
 5370        <a href="../files/easeljs_display_Graphics.js.html#l1505"><code>de:1505</code></a>
 5371        
 5372        </p>
 5373
 5374
 5375        
 5376
 5377        
 5378    </div>
 5379
 5380    <div class="description">
 5381        <p>Shortcut to drawEllipse.</p>
 5382
 5383    </div>
 5384
 5385    
 5386        <div class="params">
 5387            <h4>Parameters:</h4>
 5388
 5389            <ul class="params-list">
 5390            
 5391                <li class="param">
 5392                    
 5393                        <code class="param-name">x</code>
 5394                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5395                    
 5396
 5397                    
 5398
 5399                    <div class="param-description">
 5400                        <p>The left coordinate point of the ellipse. Note that this is different from <a href="../classes/Graphics.html#method_drawCircle" class="crosslink">drawCircle</a>
 5401which draws from center.</p>
 5402
 5403                    </div>
 5404
 5405                    
 5406                </li>
 5407            
 5408                <li class="param">
 5409                    
 5410                        <code class="param-name">y</code>
 5411                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5412                    
 5413
 5414                    
 5415
 5416                    <div class="param-description">
 5417                        <p>The top coordinate point of the ellipse. Note that this is different from <a href="../classes/Graphics.html#method_drawCircle" class="crosslink">drawCircle</a>
 5418which draws from the center.</p>
 5419
 5420                    </div>
 5421
 5422                    
 5423                </li>
 5424            
 5425                <li class="param">
 5426                    
 5427                        <code class="param-name">w</code>
 5428                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5429                    
 5430
 5431                    
 5432
 5433                    <div class="param-description">
 5434                        <p>The height (horizontal diameter) of the ellipse. The horizontal radius will be half of this
 5435number.</p>
 5436
 5437                    </div>
 5438
 5439                    
 5440                </li>
 5441            
 5442                <li class="param">
 5443                    
 5444                        <code class="param-name">h</code>
 5445                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5446                    
 5447
 5448                    
 5449
 5450                    <div class="param-description">
 5451                        <p>The width (vertical diameter) of the ellipse. The vertical radius will be half of this number.</p>
 5452
 5453                    </div>
 5454
 5455                    
 5456                </li>
 5457            
 5458            </ul>
 5459        </div>
 5460    
 5461
 5462    
 5463        <div class="returns">
 5464            <h4>Returns:</h4>
 5465
 5466            <div class="returns-description">
 5467                
 5468                    
 5469                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 5470                    
 5471                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 5472
 5473                
 5474            </div>
 5475        </div>
 5476    
 5477
 5478    
 5479</div>
 5480
 5481                
 5482                    <div id="method_decodePath" class="method item">
 5483    <h3 class="name"><code>decodePath</code></h3>
 5484
 5485    
 5486        <div class="args">
 5487            <span class="paren">(</span><ul class="args-list inline commas">
 5488            
 5489                <li class="arg">
 5490                    
 5491                        <code>str</code>
 5492                    
 5493                </li>
 5494            
 5495            </ul><span class="paren">)</span>
 5496        </div>
 5497    
 5498
 5499    
 5500        <span class="returns-inline">
 5501            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 5502        </span>
 5503    
 5504
 5505    
 5506
 5507    
 5508
 5509    
 5510
 5511    
 5512
 5513    
 5514        <span class="flag chainable">chainable</span>
 5515    
 5516
 5517    
 5518
 5519    <div class="meta">
 5520        
 5521            
 5522                
 5523                <p>
 5524                
 5525                Defined in
 5526                
 5527            
 5528        
 5529        
 5530        <a href="../files/easeljs_display_Graphics.js.html#l1005"><code>decodePath:1005</code></a>
 5531        
 5532        </p>
 5533
 5534
 5535        
 5536
 5537        
 5538    </div>
 5539
 5540    <div class="description">
 5541        <p>Decodes a compact encoded path string into a series of draw instructions.
 5542This format is not intended to be human readable, and is meant for use by authoring tools.
 5543The format uses a base64 character set, with each character representing 6 bits, to define a series of draw
 5544commands.</p>
 5545<p>Each command is comprised of a single "header" character followed by a variable number of alternating x and y
 5546position values. Reading the header bits from left to right (most to least significant): bits 1 to 3 specify the
 5547type of operation (0-moveTo, 1-lineTo, 2-quadraticCurveTo, 3-bezierCurveTo, 4-closePath, 5-7 unused). Bit 4
 5548indicates whether position values use 12 bits (2 characters) or 18 bits (3 characters), with a one indicating the
 5549latter. Bits 5 and 6 are currently unused.</p>
 5550<p>Following the header is a series of 0 (closePath), 2 (moveTo, lineTo), 4 (quadraticCurveTo), or 6 (bezierCurveTo)
 5551parameters. These parameters are alternating x/y positions represented by 2 or 3 characters (as indicated by the
 55524th bit in the command char). These characters consist of a 1 bit sign (1 is negative, 0 is positive), followed
 5553by an 11 (2 char) or 17 (3 char) bit integer value. All position values are in tenths of a pixel. Except in the
 5554case of move operations which are absolute, this value is a delta from the previous x or y position (as
 5555appropriate).</p>
 5556<p>For example, the string "A3cAAMAu4AAA" represents a line starting at -150,0 and ending at 150,0.
 5557<br />A - bits 000000. First 3 bits (000) indicate a moveTo operation. 4th bit (0) indicates 2 chars per
 5558parameter.
 5559<br />n0 - 110111011100. Absolute x position of -150.0px. First bit indicates a negative value, remaining bits
 5560indicate 1500 tenths of a pixel.
 5561<br />AA - 000000000000. Absolute y position of 0.
 5562<br />I - 001100. First 3 bits (001) indicate a lineTo operation. 4th bit (1) indicates 3 chars per parameter.
 5563<br />Au4 - 000000101110111000. An x delta of 300.0px, which is added to the previous x value of -150.0px to
 5564provide an absolute position of +150.0px.
 5565<br />AAA - 000000000000000000. A y delta value of 0.</p>
 5566<p>A tiny API method "p" also exists.</p>
 5567
 5568    </div>
 5569
 5570    
 5571        <div class="params">
 5572            <h4>Parameters:</h4>
 5573
 5574            <ul class="params-list">
 5575            
 5576                <li class="param">
 5577                    
 5578                        <code class="param-name">str</code>
 5579                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 5580                    
 5581
 5582                    
 5583
 5584                    <div class="param-description">
 5585                        <p>The path string to decode.</p>
 5586
 5587                    </div>
 5588
 5589                    
 5590                </li>
 5591            
 5592            </ul>
 5593        </div>
 5594    
 5595
 5596    
 5597        <div class="returns">
 5598            <h4>Returns:</h4>
 5599
 5600            <div class="returns-description">
 5601                
 5602                    
 5603                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 5604                    
 5605                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 5606
 5607                
 5608            </div>
 5609        </div>
 5610    
 5611
 5612    
 5613</div>
 5614
 5615                
 5616                    <div id="method_dp" class="method item protected">
 5617    <h3 class="name"><code>dp</code></h3>
 5618
 5619    
 5620        <div class="args">
 5621            <span class="paren">(</span><ul class="args-list inline commas">
 5622            
 5623                <li class="arg">
 5624                    
 5625                        <code>x</code>
 5626                    
 5627                </li>
 5628            
 5629                <li class="arg">
 5630                    
 5631                        <code>y</code>
 5632                    
 5633                </li>
 5634            
 5635                <li class="arg">
 5636                    
 5637                        <code>radius</code>
 5638                    
 5639                </li>
 5640            
 5641                <li class="arg">
 5642                    
 5643                        <code>sides</code>
 5644                    
 5645                </li>
 5646            
 5647                <li class="arg">
 5648                    
 5649                        <code>pointSize</code>
 5650                    
 5651                </li>
 5652            
 5653                <li class="arg">
 5654                    
 5655                        <code>angle</code>
 5656                    
 5657                </li>
 5658            
 5659            </ul><span class="paren">)</span>
 5660        </div>
 5661    
 5662
 5663    
 5664        <span class="returns-inline">
 5665            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 5666        </span>
 5667    
 5668
 5669    
 5670
 5671    
 5672        <span class="flag protected">protected</span>
 5673    
 5674
 5675    
 5676
 5677    
 5678
 5679    
 5680        <span class="flag chainable">chainable</span>
 5681    
 5682
 5683    
 5684
 5685    <div class="meta">
 5686        
 5687            
 5688                
 5689                <p>
 5690                
 5691                Defined in
 5692                
 5693            
 5694        
 5695        
 5696        <a href="../files/easeljs_display_Graphics.js.html#l1521"><code>dp:1521</code></a>
 5697        
 5698        </p>
 5699
 5700
 5701        
 5702
 5703        
 5704    </div>
 5705
 5706    <div class="description">
 5707        <p>Shortcut to drawPolyStar.</p>
 5708
 5709    </div>
 5710
 5711    
 5712        <div class="params">
 5713            <h4>Parameters:</h4>
 5714
 5715            <ul class="params-list">
 5716            
 5717                <li class="param">
 5718                    
 5719                        <code class="param-name">x</code>
 5720                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5721                    
 5722
 5723                    
 5724
 5725                    <div class="param-description">
 5726                        <p>Position of the center of the shape.</p>
 5727
 5728                    </div>
 5729
 5730                    
 5731                </li>
 5732            
 5733                <li class="param">
 5734                    
 5735                        <code class="param-name">y</code>
 5736                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5737                    
 5738
 5739                    
 5740
 5741                    <div class="param-description">
 5742                        <p>Position of the center of the shape.</p>
 5743
 5744                    </div>
 5745
 5746                    
 5747                </li>
 5748            
 5749                <li class="param">
 5750                    
 5751                        <code class="param-name">radius</code>
 5752                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5753                    
 5754
 5755                    
 5756
 5757                    <div class="param-description">
 5758                        <p>The outer radius of the shape.</p>
 5759
 5760                    </div>
 5761
 5762                    
 5763                </li>
 5764            
 5765                <li class="param">
 5766                    
 5767                        <code class="param-name">sides</code>
 5768                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5769                    
 5770
 5771                    
 5772
 5773                    <div class="param-description">
 5774                        <p>The number of points on the star or sides on the polygon.</p>
 5775
 5776                    </div>
 5777
 5778                    
 5779                </li>
 5780            
 5781                <li class="param">
 5782                    
 5783                        <code class="param-name">pointSize</code>
 5784                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5785                    
 5786
 5787                    
 5788
 5789                    <div class="param-description">
 5790                        <p>The depth or "pointy-ness" of the star points. A pointSize of 0 will draw a regular
 5791polygon (no points), a pointSize of 1 will draw nothing because the points are infinitely pointy.</p>
 5792
 5793                    </div>
 5794
 5795                    
 5796                </li>
 5797            
 5798                <li class="param">
 5799                    
 5800                        <code class="param-name">angle</code>
 5801                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5802                    
 5803
 5804                    
 5805
 5806                    <div class="param-description">
 5807                        <p>The angle of the first point / corner. For example a value of 0 will draw the first point
 5808directly to the right of the center.</p>
 5809
 5810                    </div>
 5811
 5812                    
 5813                </li>
 5814            
 5815            </ul>
 5816        </div>
 5817    
 5818
 5819    
 5820        <div class="returns">
 5821            <h4>Returns:</h4>
 5822
 5823            <div class="returns-description">
 5824                
 5825                    
 5826                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 5827                    
 5828                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 5829
 5830                
 5831            </div>
 5832        </div>
 5833    
 5834
 5835    
 5836</div>
 5837
 5838                
 5839                    <div id="method_dr" class="method item protected">
 5840    <h3 class="name"><code>dr</code></h3>
 5841
 5842    
 5843        <div class="args">
 5844            <span class="paren">(</span><ul class="args-list inline commas">
 5845            
 5846                <li class="arg">
 5847                    
 5848                        <code>x</code>
 5849                    
 5850                </li>
 5851            
 5852                <li class="arg">
 5853                    
 5854                        <code>y</code>
 5855                    
 5856                </li>
 5857            
 5858                <li class="arg">
 5859                    
 5860                        <code>w</code>
 5861                    
 5862                </li>
 5863            
 5864                <li class="arg">
 5865                    
 5866                        <code>h</code>
 5867                    
 5868                </li>
 5869            
 5870            </ul><span class="paren">)</span>
 5871        </div>
 5872    
 5873
 5874    
 5875        <span class="returns-inline">
 5876            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 5877        </span>
 5878    
 5879
 5880    
 5881
 5882    
 5883        <span class="flag protected">protected</span>
 5884    
 5885
 5886    
 5887
 5888    
 5889
 5890    
 5891        <span class="flag chainable">chainable</span>
 5892    
 5893
 5894    
 5895
 5896    <div class="meta">
 5897        
 5898            
 5899                
 5900                <p>
 5901                
 5902                Defined in
 5903                
 5904            
 5905        
 5906        
 5907        <a href="../files/easeljs_display_Graphics.js.html#l1449"><code>dr:1449</code></a>
 5908        
 5909        </p>
 5910
 5911
 5912        
 5913
 5914        
 5915    </div>
 5916
 5917    <div class="description">
 5918        <p>Shortcut to drawRect.</p>
 5919
 5920    </div>
 5921
 5922    
 5923        <div class="params">
 5924            <h4>Parameters:</h4>
 5925
 5926            <ul class="params-list">
 5927            
 5928                <li class="param">
 5929                    
 5930                        <code class="param-name">x</code>
 5931                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5932                    
 5933
 5934                    
 5935
 5936                    <div class="param-description">
 5937                         
 5938                    </div>
 5939
 5940                    
 5941                </li>
 5942            
 5943                <li class="param">
 5944                    
 5945                        <code class="param-name">y</code>
 5946                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5947                    
 5948
 5949                    
 5950
 5951                    <div class="param-description">
 5952                         
 5953                    </div>
 5954
 5955                    
 5956                </li>
 5957            
 5958                <li class="param">
 5959                    
 5960                        <code class="param-name">w</code>
 5961                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5962                    
 5963
 5964                    
 5965
 5966                    <div class="param-description">
 5967                        <p>Width of the rectangle</p>
 5968
 5969                    </div>
 5970
 5971                    
 5972                </li>
 5973            
 5974                <li class="param">
 5975                    
 5976                        <code class="param-name">h</code>
 5977                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 5978                    
 5979
 5980                    
 5981
 5982                    <div class="param-description">
 5983                        <p>Height of the rectangle</p>
 5984
 5985                    </div>
 5986
 5987                    
 5988                </li>
 5989            
 5990            </ul>
 5991        </div>
 5992    
 5993
 5994    
 5995        <div class="returns">
 5996            <h4>Returns:</h4>
 5997
 5998            <div class="returns-description">
 5999                
 6000                    
 6001                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 6002                    
 6003                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 6004
 6005                
 6006            </div>
 6007        </div>
 6008    
 6009
 6010    
 6011</div>
 6012
 6013                
 6014                    <div id="method_draw" class="method item">
 6015    <h3 class="name"><code>draw</code></h3>
 6016
 6017    
 6018        <div class="args">
 6019            <span class="paren">(</span><ul class="args-list inline commas">
 6020            
 6021                <li class="arg">
 6022                    
 6023                        <code>ctx</code>
 6024                    
 6025                </li>
 6026            
 6027                <li class="arg">
 6028                    
 6029                        <code>data</code>
 6030                    
 6031                </li>
 6032            
 6033            </ul><span class="paren">)</span>
 6034        </div>
 6035    
 6036
 6037    
 6038
 6039    
 6040
 6041    
 6042
 6043    
 6044
 6045    
 6046
 6047    
 6048
 6049    
 6050
 6051    <div class="meta">
 6052        
 6053            
 6054                
 6055                <p>
 6056                
 6057                Defined in
 6058                
 6059            
 6060        
 6061        
 6062        <a href="../files/easeljs_display_Graphics.js.html#l418"><code>draw:418</code></a>
 6063        
 6064        </p>
 6065
 6066
 6067        
 6068
 6069        
 6070    </div>
 6071
 6072    <div class="description">
 6073        <p>Draws the display object into the specified context ignoring its visible, alpha, shadow, and transform.
 6074Returns true if the draw was handled (useful for overriding functionality).</p>
 6075<p>NOTE: This method is mainly for internal use, though it may be useful for advanced uses.</p>
 6076
 6077    </div>
 6078
 6079    
 6080        <div class="params">
 6081            <h4>Parameters:</h4>
 6082
 6083            <ul class="params-list">
 6084            
 6085                <li class="param">
 6086                    
 6087                        <code class="param-name">ctx</code>
 6088                        <span class="type">CanvasRenderingContext2D</span>
 6089                    
 6090
 6091                    
 6092
 6093                    <div class="param-description">
 6094                        <p>The canvas 2D context object to draw into.</p>
 6095
 6096                    </div>
 6097
 6098                    
 6099                </li>
 6100            
 6101                <li class="param">
 6102                    
 6103                        <code class="param-name">data</code>
 6104                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
 6105                    
 6106
 6107                    
 6108
 6109                    <div class="param-description">
 6110                        <p>Optional data that is passed to graphics command exec methods. When called from a Shape instance, the shape passes itself as the data parameter. This can be used by custom graphic commands to insert contextual data.</p>
 6111
 6112                    </div>
 6113
 6114                    
 6115                </li>
 6116            
 6117            </ul>
 6118        </div>
 6119    
 6120
 6121    
 6122
 6123    
 6124</div>
 6125
 6126                
 6127                    <div id="method_drawAsPath" class="method item">
 6128    <h3 class="name"><code>drawAsPath</code></h3>
 6129
 6130    
 6131        <div class="args">
 6132            <span class="paren">(</span><ul class="args-list inline commas">
 6133            
 6134                <li class="arg">
 6135                    
 6136                        <code>ctx</code>
 6137                    
 6138                </li>
 6139            
 6140            </ul><span class="paren">)</span>
 6141        </div>
 6142    
 6143
 6144    
 6145
 6146    
 6147
 6148    
 6149
 6150    
 6151
 6152    
 6153
 6154    
 6155
 6156    
 6157
 6158    <div class="meta">
 6159        
 6160            
 6161                
 6162                <p>
 6163                
 6164                Defined in
 6165                
 6166            
 6167        
 6168        
 6169        <a href="../files/easeljs_display_Graphics.js.html#l435"><code>drawAsPath:435</code></a>
 6170        
 6171        </p>
 6172
 6173
 6174        
 6175
 6176        
 6177    </div>
 6178
 6179    <div class="description">
 6180        <p>Draws only the path described for this Graphics instance, skipping any non-path instructions, including fill and
 6181stroke descriptions. Used for <code>DisplayObject.mask</code> to draw the clipping path, for example.</p>
 6182<p>NOTE: This method is mainly for internal use, though it may be useful for advanced uses.</p>
 6183
 6184    </div>
 6185
 6186    
 6187        <div class="params">
 6188            <h4>Parameters:</h4>
 6189
 6190            <ul class="params-list">
 6191            
 6192                <li class="param">
 6193                    
 6194                        <code class="param-name">ctx</code>
 6195                        <span class="type">CanvasRenderingContext2D</span>
 6196                    
 6197
 6198                    
 6199
 6200                    <div class="param-description">
 6201                        <p>The canvas 2D context object to draw into.</p>
 6202
 6203                    </div>
 6204
 6205                    
 6206                </li>
 6207            
 6208            </ul>
 6209        </div>
 6210    
 6211
 6212    
 6213
 6214    
 6215</div>
 6216
 6217                
 6218                    <div id="method_drawCircle" class="method item">
 6219    <h3 class="name"><code>drawCircle</code></h3>
 6220
 6221    
 6222        <div class="args">
 6223            <span class="paren">(</span><ul class="args-list inline commas">
 6224            
 6225                <li class="arg">
 6226                    
 6227                        <code>x</code>
 6228                    
 6229                </li>
 6230            
 6231                <li class="arg">
 6232                    
 6233                        <code>y</code>
 6234                    
 6235                </li>
 6236            
 6237                <li class="arg">
 6238                    
 6239                        <code>radius</code>
 6240                    
 6241                </li>
 6242            
 6243            </ul><span class="paren">)</span>
 6244        </div>
 6245    
 6246
 6247    
 6248        <span class="returns-inline">
 6249            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 6250        </span>
 6251    
 6252
 6253    
 6254
 6255    
 6256
 6257    
 6258
 6259    
 6260
 6261    
 6262        <span class="flag chainable">chainable</span>
 6263    
 6264
 6265    
 6266
 6267    <div class="meta">
 6268        
 6269            
 6270                
 6271                <p>
 6272                
 6273                Defined in
 6274                
 6275            
 6276        
 6277        
 6278        <a href="../files/easeljs_display_Graphics.js.html#l899"><code>drawCircle:899</code></a>
 6279        
 6280        </p>
 6281
 6282
 6283        
 6284
 6285        
 6286    </div>
 6287
 6288    <div class="description">
 6289        <p>Draws a circle with the specified radius at (x, y).</p>
 6290<pre class="code prettyprint"><code> var g = new createjs.Graphics();
 6291    g.setStrokeStyle(1);
 6292    g.beginStroke(createjs.Graphics.getRGB(0,0,0));
 6293    g.beginFill(createjs.Graphics.getRGB(255,0,0));
 6294    g.drawCircle(0,0,3);
 6295
 6296    var s = new createjs.Shape(g);
 6297    s.x = 100;
 6298    s.y = 100;
 6299
 6300    stage.addChild(s);
 6301    stage.update();</code></pre>
 6302<p>A tiny API method "dc" also exists.</p>
 6303
 6304    </div>
 6305
 6306    
 6307        <div class="params">
 6308            <h4>Parameters:</h4>
 6309
 6310            <ul class="params-list">
 6311            
 6312                <li class="param">
 6313                    
 6314                        <code class="param-name">x</code>
 6315                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6316                    
 6317
 6318                    
 6319
 6320                    <div class="param-description">
 6321                        <p>x coordinate center point of circle.</p>
 6322
 6323                    </div>
 6324
 6325                    
 6326                </li>
 6327            
 6328                <li class="param">
 6329                    
 6330                        <code class="param-name">y</code>
 6331                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6332                    
 6333
 6334                    
 6335
 6336                    <div class="param-description">
 6337                        <p>y coordinate center point of circle.</p>
 6338
 6339                    </div>
 6340
 6341                    
 6342                </li>
 6343            
 6344                <li class="param">
 6345                    
 6346                        <code class="param-name">radius</code>
 6347                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6348                    
 6349
 6350                    
 6351
 6352                    <div class="param-description">
 6353                        <p>Radius of circle.</p>
 6354
 6355                    </div>
 6356
 6357                    
 6358                </li>
 6359            
 6360            </ul>
 6361        </div>
 6362    
 6363
 6364    
 6365        <div class="returns">
 6366            <h4>Returns:</h4>
 6367
 6368            <div class="returns-description">
 6369                
 6370                    
 6371                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 6372                    
 6373                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 6374
 6375                
 6376            </div>
 6377        </div>
 6378    
 6379
 6380    
 6381</div>
 6382
 6383                
 6384                    <div id="method_drawEllipse" class="method item">
 6385    <h3 class="name"><code>drawEllipse</code></h3>
 6386
 6387    
 6388        <div class="args">
 6389            <span class="paren">(</span><ul class="args-list inline commas">
 6390            
 6391                <li class="arg">
 6392                    
 6393                        <code>x</code>
 6394                    
 6395                </li>
 6396            
 6397                <li class="arg">
 6398                    
 6399                        <code>y</code>
 6400                    
 6401                </li>
 6402            
 6403                <li class="arg">
 6404                    
 6405                        <code>w</code>
 6406                    
 6407                </li>
 6408            
 6409                <li class="arg">
 6410                    
 6411                        <code>h</code>
 6412                    
 6413                </li>
 6414            
 6415            </ul><span class="paren">)</span>
 6416        </div>
 6417    
 6418
 6419    
 6420        <span class="returns-inline">
 6421            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 6422        </span>
 6423    
 6424
 6425    
 6426
 6427    
 6428
 6429    
 6430
 6431    
 6432
 6433    
 6434        <span class="flag chainable">chainable</span>
 6435    
 6436
 6437    
 6438
 6439    <div class="meta">
 6440        
 6441            
 6442                
 6443                <p>
 6444                
 6445                Defined in
 6446                
 6447            
 6448        
 6449        
 6450        <a href="../files/easeljs_display_Graphics.js.html#l927"><code>drawEllipse:927</code></a>
 6451        
 6452        </p>
 6453
 6454
 6455        
 6456
 6457        
 6458    </div>
 6459
 6460    <div class="description">
 6461        <p>Draws an ellipse (oval) with a specified width (w) and height (h). Similar to <a href="../classes/Graphics.html#method_drawCircle" class="crosslink">drawCircle</a>,
 6462except the width and height can be different. A tiny API method "de" also exists.</p>
 6463
 6464    </div>
 6465
 6466    
 6467        <div class="params">
 6468            <h4>Parameters:</h4>
 6469
 6470            <ul class="params-list">
 6471            
 6472                <li class="param">
 6473                    
 6474                        <code class="param-name">x</code>
 6475                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6476                    
 6477
 6478                    
 6479
 6480                    <div class="param-description">
 6481                        <p>The left coordinate point of the ellipse. Note that this is different from <a href="../classes/Graphics.html#method_drawCircle" class="crosslink">drawCircle</a>
 6482which draws from center.</p>
 6483
 6484                    </div>
 6485
 6486                    
 6487                </li>
 6488            
 6489                <li class="param">
 6490                    
 6491                        <code class="param-name">y</code>
 6492                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6493                    
 6494
 6495                    
 6496
 6497                    <div class="param-description">
 6498                        <p>The top coordinate point of the ellipse. Note that this is different from <a href="../classes/Graphics.html#method_drawCircle" class="crosslink">drawCircle</a>
 6499which draws from the center.</p>
 6500
 6501                    </div>
 6502
 6503                    
 6504                </li>
 6505            
 6506                <li class="param">
 6507                    
 6508                        <code class="param-name">w</code>
 6509                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6510                    
 6511
 6512                    
 6513
 6514                    <div class="param-description">
 6515                        <p>The height (horizontal diameter) of the ellipse. The horizontal radius will be half of this
 6516number.</p>
 6517
 6518                    </div>
 6519
 6520                    
 6521                </li>
 6522            
 6523                <li class="param">
 6524                    
 6525                        <code class="param-name">h</code>
 6526                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6527                    
 6528
 6529                    
 6530
 6531                    <div class="param-description">
 6532                        <p>The width (vertical diameter) of the ellipse. The vertical radius will be half of this number.</p>
 6533
 6534                    </div>
 6535
 6536                    
 6537                </li>
 6538            
 6539            </ul>
 6540        </div>
 6541    
 6542
 6543    
 6544        <div class="returns">
 6545            <h4>Returns:</h4>
 6546
 6547            <div class="returns-description">
 6548                
 6549                    
 6550                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 6551                    
 6552                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 6553
 6554                
 6555            </div>
 6556        </div>
 6557    
 6558
 6559    
 6560</div>
 6561
 6562                
 6563                    <div id="method_drawPolyStar" class="method item">
 6564    <h3 class="name"><code>drawPolyStar</code></h3>
 6565
 6566    
 6567        <div class="args">
 6568            <span class="paren">(</span><ul class="args-list inline commas">
 6569            
 6570                <li class="arg">
 6571                    
 6572                        <code>x</code>
 6573                    
 6574                </li>
 6575            
 6576                <li class="arg">
 6577                    
 6578                        <code>y</code>
 6579                    
 6580                </li>
 6581            
 6582                <li class="arg">
 6583                    
 6584                        <code>radius</code>
 6585                    
 6586                </li>
 6587            
 6588                <li class="arg">
 6589                    
 6590                        <code>sides</code>
 6591                    
 6592                </li>
 6593            
 6594                <li class="arg">
 6595                    
 6596                        <code>pointSize</code>
 6597                    
 6598                </li>
 6599            
 6600                <li class="arg">
 6601                    
 6602                        <code>angle</code>
 6603                    
 6604                </li>
 6605            
 6606            </ul><span class="paren">)</span>
 6607        </div>
 6608    
 6609
 6610    
 6611        <span class="returns-inline">
 6612            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 6613        </span>
 6614    
 6615
 6616    
 6617
 6618    
 6619
 6620    
 6621
 6622    
 6623
 6624    
 6625        <span class="flag chainable">chainable</span>
 6626    
 6627
 6628    
 6629
 6630    <div class="meta">
 6631        
 6632            
 6633                
 6634                <p>
 6635                
 6636                Defined in
 6637                
 6638            
 6639        
 6640        
 6641        <a href="../files/easeljs_display_Graphics.js.html#l945"><code>drawPolyStar:945</code></a>
 6642        
 6643        </p>
 6644
 6645
 6646        
 6647
 6648        
 6649    </div>
 6650
 6651    <div class="description">
 6652        <p>Draws a star if pointSize is greater than 0, or a regular polygon if pointSize is 0 with the specified number of
 6653points. For example, the following code will draw a familiar 5 pointed star shape centered at 100, 100 and with a
 6654radius of 50:</p>
 6655<pre class="code prettyprint"><code> myGraphics.beginFill("#FF0").drawPolyStar(100, 100, 50, 5, 0.6, -90);
 6656 // Note: -90 makes the first point vertical</code></pre>
 6657<p>A tiny API method "dp" also exists.</p>
 6658
 6659    </div>
 6660
 6661    
 6662        <div class="params">
 6663            <h4>Parameters:</h4>
 6664
 6665            <ul class="params-list">
 6666            
 6667                <li class="param">
 6668                    
 6669                        <code class="param-name">x</code>
 6670                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6671                    
 6672
 6673                    
 6674
 6675                    <div class="param-description">
 6676                        <p>Position of the center of the shape.</p>
 6677
 6678                    </div>
 6679
 6680                    
 6681                </li>
 6682            
 6683                <li class="param">
 6684                    
 6685                        <code class="param-name">y</code>
 6686                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6687                    
 6688
 6689                    
 6690
 6691                    <div class="param-description">
 6692                        <p>Position of the center of the shape.</p>
 6693
 6694                    </div>
 6695
 6696                    
 6697                </li>
 6698            
 6699                <li class="param">
 6700                    
 6701                        <code class="param-name">radius</code>
 6702                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6703                    
 6704
 6705                    
 6706
 6707                    <div class="param-description">
 6708                        <p>The outer radius of the shape.</p>
 6709
 6710                    </div>
 6711
 6712                    
 6713                </li>
 6714            
 6715                <li class="param">
 6716                    
 6717                        <code class="param-name">sides</code>
 6718                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6719                    
 6720
 6721                    
 6722
 6723                    <div class="param-description">
 6724                        <p>The number of points on the star or sides on the polygon.</p>
 6725
 6726                    </div>
 6727
 6728                    
 6729                </li>
 6730            
 6731                <li class="param">
 6732                    
 6733                        <code class="param-name">pointSize</code>
 6734                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6735                    
 6736
 6737                    
 6738
 6739                    <div class="param-description">
 6740                        <p>The depth or "pointy-ness" of the star points. A pointSize of 0 will draw a regular
 6741polygon (no points), a pointSize of 1 will draw nothing because the points are infinitely pointy.</p>
 6742
 6743                    </div>
 6744
 6745                    
 6746                </li>
 6747            
 6748                <li class="param">
 6749                    
 6750                        <code class="param-name">angle</code>
 6751                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6752                    
 6753
 6754                    
 6755
 6756                    <div class="param-description">
 6757                        <p>The angle of the first point / corner. For example a value of 0 will draw the first point
 6758directly to the right of the center.</p>
 6759
 6760                    </div>
 6761
 6762                    
 6763                </li>
 6764            
 6765            </ul>
 6766        </div>
 6767    
 6768
 6769    
 6770        <div class="returns">
 6771            <h4>Returns:</h4>
 6772
 6773            <div class="returns-description">
 6774                
 6775                    
 6776                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 6777                    
 6778                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 6779
 6780                
 6781            </div>
 6782        </div>
 6783    
 6784
 6785    
 6786</div>
 6787
 6788                
 6789                    <div id="method_drawRect" class="method item">
 6790    <h3 class="name"><code>drawRect</code></h3>
 6791
 6792    
 6793        <div class="args">
 6794            <span class="paren">(</span><ul class="args-list inline commas">
 6795            
 6796                <li class="arg">
 6797                    
 6798                        <code>x</code>
 6799                    
 6800                </li>
 6801            
 6802                <li class="arg">
 6803                    
 6804                        <code>y</code>
 6805                    
 6806                </li>
 6807            
 6808                <li class="arg">
 6809                    
 6810                        <code>w</code>
 6811                    
 6812                </li>
 6813            
 6814                <li class="arg">
 6815                    
 6816                        <code>h</code>
 6817                    
 6818                </li>
 6819            
 6820            </ul><span class="paren">)</span>
 6821        </div>
 6822    
 6823
 6824    
 6825        <span class="returns-inline">
 6826            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 6827        </span>
 6828    
 6829
 6830    
 6831
 6832    
 6833
 6834    
 6835
 6836    
 6837
 6838    
 6839        <span class="flag chainable">chainable</span>
 6840    
 6841
 6842    
 6843
 6844    <div class="meta">
 6845        
 6846            
 6847                
 6848                <p>
 6849                
 6850                Defined in
 6851                
 6852            
 6853        
 6854        
 6855        <a href="../files/easeljs_display_Graphics.js.html#l851"><code>drawRect:851</code></a>
 6856        
 6857        </p>
 6858
 6859
 6860        
 6861
 6862        
 6863    </div>
 6864
 6865    <div class="description">
 6866        <p>Maps the familiar ActionScript <code>drawRect()</code> method to the functionally similar <a href="../classes/Graphics.html#method_rect" class="crosslink">rect</a>
 6867 method.</p>
 6868
 6869    </div>
 6870
 6871    
 6872        <div class="params">
 6873            <h4>Parameters:</h4>
 6874
 6875            <ul class="params-list">
 6876            
 6877                <li class="param">
 6878                    
 6879                        <code class="param-name">x</code>
 6880                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6881                    
 6882
 6883                    
 6884
 6885                    <div class="param-description">
 6886                         
 6887                    </div>
 6888
 6889                    
 6890                </li>
 6891            
 6892                <li class="param">
 6893                    
 6894                        <code class="param-name">y</code>
 6895                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6896                    
 6897
 6898                    
 6899
 6900                    <div class="param-description">
 6901                         
 6902                    </div>
 6903
 6904                    
 6905                </li>
 6906            
 6907                <li class="param">
 6908                    
 6909                        <code class="param-name">w</code>
 6910                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6911                    
 6912
 6913                    
 6914
 6915                    <div class="param-description">
 6916                        <p>Width of the rectangle</p>
 6917
 6918                    </div>
 6919
 6920                    
 6921                </li>
 6922            
 6923                <li class="param">
 6924                    
 6925                        <code class="param-name">h</code>
 6926                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 6927                    
 6928
 6929                    
 6930
 6931                    <div class="param-description">
 6932                        <p>Height of the rectangle</p>
 6933
 6934                    </div>
 6935
 6936                    
 6937                </li>
 6938            
 6939            </ul>
 6940        </div>
 6941    
 6942
 6943    
 6944        <div class="returns">
 6945            <h4>Returns:</h4>
 6946
 6947            <div class="returns-description">
 6948                
 6949                    
 6950                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 6951                    
 6952                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 6953
 6954                
 6955            </div>
 6956        </div>
 6957    
 6958
 6959    
 6960</div>
 6961
 6962                
 6963                    <div id="method_drawRoundRect" class="method item">
 6964    <h3 class="name"><code>drawRoundRect</code></h3>
 6965
 6966    
 6967        <div class="args">
 6968            <span class="paren">(</span><ul class="args-list inline commas">
 6969            
 6970                <li class="arg">
 6971                    
 6972                        <code>x</code>
 6973                    
 6974                </li>
 6975            
 6976                <li class="arg">
 6977                    
 6978                        <code>y</code>
 6979                    
 6980                </li>
 6981            
 6982                <li class="arg">
 6983                    
 6984                        <code>w</code>
 6985                    
 6986                </li>
 6987            
 6988                <li class="arg">
 6989                    
 6990                        <code>h</code>
 6991                    
 6992                </li>
 6993            
 6994                <li class="arg">
 6995                    
 6996                        <code>radius</code>
 6997                    
 6998                </li>
 6999            
 7000            </ul><span class="paren">)</span>
 7001        </div>
 7002    
 7003
 7004    
 7005        <span class="returns-inline">
 7006            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 7007        </span>
 7008    
 7009
 7010    
 7011
 7012    
 7013
 7014    
 7015
 7016    
 7017
 7018    
 7019        <span class="flag chainable">chainable</span>
 7020    
 7021
 7022    
 7023
 7024    <div class="meta">
 7025        
 7026            
 7027                
 7028                <p>
 7029                
 7030                Defined in
 7031                
 7032            
 7033        
 7034        
 7035        <a href="../files/easeljs_display_Graphics.js.html#l865"><code>drawRoundRect:865</code></a>
 7036        
 7037        </p>
 7038
 7039
 7040        
 7041
 7042        
 7043    </div>
 7044
 7045    <div class="description">
 7046        <p>Draws a rounded rectangle with all corners with the specified radius.</p>
 7047
 7048    </div>
 7049
 7050    
 7051        <div class="params">
 7052            <h4>Parameters:</h4>
 7053
 7054            <ul class="params-list">
 7055            
 7056                <li class="param">
 7057                    
 7058                        <code class="param-name">x</code>
 7059                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7060                    
 7061
 7062                    
 7063
 7064                    <div class="param-description">
 7065                         
 7066                    </div>
 7067
 7068                    
 7069                </li>
 7070            
 7071                <li class="param">
 7072                    
 7073                        <code class="param-name">y</code>
 7074                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7075                    
 7076
 7077                    
 7078
 7079                    <div class="param-description">
 7080                         
 7081                    </div>
 7082
 7083                    
 7084                </li>
 7085            
 7086                <li class="param">
 7087                    
 7088                        <code class="param-name">w</code>
 7089                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7090                    
 7091
 7092                    
 7093
 7094                    <div class="param-description">
 7095                         
 7096                    </div>
 7097
 7098                    
 7099                </li>
 7100            
 7101                <li class="param">
 7102                    
 7103                        <code class="param-name">h</code>
 7104                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7105                    
 7106
 7107                    
 7108
 7109                    <div class="param-description">
 7110                         
 7111                    </div>
 7112
 7113                    
 7114                </li>
 7115            
 7116                <li class="param">
 7117                    
 7118                        <code class="param-name">radius</code>
 7119                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7120                    
 7121
 7122                    
 7123
 7124                    <div class="param-description">
 7125                        <p>Corner radius.</p>
 7126
 7127                    </div>
 7128
 7129                    
 7130                </li>
 7131            
 7132            </ul>
 7133        </div>
 7134    
 7135
 7136    
 7137        <div class="returns">
 7138            <h4>Returns:</h4>
 7139
 7140            <div class="returns-description">
 7141                
 7142                    
 7143                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 7144                    
 7145                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 7146
 7147                
 7148            </div>
 7149        </div>
 7150    
 7151
 7152    
 7153</div>
 7154
 7155                
 7156                    <div id="method_drawRoundRectComplex" class="method item">
 7157    <h3 class="name"><code>drawRoundRectComplex</code></h3>
 7158
 7159    
 7160        <div class="args">
 7161            <span class="paren">(</span><ul class="args-list inline commas">
 7162            
 7163                <li class="arg">
 7164                    
 7165                        <code>x</code>
 7166                    
 7167                </li>
 7168            
 7169                <li class="arg">
 7170                    
 7171                        <code>y</code>
 7172                    
 7173                </li>
 7174            
 7175                <li class="arg">
 7176                    
 7177                        <code>w</code>
 7178                    
 7179                </li>
 7180            
 7181                <li class="arg">
 7182                    
 7183                        <code>h</code>
 7184                    
 7185                </li>
 7186            
 7187                <li class="arg">
 7188                    
 7189                        <code>radiusTL</code>
 7190                    
 7191                </li>
 7192            
 7193                <li class="arg">
 7194                    
 7195                        <code>radiusTR</code>
 7196                    
 7197                </li>
 7198            
 7199                <li class="arg">
 7200                    
 7201                        <code>radiusBR</code>
 7202                    
 7203                </li>
 7204            
 7205                <li class="arg">
 7206                    
 7207                        <code>radiusBL</code>
 7208                    
 7209                </li>
 7210            
 7211            </ul><span class="paren">)</span>
 7212        </div>
 7213    
 7214
 7215    
 7216        <span class="returns-inline">
 7217            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 7218        </span>
 7219    
 7220
 7221    
 7222
 7223    
 7224
 7225    
 7226
 7227    
 7228
 7229    
 7230        <span class="flag chainable">chainable</span>
 7231    
 7232
 7233    
 7234
 7235    <div class="meta">
 7236        
 7237            
 7238                
 7239                <p>
 7240                
 7241                Defined in
 7242                
 7243            
 7244        
 7245        
 7246        <a href="../files/easeljs_display_Graphics.js.html#l880"><code>drawRoundRectComplex:880</code></a>
 7247        
 7248        </p>
 7249
 7250
 7251        
 7252
 7253        
 7254    </div>
 7255
 7256    <div class="description">
 7257        <p>Draws a rounded rectangle with different corner radii. Supports positive and negative corner radii. A tiny API
 7258method "rc" also exists.</p>
 7259
 7260    </div>
 7261
 7262    
 7263        <div class="params">
 7264            <h4>Parameters:</h4>
 7265
 7266            <ul class="params-list">
 7267            
 7268                <li class="param">
 7269                    
 7270                        <code class="param-name">x</code>
 7271                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7272                    
 7273
 7274                    
 7275
 7276                    <div class="param-description">
 7277                        <p>The horizontal coordinate to draw the round rect.</p>
 7278
 7279                    </div>
 7280
 7281                    
 7282                </li>
 7283            
 7284                <li class="param">
 7285                    
 7286                        <code class="param-name">y</code>
 7287                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7288                    
 7289
 7290                    
 7291
 7292                    <div class="param-description">
 7293                        <p>The vertical coordinate to draw the round rect.</p>
 7294
 7295                    </div>
 7296
 7297                    
 7298                </li>
 7299            
 7300                <li class="param">
 7301                    
 7302                        <code class="param-name">w</code>
 7303                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7304                    
 7305
 7306                    
 7307
 7308                    <div class="param-description">
 7309                        <p>The width of the round rect.</p>
 7310
 7311                    </div>
 7312
 7313                    
 7314                </li>
 7315            
 7316                <li class="param">
 7317                    
 7318                        <code class="param-name">h</code>
 7319                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7320                    
 7321
 7322                    
 7323
 7324                    <div class="param-description">
 7325                        <p>The height of the round rect.</p>
 7326
 7327                    </div>
 7328
 7329                    
 7330                </li>
 7331            
 7332                <li class="param">
 7333                    
 7334                        <code class="param-name">radiusTL</code>
 7335                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7336                    
 7337
 7338                    
 7339
 7340                    <div class="param-description">
 7341                        <p>Top left corner radius.</p>
 7342
 7343                    </div>
 7344
 7345                    
 7346                </li>
 7347            
 7348                <li class="param">
 7349                    
 7350                        <code class="param-name">radiusTR</code>
 7351                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7352                    
 7353
 7354                    
 7355
 7356                    <div class="param-description">
 7357                        <p>Top right corner radius.</p>
 7358
 7359                    </div>
 7360
 7361                    
 7362                </li>
 7363            
 7364                <li class="param">
 7365                    
 7366                        <code class="param-name">radiusBR</code>
 7367                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7368                    
 7369
 7370                    
 7371
 7372                    <div class="param-description">
 7373                        <p>Bottom right corner radius.</p>
 7374
 7375                    </div>
 7376
 7377                    
 7378                </li>
 7379            
 7380                <li class="param">
 7381                    
 7382                        <code class="param-name">radiusBL</code>
 7383                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7384                    
 7385
 7386                    
 7387
 7388                    <div class="param-description">
 7389                        <p>Bottom left corner radius.</p>
 7390
 7391                    </div>
 7392
 7393                    
 7394                </li>
 7395            
 7396            </ul>
 7397        </div>
 7398    
 7399
 7400    
 7401        <div class="returns">
 7402            <h4>Returns:</h4>
 7403
 7404            <div class="returns-description">
 7405                
 7406                    
 7407                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 7408                    
 7409                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 7410
 7411                
 7412            </div>
 7413        </div>
 7414    
 7415
 7416    
 7417</div>
 7418
 7419                
 7420                    <div id="method_ef" class="method item protected">
 7421    <h3 class="name"><code>ef</code></h3>
 7422
 7423    
 7424        <span class="paren">()</span>
 7425    
 7426
 7427    
 7428        <span class="returns-inline">
 7429            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 7430        </span>
 7431    
 7432
 7433    
 7434
 7435    
 7436        <span class="flag protected">protected</span>
 7437    
 7438
 7439    
 7440
 7441    
 7442
 7443    
 7444        <span class="flag chainable">chainable</span>
 7445    
 7446
 7447    
 7448
 7449    <div class="meta">
 7450        
 7451            
 7452                
 7453                <p>
 7454                
 7455                Defined in
 7456                
 7457            
 7458        
 7459        
 7460        <a href="../files/easeljs_display_Graphics.js.html#l1337"><code>ef:1337</code></a>
 7461        
 7462        </p>
 7463
 7464
 7465        
 7466
 7467        
 7468    </div>
 7469
 7470    <div class="description">
 7471        <p>Shortcut to endFill.</p>
 7472
 7473    </div>
 7474
 7475    
 7476
 7477    
 7478        <div class="returns">
 7479            <h4>Returns:</h4>
 7480
 7481            <div class="returns-description">
 7482                
 7483                    
 7484                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 7485                    
 7486                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 7487
 7488                
 7489            </div>
 7490        </div>
 7491    
 7492
 7493    
 7494</div>
 7495
 7496                
 7497                    <div id="method_endFill" class="method item">
 7498    <h3 class="name"><code>endFill</code></h3>
 7499
 7500    
 7501        <span class="paren">()</span>
 7502    
 7503
 7504    
 7505        <span class="returns-inline">
 7506            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 7507        </span>
 7508    
 7509
 7510    
 7511
 7512    
 7513
 7514    
 7515
 7516    
 7517
 7518    
 7519        <span class="flag chainable">chainable</span>
 7520    
 7521
 7522    
 7523
 7524    <div class="meta">
 7525        
 7526            
 7527                
 7528                <p>
 7529                
 7530                Defined in
 7531                
 7532            
 7533        
 7534        
 7535        <a href="../files/easeljs_display_Graphics.js.html#l682"><code>endFill:682</code></a>
 7536        
 7537        </p>
 7538
 7539
 7540        
 7541
 7542        
 7543    </div>
 7544
 7545    <div class="description">
 7546        <p>Ends the current sub-path, and begins a new one with no fill. Functionally identical to <code>beginFill(null)</code>.
 7547A tiny API method "ef" also exists.</p>
 7548
 7549    </div>
 7550
 7551    
 7552
 7553    
 7554        <div class="returns">
 7555            <h4>Returns:</h4>
 7556
 7557            <div class="returns-description">
 7558                
 7559                    
 7560                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 7561                    
 7562                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 7563
 7564                
 7565            </div>
 7566        </div>
 7567    
 7568
 7569    
 7570</div>
 7571
 7572                
 7573                    <div id="method_endStroke" class="method item">
 7574    <h3 class="name"><code>endStroke</code></h3>
 7575
 7576    
 7577        <span class="paren">()</span>
 7578    
 7579
 7580    
 7581        <span class="returns-inline">
 7582            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 7583        </span>
 7584    
 7585
 7586    
 7587
 7588    
 7589
 7590    
 7591
 7592    
 7593
 7594    
 7595        <span class="flag chainable">chainable</span>
 7596    
 7597
 7598    
 7599
 7600    <div class="meta">
 7601        
 7602            
 7603                
 7604                <p>
 7605                
 7606                Defined in
 7607                
 7608            
 7609        
 7610        
 7611        <a href="../files/easeljs_display_Graphics.js.html#l827"><code>endStroke:827</code></a>
 7612        
 7613        </p>
 7614
 7615
 7616        
 7617
 7618        
 7619    </div>
 7620
 7621    <div class="description">
 7622        <p>Ends the current sub-path, and begins a new one with no stroke. Functionally identical to <code>beginStroke(null)</code>.
 7623A tiny API method "es" also exists.</p>
 7624
 7625    </div>
 7626
 7627    
 7628
 7629    
 7630        <div class="returns">
 7631            <h4>Returns:</h4>
 7632
 7633            <div class="returns-description">
 7634                
 7635                    
 7636                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 7637                    
 7638                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 7639
 7640                
 7641            </div>
 7642        </div>
 7643    
 7644
 7645    
 7646</div>
 7647
 7648                
 7649                    <div id="method_es" class="method item protected">
 7650    <h3 class="name"><code>es</code></h3>
 7651
 7652    
 7653        <span class="paren">()</span>
 7654    
 7655
 7656    
 7657        <span class="returns-inline">
 7658            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 7659        </span>
 7660    
 7661
 7662    
 7663
 7664    
 7665        <span class="flag protected">protected</span>
 7666    
 7667
 7668    
 7669
 7670    
 7671
 7672    
 7673        <span class="flag chainable">chainable</span>
 7674    
 7675
 7676    
 7677
 7678    <div class="meta">
 7679        
 7680            
 7681                
 7682                <p>
 7683                
 7684                Defined in
 7685                
 7686            
 7687        
 7688        
 7689        <a href="../files/easeljs_display_Graphics.js.html#l1440"><code>es:1440</code></a>
 7690        
 7691        </p>
 7692
 7693
 7694        
 7695
 7696        
 7697    </div>
 7698
 7699    <div class="description">
 7700        <p>Shortcut to endStroke.</p>
 7701
 7702    </div>
 7703
 7704    
 7705
 7706    
 7707        <div class="returns">
 7708            <h4>Returns:</h4>
 7709
 7710            <div class="returns-description">
 7711                
 7712                    
 7713                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 7714                    
 7715                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 7716
 7717                
 7718            </div>
 7719        </div>
 7720    
 7721
 7722    
 7723</div>
 7724
 7725                
 7726                    <div id="method_f" class="method item protected">
 7727    <h3 class="name"><code>f</code></h3>
 7728
 7729    
 7730        <div class="args">
 7731            <span class="paren">(</span><ul class="args-list inline commas">
 7732            
 7733                <li class="arg">
 7734                    
 7735                        <code>color</code>
 7736                    
 7737                </li>
 7738            
 7739            </ul><span class="paren">)</span>
 7740        </div>
 7741    
 7742
 7743    
 7744        <span class="returns-inline">
 7745            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 7746        </span>
 7747    
 7748
 7749    
 7750
 7751    
 7752        <span class="flag protected">protected</span>
 7753    
 7754
 7755    
 7756
 7757    
 7758
 7759    
 7760        <span class="flag chainable">chainable</span>
 7761    
 7762
 7763    
 7764
 7765    <div class="meta">
 7766        
 7767            
 7768                
 7769                <p>
 7770                
 7771                Defined in
 7772                
 7773            
 7774        
 7775        
 7776        <a href="../files/easeljs_display_Graphics.js.html#l1274"><code>f:1274</code></a>
 7777        
 7778        </p>
 7779
 7780
 7781        
 7782
 7783        
 7784    </div>
 7785
 7786    <div class="description">
 7787        <p>Shortcut to beginFill.</p>
 7788
 7789    </div>
 7790
 7791    
 7792        <div class="params">
 7793            <h4>Parameters:</h4>
 7794
 7795            <ul class="params-list">
 7796            
 7797                <li class="param">
 7798                    
 7799                        <code class="param-name">color</code>
 7800                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 7801                    
 7802
 7803                    
 7804
 7805                    <div class="param-description">
 7806                        <p>A CSS compatible color value (ex. "red", "#FF0000", or "rgba(255,0,0,0.5)"). Setting to
 7807null will result in no fill.</p>
 7808
 7809                    </div>
 7810
 7811                    
 7812                </li>
 7813            
 7814            </ul>
 7815        </div>
 7816    
 7817
 7818    
 7819        <div class="returns">
 7820            <h4>Returns:</h4>
 7821
 7822            <div class="returns-description">
 7823                
 7824                    
 7825                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 7826                    
 7827                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 7828
 7829                
 7830            </div>
 7831        </div>
 7832    
 7833
 7834    
 7835</div>
 7836
 7837                
 7838                    <div id="method_getHSL" class="method item">
 7839    <h3 class="name"><code>getHSL</code></h3>
 7840
 7841    
 7842        <div class="args">
 7843            <span class="paren">(</span><ul class="args-list inline commas">
 7844            
 7845                <li class="arg">
 7846                    
 7847                        <code>hue</code>
 7848                    
 7849                </li>
 7850            
 7851                <li class="arg">
 7852                    
 7853                        <code>saturation</code>
 7854                    
 7855                </li>
 7856            
 7857                <li class="arg">
 7858                    
 7859                        <code>lightness</code>
 7860                    
 7861                </li>
 7862            
 7863                <li class="arg">
 7864                    
 7865                        <code class="optional">[alpha]</code>
 7866                    
 7867                </li>
 7868            
 7869            </ul><span class="paren">)</span>
 7870        </div>
 7871    
 7872
 7873    
 7874        <span class="returns-inline">
 7875            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 7876        </span>
 7877    
 7878
 7879    
 7880
 7881    
 7882
 7883    
 7884
 7885    
 7886        <span class="flag static">static</span>
 7887    
 7888
 7889    
 7890
 7891    
 7892
 7893    <div class="meta">
 7894        
 7895            
 7896                
 7897                <p>
 7898                
 7899                Defined in
 7900                
 7901            
 7902        
 7903        
 7904        <a href="../files/easeljs_display_Graphics.js.html#l288"><code>getHSL:288</code></a>
 7905        
 7906        </p>
 7907
 7908
 7909        
 7910
 7911        
 7912    </div>
 7913
 7914    <div class="description">
 7915        <p>Returns a CSS compatible color string based on the specified HSL numeric color values in the format "hsla(360,100,100,1.0)",
 7916or if alpha is null then in the format "hsl(360,100,100)".</p>
 7917<pre class="code prettyprint"><code> createjs.Graphics.getHSL(150, 100, 70);
 7918 // Returns "hsl(150,100,70)"</code></pre>
 7919
 7920    </div>
 7921
 7922    
 7923        <div class="params">
 7924            <h4>Parameters:</h4>
 7925
 7926            <ul class="params-list">
 7927            
 7928                <li class="param">
 7929                    
 7930                        <code class="param-name">hue</code>
 7931                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7932                    
 7933
 7934                    
 7935
 7936                    <div class="param-description">
 7937                        <p>The hue component for the color, between 0 and 360.</p>
 7938
 7939                    </div>
 7940
 7941                    
 7942                </li>
 7943            
 7944                <li class="param">
 7945                    
 7946                        <code class="param-name">saturation</code>
 7947                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7948                    
 7949
 7950                    
 7951
 7952                    <div class="param-description">
 7953                        <p>The saturation component for the color, between 0 and 100.</p>
 7954
 7955                    </div>
 7956
 7957                    
 7958                </li>
 7959            
 7960                <li class="param">
 7961                    
 7962                        <code class="param-name">lightness</code>
 7963                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7964                    
 7965
 7966                    
 7967
 7968                    <div class="param-description">
 7969                        <p>The lightness component for the color, between 0 and 100.</p>
 7970
 7971                    </div>
 7972
 7973                    
 7974                </li>
 7975            
 7976                <li class="param">
 7977                    
 7978                        <code class="param-name optional">[alpha]</code>
 7979                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 7980                        <span class="flag optional" title="This parameter is optional.">optional</span>
 7981                    
 7982
 7983                    
 7984
 7985                    <div class="param-description">
 7986                        <p>The alpha component for the color where 0 is fully transparent and 1 is fully opaque.</p>
 7987
 7988                    </div>
 7989
 7990                    
 7991                </li>
 7992            
 7993            </ul>
 7994        </div>
 7995    
 7996
 7997    
 7998        <div class="returns">
 7999            <h4>Returns:</h4>
 8000
 8001            <div class="returns-description">
 8002                
 8003                    
 8004                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>:
 8005                    
 8006                    <p>A CSS compatible color string based on the specified HSL numeric color values in the format
 8007"hsla(360,100,100,1.0)", or if alpha is null then in the format "hsl(360,100,100)".</p>
 8008
 8009                
 8010            </div>
 8011        </div>
 8012    
 8013
 8014    
 8015</div>
 8016
 8017                
 8018                    <div id="method_getRGB" class="method item">
 8019    <h3 class="name"><code>getRGB</code></h3>
 8020
 8021    
 8022        <div class="args">
 8023            <span class="paren">(</span><ul class="args-list inline commas">
 8024            
 8025                <li class="arg">
 8026                    
 8027                        <code>r</code>
 8028                    
 8029                </li>
 8030            
 8031                <li class="arg">
 8032                    
 8033                        <code>g</code>
 8034                    
 8035                </li>
 8036            
 8037                <li class="arg">
 8038                    
 8039                        <code>b</code>
 8040                    
 8041                </li>
 8042            
 8043                <li class="arg">
 8044                    
 8045                        <code class="optional">[alpha]</code>
 8046                    
 8047                </li>
 8048            
 8049            </ul><span class="paren">)</span>
 8050        </div>
 8051    
 8052
 8053    
 8054        <span class="returns-inline">
 8055            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 8056        </span>
 8057    
 8058
 8059    
 8060
 8061    
 8062
 8063    
 8064
 8065    
 8066        <span class="flag static">static</span>
 8067    
 8068
 8069    
 8070
 8071    
 8072
 8073    <div class="meta">
 8074        
 8075            
 8076                
 8077                <p>
 8078                
 8079                Defined in
 8080                
 8081            
 8082        
 8083        
 8084        <a href="../files/easeljs_display_Graphics.js.html#l252"><code>getRGB:252</code></a>
 8085        
 8086        </p>
 8087
 8088
 8089        
 8090
 8091        
 8092    </div>
 8093
 8094    <div class="description">
 8095        <p>Returns a CSS compatible color string based on the specified RGB numeric color values in the format
 8096"rgba(255,255,255,1.0)", or if alpha is null then in the format "rgb(255,255,255)". For example,</p>
 8097<pre class="code prettyprint"><code> createjs.Graphics.getRGB(50, 100, 150, 0.5);
 8098 // Returns "rgba(50,100,150,0.5)"</code></pre>
 8099<p>It also supports passing a single hex color value as the first param, and an optional alpha value as the second
 8100param. For example,</p>
 8101<pre class="code prettyprint"><code> createjs.Graphics.getRGB(0xFF00FF, 0.2);
 8102 // Returns "rgba(255,0,255,0.2)"</code></pre>
 8103
 8104    </div>
 8105
 8106    
 8107        <div class="params">
 8108            <h4>Parameters:</h4>
 8109
 8110            <ul class="params-list">
 8111            
 8112                <li class="param">
 8113                    
 8114                        <code class="param-name">r</code>
 8115                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 8116                    
 8117
 8118                    
 8119
 8120                    <div class="param-description">
 8121                        <p>The red component for the color, between 0 and 0xFF (255).</p>
 8122
 8123                    </div>
 8124
 8125                    
 8126                </li>
 8127            
 8128                <li class="param">
 8129                    
 8130                        <code class="param-name">g</code>
 8131                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 8132                    
 8133
 8134                    
 8135
 8136                    <div class="param-description">
 8137                        <p>The green component for the color, between 0 and 0xFF (255).</p>
 8138
 8139                    </div>
 8140
 8141                    
 8142                </li>
 8143            
 8144                <li class="param">
 8145                    
 8146                        <code class="param-name">b</code>
 8147                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 8148                    
 8149
 8150                    
 8151
 8152                    <div class="param-description">
 8153                        <p>The blue component for the color, between 0 and 0xFF (255).</p>
 8154
 8155                    </div>
 8156
 8157                    
 8158                </li>
 8159            
 8160                <li class="param">
 8161                    
 8162                        <code class="param-name optional">[alpha]</code>
 8163                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 8164                        <span class="flag optional" title="This parameter is optional.">optional</span>
 8165                    
 8166
 8167                    
 8168
 8169                    <div class="param-description">
 8170                        <p>The alpha component for the color where 0 is fully transparent and 1 is fully opaque.</p>
 8171
 8172                    </div>
 8173
 8174                    
 8175                </li>
 8176            
 8177            </ul>
 8178        </div>
 8179    
 8180
 8181    
 8182        <div class="returns">
 8183            <h4>Returns:</h4>
 8184
 8185            <div class="returns-description">
 8186                
 8187                    
 8188                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>:
 8189                    
 8190                    <p>A CSS compatible color string based on the specified RGB numeric color values in the format
 8191"rgba(255,255,255,1.0)", or if alpha is null then in the format "rgb(255,255,255)".</p>
 8192
 8193                
 8194            </div>
 8195        </div>
 8196    
 8197
 8198    
 8199</div>
 8200
 8201                
 8202                    <div id="method_isEmpty" class="method item">
 8203    <h3 class="name"><code>isEmpty</code></h3>
 8204
 8205    
 8206        <span class="paren">()</span>
 8207    
 8208
 8209    
 8210        <span class="returns-inline">
 8211            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
 8212        </span>
 8213    
 8214
 8215    
 8216
 8217    
 8218
 8219    
 8220
 8221    
 8222
 8223    
 8224
 8225    
 8226
 8227    <div class="meta">
 8228        
 8229            
 8230                
 8231                <p>
 8232                
 8233                Defined in
 8234                
 8235            
 8236        
 8237        
 8238        <a href="../files/easeljs_display_Graphics.js.html#l409"><code>isEmpty:409</code></a>
 8239        
 8240        </p>
 8241
 8242
 8243        
 8244
 8245        
 8246    </div>
 8247
 8248    <div class="description">
 8249        <p>Returns true if this Graphics instance has no drawing commands.</p>
 8250
 8251    </div>
 8252
 8253    
 8254
 8255    
 8256        <div class="returns">
 8257            <h4>Returns:</h4>
 8258
 8259            <div class="returns-description">
 8260                
 8261                    
 8262                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>:
 8263                    
 8264                    <p>Returns true if this Graphics instance has no drawing commands.</p>
 8265
 8266                
 8267            </div>
 8268        </div>
 8269    
 8270
 8271    
 8272</div>
 8273
 8274                
 8275                    <div id="method_lf" class="method item protected">
 8276    <h3 class="name"><code>lf</code></h3>
 8277
 8278    
 8279        <div class="args">
 8280            <span class="paren">(</span><ul class="args-list inline commas">
 8281            
 8282                <li class="arg">
 8283                    
 8284                        <code>colors</code>
 8285                    
 8286                </li>
 8287            
 8288                <li class="arg">
 8289                    
 8290                        <code>ratios</code>
 8291                    
 8292                </li>
 8293            
 8294                <li class="arg">
 8295                    
 8296                        <code>x0</code>
 8297                    
 8298                </li>
 8299            
 8300                <li class="arg">
 8301                    
 8302                        <code>y0</code>
 8303                    
 8304                </li>
 8305            
 8306                <li class="arg">
 8307                    
 8308                        <code>x1</code>
 8309                    
 8310                </li>
 8311            
 8312                <li class="arg">
 8313                    
 8314                        <code>y1</code>
 8315                    
 8316                </li>
 8317            
 8318            </ul><span class="paren">)</span>
 8319        </div>
 8320    
 8321
 8322    
 8323        <span class="returns-inline">
 8324            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 8325        </span>
 8326    
 8327
 8328    
 8329
 8330    
 8331        <span class="flag protected">protected</span>
 8332    
 8333
 8334    
 8335
 8336    
 8337
 8338    
 8339        <span class="flag chainable">chainable</span>
 8340    
 8341
 8342    
 8343
 8344    <div class="meta">
 8345        
 8346            
 8347                
 8348                <p>
 8349                
 8350                Defined in
 8351                
 8352            
 8353        
 8354        
 8355        <a href="../files/easeljs_display_Graphics.js.html#l1285"><code>lf:1285</code></a>
 8356        
 8357        </p>
 8358
 8359
 8360        
 8361
 8362        
 8363    </div>
 8364
 8365    <div class="description">
 8366        <p>Shortcut to beginLinearGradientFill.</p>
 8367
 8368    </div>
 8369
 8370    
 8371        <div class="params">
 8372            <h4>Parameters:</h4>
 8373
 8374            <ul class="params-list">
 8375            
 8376                <li class="param">
 8377                    
 8378                        <code class="param-name">colors</code>
 8379                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 8380                    
 8381
 8382                    
 8383
 8384                    <div class="param-description">
 8385                        <p>An array of CSS compatible color values. For example, ["#F00","#00F"] would define a gradient
 8386drawing from red to blue.</p>
 8387
 8388                    </div>
 8389
 8390                    
 8391                </li>
 8392            
 8393                <li class="param">
 8394                    
 8395                        <code class="param-name">ratios</code>
 8396                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 8397                    
 8398
 8399                    
 8400
 8401                    <div class="param-description">
 8402                        <p>An array of gradient positions which correspond to the colors. For example, [0.1, 0.9] would draw
 8403the first color to 10% then interpolating to the second color at 90%.</p>
 8404
 8405                    </div>
 8406
 8407                    
 8408                </li>
 8409            
 8410                <li class="param">
 8411                    
 8412                        <code class="param-name">x0</code>
 8413                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 8414                    
 8415
 8416                    
 8417
 8418                    <div class="param-description">
 8419                        <p>The position of the first point defining the line that defines the gradient direction and size.</p>
 8420
 8421                    </div>
 8422
 8423                    
 8424                </li>
 8425            
 8426                <li class="param">
 8427                    
 8428                        <code class="param-name">y0</code>
 8429                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 8430                    
 8431
 8432                    
 8433
 8434                    <div class="param-description">
 8435                        <p>The position of the first point defining the line that defines the gradient direction and size.</p>
 8436
 8437                    </div>
 8438
 8439                    
 8440                </li>
 8441            
 8442                <li class="param">
 8443                    
 8444                        <code class="param-name">x1</code>
 8445                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 8446                    
 8447
 8448                    
 8449
 8450                    <div class="param-description">
 8451                        <p>The position of the second point defining the line that defines the gradient direction and size.</p>
 8452
 8453                    </div>
 8454
 8455                    
 8456                </li>
 8457            
 8458                <li class="param">
 8459                    
 8460                        <code class="param-name">y1</code>
 8461                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 8462                    
 8463
 8464                    
 8465
 8466                    <div class="param-description">
 8467                        <p>The position of the second point defining the line that defines the gradient direction and size.</p>
 8468
 8469                    </div>
 8470
 8471                    
 8472                </li>
 8473            
 8474            </ul>
 8475        </div>
 8476    
 8477
 8478    
 8479        <div class="returns">
 8480            <h4>Returns:</h4>
 8481
 8482            <div class="returns-description">
 8483                
 8484                    
 8485                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 8486                    
 8487                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 8488
 8489                
 8490            </div>
 8491        </div>
 8492    
 8493
 8494    
 8495</div>
 8496
 8497                
 8498                    <div id="method_lineTo" class="method item">
 8499    <h3 class="name"><code>lineTo</code></h3>
 8500
 8501    
 8502        <div class="args">
 8503            <span class="paren">(</span><ul class="args-list inline commas">
 8504            
 8505                <li class="arg">
 8506                    
 8507                        <code>x</code>
 8508                    
 8509                </li>
 8510            
 8511                <li class="arg">
 8512                    
 8513                        <code>y</code>
 8514                    
 8515                </li>
 8516            
 8517            </ul><span class="paren">)</span>
 8518        </div>
 8519    
 8520
 8521    
 8522        <span class="returns-inline">
 8523            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 8524        </span>
 8525    
 8526
 8527    
 8528
 8529    
 8530
 8531    
 8532
 8533    
 8534
 8535    
 8536        <span class="flag chainable">chainable</span>
 8537    
 8538
 8539    
 8540
 8541    <div class="meta">
 8542        
 8543            
 8544                
 8545                <p>
 8546                
 8547                Defined in
 8548                
 8549            
 8550        
 8551        
 8552        <a href="../files/easeljs_display_Graphics.js.html#l466"><code>lineTo:466</code></a>
 8553        
 8554        </p>
 8555
 8556
 8557        
 8558
 8559        
 8560    </div>
 8561
 8562    <div class="description">
 8563        <p>Draws a line from the current drawing point to the specified position, which become the new current drawing
 8564point. Note that you <em>must</em> call <a href="../classes/Graphics.html#method_moveTo" class="crosslink">moveTo</a> before the first <code>lineTo()</code>.
 8565A tiny API method "lt" also exists.</p>
 8566<p>For detailed information, read the
 8567<a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#complex-shapes-(paths)">
 8568whatwg spec</a>.</p>
 8569
 8570    </div>
 8571
 8572    
 8573        <div class="params">
 8574            <h4>Parameters:</h4>
 8575
 8576            <ul class="params-list">
 8577            
 8578                <li class="param">
 8579                    
 8580                        <code class="param-name">x</code>
 8581                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 8582                    
 8583
 8584                    
 8585
 8586                    <div class="param-description">
 8587                        <p>The x coordinate the drawing point should draw to.</p>
 8588
 8589                    </div>
 8590
 8591                    
 8592                </li>
 8593            
 8594                <li class="param">
 8595                    
 8596                        <code class="param-name">y</code>
 8597                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 8598                    
 8599
 8600                    
 8601
 8602                    <div class="param-description">
 8603                        <p>The y coordinate the drawing point should draw to.</p>
 8604
 8605                    </div>
 8606
 8607                    
 8608                </li>
 8609            
 8610            </ul>
 8611        </div>
 8612    
 8613
 8614    
 8615        <div class="returns">
 8616            <h4>Returns:</h4>
 8617
 8618            <div class="returns-description">
 8619                
 8620                    
 8621                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 8622                    
 8623                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 8624
 8625                
 8626            </div>
 8627        </div>
 8628    
 8629
 8630    
 8631</div>
 8632
 8633                
 8634                    <div id="method_ls" class="method item protected">
 8635    <h3 class="name"><code>ls</code></h3>
 8636
 8637    
 8638        <div class="args">
 8639            <span class="paren">(</span><ul class="args-list inline commas">
 8640            
 8641                <li class="arg">
 8642                    
 8643                        <code>colors</code>
 8644                    
 8645                </li>
 8646            
 8647                <li class="arg">
 8648                    
 8649                        <code>ratios</code>
 8650                    
 8651                </li>
 8652            
 8653                <li class="arg">
 8654                    
 8655                        <code>x0</code>
 8656                    
 8657                </li>
 8658            
 8659                <li class="arg">
 8660                    
 8661                        <code>y0</code>
 8662                    
 8663                </li>
 8664            
 8665                <li class="arg">
 8666                    
 8667                        <code>x1</code>
 8668                    
 8669                </li>
 8670            
 8671                <li class="arg">
 8672                    
 8673                        <code>y1</code>
 8674                    
 8675                </li>
 8676            
 8677            </ul><span class="paren">)</span>
 8678        </div>
 8679    
 8680
 8681    
 8682        <span class="returns-inline">
 8683            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 8684        </span>
 8685    
 8686
 8687    
 8688
 8689    
 8690        <span class="flag protected">protected</span>
 8691    
 8692
 8693    
 8694
 8695    
 8696
 8697    
 8698        <span class="flag chainable">chainable</span>
 8699    
 8700
 8701    
 8702
 8703    <div class="meta">
 8704        
 8705            
 8706                
 8707                <p>
 8708                
 8709                Defined in
 8710                
 8711            
 8712        
 8713        
 8714        <a href="../files/easeljs_display_Graphics.js.html#l1390"><code>ls:1390</code></a>
 8715        
 8716        </p>
 8717
 8718
 8719        
 8720
 8721        
 8722    </div>
 8723
 8724    <div class="description">
 8725        <p>Shortcut to beginLinearGradientStroke.</p>
 8726
 8727    </div>
 8728
 8729    
 8730        <div class="params">
 8731            <h4>Parameters:</h4>
 8732
 8733            <ul class="params-list">
 8734            
 8735                <li class="param">
 8736                    
 8737                        <code class="param-name">colors</code>
 8738                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 8739                    
 8740
 8741                    
 8742
 8743                    <div class="param-description">
 8744                        <p>An array of CSS compatible color values. For example, ["#F00","#00F"] would define
 8745a gradient drawing from red to blue.</p>
 8746
 8747                    </div>
 8748
 8749                    
 8750                </li>
 8751            
 8752                <li class="param">
 8753                    
 8754                        <code class="param-name">ratios</code>
 8755                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
 8756                    
 8757
 8758                    
 8759
 8760                    <div class="param-description">
 8761                        <p>An array of gradient positions which correspond to the colors. For example, [0.1,
 87620.9] would draw the first color to 10% then interpolating to the second color at 90%.</p>
 8763
 8764                    </div>
 8765
 8766                    
 8767                </li>
 8768            
 8769                <li class="param">
 8770                    
 8771                        <code class="param-name">x0</code>
 8772                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 8773                    
 8774
 8775                    
 8776
 8777                    <div class="param-description">
 8778                        <p>The position of the first point defining the line that defines the gradient direction and size.</p>
 8779
 8780                    </div>
 8781
 8782                    
 8783                </li>
 8784            
 8785                <li class="param">
 8786                    
 8787                        <code class="param-name">y0</code>
 8788                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 8789                    
 8790
 8791                    
 8792
 8793                    <div class="param-description">
 8794                        <p>The position of the first point defining the line that defines the gradient direction and size.</p>
 8795
 8796                    </div>
 8797
 8798                    
 8799                </li>
 8800            
 8801                <li class="param">
 8802                    
 8803                        <code class="param-name">x1</code>
 8804                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 8805                    
 8806
 8807                    
 8808
 8809                    <div class="param-description">
 8810                        <p>The position of the second point defining the line that defines the gradient direction and size.</p>
 8811
 8812                    </div>
 8813
 8814                    
 8815                </li>
 8816            
 8817                <li class="param">
 8818                    
 8819                        <code class="param-name">y1</code>
 8820                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 8821                    
 8822
 8823                    
 8824
 8825                    <div class="param-description">
 8826                        <p>The position of the second point defining the line that defines the gradient direction and size.</p>
 8827
 8828                    </div>
 8829
 8830                    
 8831                </li>
 8832            
 8833            </ul>
 8834        </div>
 8835    
 8836
 8837    
 8838        <div class="returns">
 8839            <h4>Returns:</h4>
 8840
 8841            <div class="returns-description">
 8842                
 8843                    
 8844                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 8845                    
 8846                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 8847
 8848                
 8849            </div>
 8850        </div>
 8851    
 8852
 8853    
 8854</div>
 8855
 8856                
 8857                    <div id="method_lt" class="method item protected">
 8858    <h3 class="name"><code>lt</code></h3>
 8859
 8860    
 8861        <div class="args">
 8862            <span class="paren">(</span><ul class="args-list inline commas">
 8863            
 8864                <li class="arg">
 8865                    
 8866                        <code>x</code>
 8867                    
 8868                </li>
 8869            
 8870                <li class="arg">
 8871                    
 8872                        <code>y</code>
 8873                    
 8874                </li>
 8875            
 8876            </ul><span class="paren">)</span>
 8877        </div>
 8878    
 8879
 8880    
 8881        <span class="returns-inline">
 8882            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 8883        </span>
 8884    
 8885
 8886    
 8887
 8888    
 8889        <span class="flag protected">protected</span>
 8890    
 8891
 8892    
 8893
 8894    
 8895
 8896    
 8897        <span class="flag chainable">chainable</span>
 8898    
 8899
 8900    
 8901
 8902    <div class="meta">
 8903        
 8904            
 8905                
 8906                <p>
 8907                
 8908                Defined in
 8909                
 8910            
 8911        
 8912        
 8913        <a href="../files/easeljs_display_Graphics.js.html#l1176"><code>lt:1176</code></a>
 8914        
 8915        </p>
 8916
 8917
 8918        
 8919
 8920        
 8921    </div>
 8922
 8923    <div class="description">
 8924        <p>Shortcut to lineTo.</p>
 8925
 8926    </div>
 8927
 8928    
 8929        <div class="params">
 8930            <h4>Parameters:</h4>
 8931
 8932            <ul class="params-list">
 8933            
 8934                <li class="param">
 8935                    
 8936                        <code class="param-name">x</code>
 8937                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 8938                    
 8939
 8940                    
 8941
 8942                    <div class="param-description">
 8943                        <p>The x coordinate the drawing point should draw to.</p>
 8944
 8945                    </div>
 8946
 8947                    
 8948                </li>
 8949            
 8950                <li class="param">
 8951                    
 8952                        <code class="param-name">y</code>
 8953                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 8954                    
 8955
 8956                    
 8957
 8958                    <div class="param-description">
 8959                        <p>The y coordinate the drawing point should draw to.</p>
 8960
 8961                    </div>
 8962
 8963                    
 8964                </li>
 8965            
 8966            </ul>
 8967        </div>
 8968    
 8969
 8970    
 8971        <div class="returns">
 8972            <h4>Returns:</h4>
 8973
 8974            <div class="returns-description">
 8975                
 8976                    
 8977                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 8978                    
 8979                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 8980
 8981                
 8982            </div>
 8983        </div>
 8984    
 8985
 8986    
 8987</div>
 8988
 8989                
 8990                    <div id="method_moveTo" class="method item">
 8991    <h3 class="name"><code>moveTo</code></h3>
 8992
 8993    
 8994        <div class="args">
 8995            <span class="paren">(</span><ul class="args-list inline commas">
 8996            
 8997                <li class="arg">
 8998                    
 8999                        <code>x</code>
 9000                    
 9001                </li>
 9002            
 9003                <li class="arg">
 9004                    
 9005                        <code>y</code>
 9006                    
 9007                </li>
 9008            
 9009            </ul><span class="paren">)</span>
 9010        </div>
 9011    
 9012
 9013    
 9014        <span class="returns-inline">
 9015            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 9016        </span>
 9017    
 9018
 9019    
 9020
 9021    
 9022
 9023    
 9024
 9025    
 9026
 9027    
 9028        <span class="flag chainable">chainable</span>
 9029    
 9030
 9031    
 9032
 9033    <div class="meta">
 9034        
 9035            
 9036                
 9037                <p>
 9038                
 9039                Defined in
 9040                
 9041            
 9042        
 9043        
 9044        <a href="../files/easeljs_display_Graphics.js.html#l454"><code>moveTo:454</code></a>
 9045        
 9046        </p>
 9047
 9048
 9049        
 9050
 9051        
 9052    </div>
 9053
 9054    <div class="description">
 9055        <p>Moves the drawing point to the specified position. A tiny API method "mt" also exists.</p>
 9056
 9057    </div>
 9058
 9059    
 9060        <div class="params">
 9061            <h4>Parameters:</h4>
 9062
 9063            <ul class="params-list">
 9064            
 9065                <li class="param">
 9066                    
 9067                        <code class="param-name">x</code>
 9068                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9069                    
 9070
 9071                    
 9072
 9073                    <div class="param-description">
 9074                        <p>The x coordinate the drawing point should move to.</p>
 9075
 9076                    </div>
 9077
 9078                    
 9079                </li>
 9080            
 9081                <li class="param">
 9082                    
 9083                        <code class="param-name">y</code>
 9084                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9085                    
 9086
 9087                    
 9088
 9089                    <div class="param-description">
 9090                        <p>The y coordinate the drawing point should move to.</p>
 9091
 9092                    </div>
 9093
 9094                    
 9095                </li>
 9096            
 9097            </ul>
 9098        </div>
 9099    
 9100
 9101    
 9102        <div class="returns">
 9103            <h4>Returns:</h4>
 9104
 9105            <div class="returns-description">
 9106                
 9107                    
 9108                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 9109                    
 9110                    <p>The Graphics instance the method is called on (useful for chaining calls).</p>
 9111
 9112                
 9113            </div>
 9114        </div>
 9115    
 9116
 9117    
 9118</div>
 9119
 9120                
 9121                    <div id="method_mt" class="method item protected">
 9122    <h3 class="name"><code>mt</code></h3>
 9123
 9124    
 9125        <div class="args">
 9126            <span class="paren">(</span><ul class="args-list inline commas">
 9127            
 9128                <li class="arg">
 9129                    
 9130                        <code>x</code>
 9131                    
 9132                </li>
 9133            
 9134                <li class="arg">
 9135                    
 9136                        <code>y</code>
 9137                    
 9138                </li>
 9139            
 9140            </ul><span class="paren">)</span>
 9141        </div>
 9142    
 9143
 9144    
 9145        <span class="returns-inline">
 9146            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 9147        </span>
 9148    
 9149
 9150    
 9151
 9152    
 9153        <span class="flag protected">protected</span>
 9154    
 9155
 9156    
 9157
 9158    
 9159
 9160    
 9161        <span class="flag chainable">chainable</span>
 9162    
 9163
 9164    
 9165
 9166    <div class="meta">
 9167        
 9168            
 9169                
 9170                <p>
 9171                
 9172                Defined in
 9173                
 9174            
 9175        
 9176        
 9177        <a href="../files/easeljs_display_Graphics.js.html#l1165"><code>mt:1165</code></a>
 9178        
 9179        </p>
 9180
 9181
 9182        
 9183
 9184        
 9185    </div>
 9186
 9187    <div class="description">
 9188        <p>Shortcut to moveTo.</p>
 9189
 9190    </div>
 9191
 9192    
 9193        <div class="params">
 9194            <h4>Parameters:</h4>
 9195
 9196            <ul class="params-list">
 9197            
 9198                <li class="param">
 9199                    
 9200                        <code class="param-name">x</code>
 9201                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9202                    
 9203
 9204                    
 9205
 9206                    <div class="param-description">
 9207                        <p>The x coordinate the drawing point should move to.</p>
 9208
 9209                    </div>
 9210
 9211                    
 9212                </li>
 9213            
 9214                <li class="param">
 9215                    
 9216                        <code class="param-name">y</code>
 9217                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9218                    
 9219
 9220                    
 9221
 9222                    <div class="param-description">
 9223                        <p>The y coordinate the drawing point should move to.</p>
 9224
 9225                    </div>
 9226
 9227                    
 9228                </li>
 9229            
 9230            </ul>
 9231        </div>
 9232    
 9233
 9234    
 9235        <div class="returns">
 9236            <h4>Returns:</h4>
 9237
 9238            <div class="returns-description">
 9239                
 9240                    
 9241                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 9242                    
 9243                    <p>The Graphics instance the method is called on (useful for chaining calls).</p>
 9244
 9245                
 9246            </div>
 9247        </div>
 9248    
 9249
 9250    
 9251</div>
 9252
 9253                
 9254                    <div id="method_p" class="method item protected">
 9255    <h3 class="name"><code>p</code></h3>
 9256
 9257    
 9258        <div class="args">
 9259            <span class="paren">(</span><ul class="args-list inline commas">
 9260            
 9261                <li class="arg">
 9262                    
 9263                        <code>str</code>
 9264                    
 9265                </li>
 9266            
 9267            </ul><span class="paren">)</span>
 9268        </div>
 9269    
 9270
 9271    
 9272        <span class="returns-inline">
 9273            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 9274        </span>
 9275    
 9276
 9277    
 9278
 9279    
 9280        <span class="flag protected">protected</span>
 9281    
 9282
 9283    
 9284
 9285    
 9286
 9287    
 9288        <span class="flag chainable">chainable</span>
 9289    
 9290
 9291    
 9292
 9293    <div class="meta">
 9294        
 9295            
 9296                
 9297                <p>
 9298                
 9299                Defined in
 9300                
 9301            
 9302        
 9303        
 9304        <a href="../files/easeljs_display_Graphics.js.html#l1538"><code>p:1538</code></a>
 9305        
 9306        </p>
 9307
 9308
 9309        
 9310
 9311        
 9312    </div>
 9313
 9314    <div class="description">
 9315        <p>Shortcut to decodePath.</p>
 9316
 9317    </div>
 9318
 9319    
 9320        <div class="params">
 9321            <h4>Parameters:</h4>
 9322
 9323            <ul class="params-list">
 9324            
 9325                <li class="param">
 9326                    
 9327                        <code class="param-name">str</code>
 9328                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
 9329                    
 9330
 9331                    
 9332
 9333                    <div class="param-description">
 9334                        <p>The path string to decode.</p>
 9335
 9336                    </div>
 9337
 9338                    
 9339                </li>
 9340            
 9341            </ul>
 9342        </div>
 9343    
 9344
 9345    
 9346        <div class="returns">
 9347            <h4>Returns:</h4>
 9348
 9349            <div class="returns-description">
 9350                
 9351                    
 9352                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 9353                    
 9354                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 9355
 9356                
 9357            </div>
 9358        </div>
 9359    
 9360
 9361    
 9362</div>
 9363
 9364                
 9365                    <div id="method_qt" class="method item protected">
 9366    <h3 class="name"><code>qt</code></h3>
 9367
 9368    
 9369        <div class="args">
 9370            <span class="paren">(</span><ul class="args-list inline commas">
 9371            
 9372                <li class="arg">
 9373                    
 9374                        <code>cpx</code>
 9375                    
 9376                </li>
 9377            
 9378                <li class="arg">
 9379                    
 9380                        <code>cpy</code>
 9381                    
 9382                </li>
 9383            
 9384                <li class="arg">
 9385                    
 9386                        <code>x</code>
 9387                    
 9388                </li>
 9389            
 9390                <li class="arg">
 9391                    
 9392                        <code>y</code>
 9393                    
 9394                </li>
 9395            
 9396            </ul><span class="paren">)</span>
 9397        </div>
 9398    
 9399
 9400    
 9401
 9402    
 9403
 9404    
 9405        <span class="flag protected">protected</span>
 9406    
 9407
 9408    
 9409
 9410    
 9411
 9412    
 9413        <span class="flag chainable">chainable</span>
 9414    
 9415
 9416    
 9417
 9418    <div class="meta">
 9419        
 9420            
 9421                
 9422                <p>
 9423                
 9424                Defined in
 9425                
 9426            
 9427        
 9428        
 9429        <a href="../files/easeljs_display_Graphics.js.html#l1216"><code>qt:1216</code></a>
 9430        
 9431        </p>
 9432
 9433
 9434        
 9435
 9436        
 9437    </div>
 9438
 9439    <div class="description">
 9440        <p>Shortcut to quadraticCurveTo / curveTo.</p>
 9441
 9442    </div>
 9443
 9444    
 9445        <div class="params">
 9446            <h4>Parameters:</h4>
 9447
 9448            <ul class="params-list">
 9449            
 9450                <li class="param">
 9451                    
 9452                        <code class="param-name">cpx</code>
 9453                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9454                    
 9455
 9456                    
 9457
 9458                    <div class="param-description">
 9459                         
 9460                    </div>
 9461
 9462                    
 9463                </li>
 9464            
 9465                <li class="param">
 9466                    
 9467                        <code class="param-name">cpy</code>
 9468                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9469                    
 9470
 9471                    
 9472
 9473                    <div class="param-description">
 9474                         
 9475                    </div>
 9476
 9477                    
 9478                </li>
 9479            
 9480                <li class="param">
 9481                    
 9482                        <code class="param-name">x</code>
 9483                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9484                    
 9485
 9486                    
 9487
 9488                    <div class="param-description">
 9489                         
 9490                    </div>
 9491
 9492                    
 9493                </li>
 9494            
 9495                <li class="param">
 9496                    
 9497                        <code class="param-name">y</code>
 9498                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9499                    
 9500
 9501                    
 9502
 9503                    <div class="param-description">
 9504                         
 9505                    </div>
 9506
 9507                    
 9508                </li>
 9509            
 9510            </ul>
 9511        </div>
 9512    
 9513
 9514    
 9515
 9516    
 9517</div>
 9518
 9519                
 9520                    <div id="method_quadraticCurveTo" class="method item">
 9521    <h3 class="name"><code>quadraticCurveTo</code></h3>
 9522
 9523    
 9524        <div class="args">
 9525            <span class="paren">(</span><ul class="args-list inline commas">
 9526            
 9527                <li class="arg">
 9528                    
 9529                        <code>cpx</code>
 9530                    
 9531                </li>
 9532            
 9533                <li class="arg">
 9534                    
 9535                        <code>cpy</code>
 9536                    
 9537                </li>
 9538            
 9539                <li class="arg">
 9540                    
 9541                        <code>x</code>
 9542                    
 9543                </li>
 9544            
 9545                <li class="arg">
 9546                    
 9547                        <code>y</code>
 9548                    
 9549                </li>
 9550            
 9551            </ul><span class="paren">)</span>
 9552        </div>
 9553    
 9554
 9555    
 9556        <span class="returns-inline">
 9557            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 9558        </span>
 9559    
 9560
 9561    
 9562
 9563    
 9564
 9565    
 9566
 9567    
 9568
 9569    
 9570        <span class="flag chainable">chainable</span>
 9571    
 9572
 9573    
 9574
 9575    <div class="meta">
 9576        
 9577            
 9578                
 9579                <p>
 9580                
 9581                Defined in
 9582                
 9583            
 9584        
 9585        
 9586        <a href="../files/easeljs_display_Graphics.js.html#l524"><code>quadraticCurveTo:524</code></a>
 9587        
 9588        </p>
 9589
 9590
 9591        
 9592
 9593        
 9594    </div>
 9595
 9596    <div class="description">
 9597        <p>Draws a quadratic curve from the current drawing point to (x, y) using the control point (cpx, cpy). For detailed
 9598information, read the <a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-quadraticcurveto">
 9599whatwg spec</a>. A tiny API method "qt" also exists.</p>
 9600
 9601    </div>
 9602
 9603    
 9604        <div class="params">
 9605            <h4>Parameters:</h4>
 9606
 9607            <ul class="params-list">
 9608            
 9609                <li class="param">
 9610                    
 9611                        <code class="param-name">cpx</code>
 9612                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9613                    
 9614
 9615                    
 9616
 9617                    <div class="param-description">
 9618                         
 9619                    </div>
 9620
 9621                    
 9622                </li>
 9623            
 9624                <li class="param">
 9625                    
 9626                        <code class="param-name">cpy</code>
 9627                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9628                    
 9629
 9630                    
 9631
 9632                    <div class="param-description">
 9633                         
 9634                    </div>
 9635
 9636                    
 9637                </li>
 9638            
 9639                <li class="param">
 9640                    
 9641                        <code class="param-name">x</code>
 9642                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9643                    
 9644
 9645                    
 9646
 9647                    <div class="param-description">
 9648                         
 9649                    </div>
 9650
 9651                    
 9652                </li>
 9653            
 9654                <li class="param">
 9655                    
 9656                        <code class="param-name">y</code>
 9657                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9658                    
 9659
 9660                    
 9661
 9662                    <div class="param-description">
 9663                         
 9664                    </div>
 9665
 9666                    
 9667                </li>
 9668            
 9669            </ul>
 9670        </div>
 9671    
 9672
 9673    
 9674        <div class="returns">
 9675            <h4>Returns:</h4>
 9676
 9677            <div class="returns-description">
 9678                
 9679                    
 9680                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 9681                    
 9682                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 9683
 9684                
 9685            </div>
 9686        </div>
 9687    
 9688
 9689    
 9690</div>
 9691
 9692                
 9693                    <div id="method_r" class="method item protected">
 9694    <h3 class="name"><code>r</code></h3>
 9695
 9696    
 9697        <div class="args">
 9698            <span class="paren">(</span><ul class="args-list inline commas">
 9699            
 9700                <li class="arg">
 9701                    
 9702                        <code>x</code>
 9703                    
 9704                </li>
 9705            
 9706                <li class="arg">
 9707                    
 9708                        <code>y</code>
 9709                    
 9710                </li>
 9711            
 9712                <li class="arg">
 9713                    
 9714                        <code>w</code>
 9715                    
 9716                </li>
 9717            
 9718                <li class="arg">
 9719                    
 9720                        <code>h</code>
 9721                    
 9722                </li>
 9723            
 9724            </ul><span class="paren">)</span>
 9725        </div>
 9726    
 9727
 9728    
 9729        <span class="returns-inline">
 9730            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 9731        </span>
 9732    
 9733
 9734    
 9735
 9736    
 9737        <span class="flag protected">protected</span>
 9738    
 9739
 9740    
 9741
 9742    
 9743
 9744    
 9745        <span class="flag chainable">chainable</span>
 9746    
 9747
 9748    
 9749
 9750    <div class="meta">
 9751        
 9752            
 9753                
 9754                <p>
 9755                
 9756                Defined in
 9757                
 9758            
 9759        
 9760        
 9761        <a href="../files/easeljs_display_Graphics.js.html#l1243"><code>r:1243</code></a>
 9762        
 9763        </p>
 9764
 9765
 9766        
 9767
 9768        
 9769    </div>
 9770
 9771    <div class="description">
 9772        <p>Shortcut to rect.</p>
 9773
 9774    </div>
 9775
 9776    
 9777        <div class="params">
 9778            <h4>Parameters:</h4>
 9779
 9780            <ul class="params-list">
 9781            
 9782                <li class="param">
 9783                    
 9784                        <code class="param-name">x</code>
 9785                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9786                    
 9787
 9788                    
 9789
 9790                    <div class="param-description">
 9791                         
 9792                    </div>
 9793
 9794                    
 9795                </li>
 9796            
 9797                <li class="param">
 9798                    
 9799                        <code class="param-name">y</code>
 9800                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9801                    
 9802
 9803                    
 9804
 9805                    <div class="param-description">
 9806                         
 9807                    </div>
 9808
 9809                    
 9810                </li>
 9811            
 9812                <li class="param">
 9813                    
 9814                        <code class="param-name">w</code>
 9815                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9816                    
 9817
 9818                    
 9819
 9820                    <div class="param-description">
 9821                        <p>Width of the rectangle</p>
 9822
 9823                    </div>
 9824
 9825                    
 9826                </li>
 9827            
 9828                <li class="param">
 9829                    
 9830                        <code class="param-name">h</code>
 9831                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9832                    
 9833
 9834                    
 9835
 9836                    <div class="param-description">
 9837                        <p>Height of the rectangle</p>
 9838
 9839                    </div>
 9840
 9841                    
 9842                </li>
 9843            
 9844            </ul>
 9845        </div>
 9846    
 9847
 9848    
 9849        <div class="returns">
 9850            <h4>Returns:</h4>
 9851
 9852            <div class="returns-description">
 9853                
 9854                    
 9855                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
 9856                    
 9857                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
 9858
 9859                
 9860            </div>
 9861        </div>
 9862    
 9863
 9864    
 9865</div>
 9866
 9867                
 9868                    <div id="method_rc" class="method item protected">
 9869    <h3 class="name"><code>rc</code></h3>
 9870
 9871    
 9872        <div class="args">
 9873            <span class="paren">(</span><ul class="args-list inline commas">
 9874            
 9875                <li class="arg">
 9876                    
 9877                        <code>x</code>
 9878                    
 9879                </li>
 9880            
 9881                <li class="arg">
 9882                    
 9883                        <code>y</code>
 9884                    
 9885                </li>
 9886            
 9887                <li class="arg">
 9888                    
 9889                        <code>w</code>
 9890                    
 9891                </li>
 9892            
 9893                <li class="arg">
 9894                    
 9895                        <code>h</code>
 9896                    
 9897                </li>
 9898            
 9899                <li class="arg">
 9900                    
 9901                        <code>radiusTL</code>
 9902                    
 9903                </li>
 9904            
 9905                <li class="arg">
 9906                    
 9907                        <code>radiusTR</code>
 9908                    
 9909                </li>
 9910            
 9911                <li class="arg">
 9912                    
 9913                        <code>radiusBR</code>
 9914                    
 9915                </li>
 9916            
 9917                <li class="arg">
 9918                    
 9919                        <code>radiusBL</code>
 9920                    
 9921                </li>
 9922            
 9923            </ul><span class="paren">)</span>
 9924        </div>
 9925    
 9926
 9927    
 9928        <span class="returns-inline">
 9929            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
 9930        </span>
 9931    
 9932
 9933    
 9934
 9935    
 9936        <span class="flag protected">protected</span>
 9937    
 9938
 9939    
 9940
 9941    
 9942
 9943    
 9944        <span class="flag chainable">chainable</span>
 9945    
 9946
 9947    
 9948
 9949    <div class="meta">
 9950        
 9951            
 9952                
 9953                <p>
 9954                
 9955                Defined in
 9956                
 9957            
 9958        
 9959        
 9960        <a href="../files/easeljs_display_Graphics.js.html#l1476"><code>rc:1476</code></a>
 9961        
 9962        </p>
 9963
 9964
 9965        
 9966
 9967        
 9968    </div>
 9969
 9970    <div class="description">
 9971        <p>Shortcut to drawRoundRectComplex.</p>
 9972
 9973    </div>
 9974
 9975    
 9976        <div class="params">
 9977            <h4>Parameters:</h4>
 9978
 9979            <ul class="params-list">
 9980            
 9981                <li class="param">
 9982                    
 9983                        <code class="param-name">x</code>
 9984                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
 9985                    
 9986
 9987                    
 9988
 9989                    <div class="param-description">
 9990                        <p>The horizontal coordinate to draw the round rect.</p>
 9991
 9992                    </div>
 9993
 9994                    
 9995                </li>
 9996            
 9997                <li class="param">
 9998                    
 9999                        <code class="param-name">y</code>
10000                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10001                    
10002
10003                    
10004
10005                    <div class="param-description">
10006                        <p>The vertical coordinate to draw the round rect.</p>
10007
10008                    </div>
10009
10010                    
10011                </li>
10012            
10013                <li class="param">
10014                    
10015                        <code class="param-name">w</code>
10016                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10017                    
10018
10019                    
10020
10021                    <div class="param-description">
10022                        <p>The width of the round rect.</p>
10023
10024                    </div>
10025
10026                    
10027                </li>
10028            
10029                <li class="param">
10030                    
10031                        <code class="param-name">h</code>
10032                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10033                    
10034
10035                    
10036
10037                    <div class="param-description">
10038                        <p>The height of the round rect.</p>
10039
10040                    </div>
10041
10042                    
10043                </li>
10044            
10045                <li class="param">
10046                    
10047                        <code class="param-name">radiusTL</code>
10048                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10049                    
10050
10051                    
10052
10053                    <div class="param-description">
10054                        <p>Top left corner radius.</p>
10055
10056                    </div>
10057
10058                    
10059                </li>
10060            
10061                <li class="param">
10062                    
10063                        <code class="param-name">radiusTR</code>
10064                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10065                    
10066
10067                    
10068
10069                    <div class="param-description">
10070                        <p>Top right corner radius.</p>
10071
10072                    </div>
10073
10074                    
10075                </li>
10076            
10077                <li class="param">
10078                    
10079                        <code class="param-name">radiusBR</code>
10080                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10081                    
10082
10083                    
10084
10085                    <div class="param-description">
10086                        <p>Bottom right corner radius.</p>
10087
10088                    </div>
10089
10090                    
10091                </li>
10092            
10093                <li class="param">
10094                    
10095                        <code class="param-name">radiusBL</code>
10096                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10097                    
10098
10099                    
10100
10101                    <div class="param-description">
10102                        <p>Bottom left corner radius.</p>
10103
10104                    </div>
10105
10106                    
10107                </li>
10108            
10109            </ul>
10110        </div>
10111    
10112
10113    
10114        <div class="returns">
10115            <h4>Returns:</h4>
10116
10117            <div class="returns-description">
10118                
10119                    
10120                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
10121                    
10122                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
10123
10124                
10125            </div>
10126        </div>
10127    
10128
10129    
10130</div>
10131
10132                
10133                    <div id="method_rect" class="method item">
10134    <h3 class="name"><code>rect</code></h3>
10135
10136    
10137        <div class="args">
10138            <span class="paren">(</span><ul class="args-list inline commas">
10139            
10140                <li class="arg">
10141                    
10142                        <code>x</code>
10143                    
10144                </li>
10145            
10146                <li class="arg">
10147                    
10148                        <code>y</code>
10149                    
10150                </li>
10151            
10152                <li class="arg">
10153                    
10154                        <code>w</code>
10155                    
10156                </li>
10157            
10158                <li class="arg">
10159                    
10160                        <code>h</code>
10161                    
10162                </li>
10163            
10164            </ul><span class="paren">)</span>
10165        </div>
10166    
10167
10168    
10169        <span class="returns-inline">
10170            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
10171        </span>
10172    
10173
10174    
10175
10176    
10177
10178    
10179
10180    
10181
10182    
10183        <span class="flag chainable">chainable</span>
10184    
10185
10186    
10187
10188    <div class="meta">
10189        
10190            
10191                
10192                <p>
10193                
10194                Defined in
10195                
10196            
10197        
10198        
10199        <a href="../files/easeljs_display_Graphics.js.html#l559"><code>rect:559</code></a>
10200        
10201        </p>
10202
10203
10204        
10205
10206        
10207    </div>
10208
10209    <div class="description">
10210        <p>Draws a rectangle at (x, y) with the specified width and height using the current fill and/or stroke.
10211For detailed information, read the
10212<a href="http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-element.html#dom-context-2d-rect">
10213whatwg spec</a>. A tiny API method "r" also exists.</p>
10214
10215    </div>
10216
10217    
10218        <div class="params">
10219            <h4>Parameters:</h4>
10220
10221            <ul class="params-list">
10222            
10223                <li class="param">
10224                    
10225                        <code class="param-name">x</code>
10226                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10227                    
10228
10229                    
10230
10231                    <div class="param-description">
10232                         
10233                    </div>
10234
10235                    
10236                </li>
10237            
10238                <li class="param">
10239                    
10240                        <code class="param-name">y</code>
10241                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10242                    
10243
10244                    
10245
10246                    <div class="param-description">
10247                         
10248                    </div>
10249
10250                    
10251                </li>
10252            
10253                <li class="param">
10254                    
10255                        <code class="param-name">w</code>
10256                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10257                    
10258
10259                    
10260
10261                    <div class="param-description">
10262                        <p>Width of the rectangle</p>
10263
10264                    </div>
10265
10266                    
10267                </li>
10268            
10269                <li class="param">
10270                    
10271                        <code class="param-name">h</code>
10272                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10273                    
10274
10275                    
10276
10277                    <div class="param-description">
10278                        <p>Height of the rectangle</p>
10279
10280                    </div>
10281
10282                    
10283                </li>
10284            
10285            </ul>
10286        </div>
10287    
10288
10289    
10290        <div class="returns">
10291            <h4>Returns:</h4>
10292
10293            <div class="returns-description">
10294                
10295                    
10296                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
10297                    
10298                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
10299
10300                
10301            </div>
10302        </div>
10303    
10304
10305    
10306</div>
10307
10308                
10309                    <div id="method_rf" class="method item protected">
10310    <h3 class="name"><code>rf</code></h3>
10311
10312    
10313        <div class="args">
10314            <span class="paren">(</span><ul class="args-list inline commas">
10315            
10316                <li class="arg">
10317                    
10318                        <code>colors</code>
10319                    
10320                </li>
10321            
10322                <li class="arg">
10323                    
10324                        <code>ratios</code>
10325                    
10326                </li>
10327            
10328                <li class="arg">
10329                    
10330                        <code>x0</code>
10331                    
10332                </li>
10333            
10334                <li class="arg">
10335                    
10336                        <code>y0</code>
10337                    
10338                </li>
10339            
10340                <li class="arg">
10341                    
10342                        <code>r0</code>
10343                    
10344                </li>
10345            
10346                <li class="arg">
10347                    
10348                        <code>x1</code>
10349                    
10350                </li>
10351            
10352                <li class="arg">
10353                    
10354                        <code>y1</code>
10355                    
10356                </li>
10357            
10358                <li class="arg">
10359                    
10360                        <code>r1</code>
10361                    
10362                </li>
10363            
10364            </ul><span class="paren">)</span>
10365        </div>
10366    
10367
10368    
10369        <span class="returns-inline">
10370            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
10371        </span>
10372    
10373
10374    
10375
10376    
10377        <span class="flag protected">protected</span>
10378    
10379
10380    
10381
10382    
10383
10384    
10385        <span class="flag chainable">chainable</span>
10386    
10387
10388    
10389
10390    <div class="meta">
10391        
10392            
10393                
10394                <p>
10395                
10396                Defined in
10397                
10398            
10399        
10400        
10401        <a href="../files/easeljs_display_Graphics.js.html#l1302"><code>rf:1302</code></a>
10402        
10403        </p>
10404
10405
10406        
10407
10408        
10409    </div>
10410
10411    <div class="description">
10412        <p>Shortcut to beginRadialGradientFill.</p>
10413
10414    </div>
10415
10416    
10417        <div class="params">
10418            <h4>Parameters:</h4>
10419
10420            <ul class="params-list">
10421            
10422                <li class="param">
10423                    
10424                        <code class="param-name">colors</code>
10425                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
10426                    
10427
10428                    
10429
10430                    <div class="param-description">
10431                        <p>An array of CSS compatible color values. For example, ["#F00","#00F"] would define
10432a gradient drawing from red to blue.</p>
10433
10434                    </div>
10435
10436                    
10437                </li>
10438            
10439                <li class="param">
10440                    
10441                        <code class="param-name">ratios</code>
10442                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
10443                    
10444
10445                    
10446
10447                    <div class="param-description">
10448                        <p>An array of gradient positions which correspond to the colors. For example, [0.1,
104490.9] would draw the first color to 10% then interpolating to the second color at 90%.</p>
10450
10451                    </div>
10452
10453                    
10454                </li>
10455            
10456                <li class="param">
10457                    
10458                        <code class="param-name">x0</code>
10459                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10460                    
10461
10462                    
10463
10464                    <div class="param-description">
10465                        <p>Center position of the inner circle that defines the gradient.</p>
10466
10467                    </div>
10468
10469                    
10470                </li>
10471            
10472                <li class="param">
10473                    
10474                        <code class="param-name">y0</code>
10475                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10476                    
10477
10478                    
10479
10480                    <div class="param-description">
10481                        <p>Center position of the inner circle that defines the gradient.</p>
10482
10483                    </div>
10484
10485                    
10486                </li>
10487            
10488                <li class="param">
10489                    
10490                        <code class="param-name">r0</code>
10491                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10492                    
10493
10494                    
10495
10496                    <div class="param-description">
10497                        <p>Radius of the inner circle that defines the gradient.</p>
10498
10499                    </div>
10500
10501                    
10502                </li>
10503            
10504                <li class="param">
10505                    
10506                        <code class="param-name">x1</code>
10507                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10508                    
10509
10510                    
10511
10512                    <div class="param-description">
10513                        <p>Center position of the outer circle that defines the gradient.</p>
10514
10515                    </div>
10516
10517                    
10518                </li>
10519            
10520                <li class="param">
10521                    
10522                        <code class="param-name">y1</code>
10523                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10524                    
10525
10526                    
10527
10528                    <div class="param-description">
10529                        <p>Center position of the outer circle that defines the gradient.</p>
10530
10531                    </div>
10532
10533                    
10534                </li>
10535            
10536                <li class="param">
10537                    
10538                        <code class="param-name">r1</code>
10539                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10540                    
10541
10542                    
10543
10544                    <div class="param-description">
10545                        <p>Radius of the outer circle that defines the gradient.</p>
10546
10547                    </div>
10548
10549                    
10550                </li>
10551            
10552            </ul>
10553        </div>
10554    
10555
10556    
10557        <div class="returns">
10558            <h4>Returns:</h4>
10559
10560            <div class="returns-description">
10561                
10562                    
10563                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
10564                    
10565                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
10566
10567                
10568            </div>
10569        </div>
10570    
10571
10572    
10573</div>
10574
10575                
10576                    <div id="method_rr" class="method item protected">
10577    <h3 class="name"><code>rr</code></h3>
10578
10579    
10580        <div class="args">
10581            <span class="paren">(</span><ul class="args-list inline commas">
10582            
10583                <li class="arg">
10584                    
10585                        <code>x</code>
10586                    
10587                </li>
10588            
10589                <li class="arg">
10590                    
10591                        <code>y</code>
10592                    
10593                </li>
10594            
10595                <li class="arg">
10596                    
10597                        <code>w</code>
10598                    
10599                </li>
10600            
10601                <li class="arg">
10602                    
10603                        <code>h</code>
10604                    
10605                </li>
10606            
10607                <li class="arg">
10608                    
10609                        <code>radius</code>
10610                    
10611                </li>
10612            
10613            </ul><span class="paren">)</span>
10614        </div>
10615    
10616
10617    
10618        <span class="returns-inline">
10619            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
10620        </span>
10621    
10622
10623    
10624
10625    
10626        <span class="flag protected">protected</span>
10627    
10628
10629    
10630
10631    
10632
10633    
10634        <span class="flag chainable">chainable</span>
10635    
10636
10637    
10638
10639    <div class="meta">
10640        
10641            
10642                
10643                <p>
10644                
10645                Defined in
10646                
10647            
10648        
10649        
10650        <a href="../files/easeljs_display_Graphics.js.html#l1462"><code>rr:1462</code></a>
10651        
10652        </p>
10653
10654
10655        
10656
10657        
10658    </div>
10659
10660    <div class="description">
10661        <p>Shortcut to drawRoundRect.</p>
10662
10663    </div>
10664
10665    
10666        <div class="params">
10667            <h4>Parameters:</h4>
10668
10669            <ul class="params-list">
10670            
10671                <li class="param">
10672                    
10673                        <code class="param-name">x</code>
10674                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10675                    
10676
10677                    
10678
10679                    <div class="param-description">
10680                         
10681                    </div>
10682
10683                    
10684                </li>
10685            
10686                <li class="param">
10687                    
10688                        <code class="param-name">y</code>
10689                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10690                    
10691
10692                    
10693
10694                    <div class="param-description">
10695                         
10696                    </div>
10697
10698                    
10699                </li>
10700            
10701                <li class="param">
10702                    
10703                        <code class="param-name">w</code>
10704                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10705                    
10706
10707                    
10708
10709                    <div class="param-description">
10710                         
10711                    </div>
10712
10713                    
10714                </li>
10715            
10716                <li class="param">
10717                    
10718                        <code class="param-name">h</code>
10719                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10720                    
10721
10722                    
10723
10724                    <div class="param-description">
10725                         
10726                    </div>
10727
10728                    
10729                </li>
10730            
10731                <li class="param">
10732                    
10733                        <code class="param-name">radius</code>
10734                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10735                    
10736
10737                    
10738
10739                    <div class="param-description">
10740                        <p>Corner radius.</p>
10741
10742                    </div>
10743
10744                    
10745                </li>
10746            
10747            </ul>
10748        </div>
10749    
10750
10751    
10752        <div class="returns">
10753            <h4>Returns:</h4>
10754
10755            <div class="returns-description">
10756                
10757                    
10758                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
10759                    
10760                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
10761
10762                
10763            </div>
10764        </div>
10765    
10766
10767    
10768</div>
10769
10770                
10771                    <div id="method_rs" class="method item protected">
10772    <h3 class="name"><code>rs</code></h3>
10773
10774    
10775        <div class="args">
10776            <span class="paren">(</span><ul class="args-list inline commas">
10777            
10778                <li class="arg">
10779                    
10780                        <code>colors</code>
10781                    
10782                </li>
10783            
10784                <li class="arg">
10785                    
10786                        <code>ratios</code>
10787                    
10788                </li>
10789            
10790                <li class="arg">
10791                    
10792                        <code>x0</code>
10793                    
10794                </li>
10795            
10796                <li class="arg">
10797                    
10798                        <code>y0</code>
10799                    
10800                </li>
10801            
10802                <li class="arg">
10803                    
10804                        <code>r0</code>
10805                    
10806                </li>
10807            
10808                <li class="arg">
10809                    
10810                        <code>x1</code>
10811                    
10812                </li>
10813            
10814                <li class="arg">
10815                    
10816                        <code>y1</code>
10817                    
10818                </li>
10819            
10820                <li class="arg">
10821                    
10822                        <code>r1</code>
10823                    
10824                </li>
10825            
10826            </ul><span class="paren">)</span>
10827        </div>
10828    
10829
10830    
10831        <span class="returns-inline">
10832            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
10833        </span>
10834    
10835
10836    
10837
10838    
10839        <span class="flag protected">protected</span>
10840    
10841
10842    
10843
10844    
10845
10846    
10847        <span class="flag chainable">chainable</span>
10848    
10849
10850    
10851
10852    <div class="meta">
10853        
10854            
10855                
10856                <p>
10857                
10858                Defined in
10859                
10860            
10861        
10862        
10863        <a href="../files/easeljs_display_Graphics.js.html#l1407"><code>rs:1407</code></a>
10864        
10865        </p>
10866
10867
10868        
10869
10870        
10871    </div>
10872
10873    <div class="description">
10874        <p>Shortcut to beginRadialGradientStroke.</p>
10875
10876    </div>
10877
10878    
10879        <div class="params">
10880            <h4>Parameters:</h4>
10881
10882            <ul class="params-list">
10883            
10884                <li class="param">
10885                    
10886                        <code class="param-name">colors</code>
10887                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
10888                    
10889
10890                    
10891
10892                    <div class="param-description">
10893                        <p>An array of CSS compatible color values. For example, ["#F00","#00F"] would define
10894a gradient drawing from red to blue.</p>
10895
10896                    </div>
10897
10898                    
10899                </li>
10900            
10901                <li class="param">
10902                    
10903                        <code class="param-name">ratios</code>
10904                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
10905                    
10906
10907                    
10908
10909                    <div class="param-description">
10910                        <p>An array of gradient positions which correspond to the colors. For example, [0.1,
109110.9] would draw the first color to 10% then interpolating to the second color at 90%, then draw the second color
10912to 100%.</p>
10913
10914                    </div>
10915
10916                    
10917                </li>
10918            
10919                <li class="param">
10920                    
10921                        <code class="param-name">x0</code>
10922                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10923                    
10924
10925                    
10926
10927                    <div class="param-description">
10928                        <p>Center position of the inner circle that defines the gradient.</p>
10929
10930                    </div>
10931
10932                    
10933                </li>
10934            
10935                <li class="param">
10936                    
10937                        <code class="param-name">y0</code>
10938                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10939                    
10940
10941                    
10942
10943                    <div class="param-description">
10944                        <p>Center position of the inner circle that defines the gradient.</p>
10945
10946                    </div>
10947
10948                    
10949                </li>
10950            
10951                <li class="param">
10952                    
10953                        <code class="param-name">r0</code>
10954                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10955                    
10956
10957                    
10958
10959                    <div class="param-description">
10960                        <p>Radius of the inner circle that defines the gradient.</p>
10961
10962                    </div>
10963
10964                    
10965                </li>
10966            
10967                <li class="param">
10968                    
10969                        <code class="param-name">x1</code>
10970                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10971                    
10972
10973                    
10974
10975                    <div class="param-description">
10976                        <p>Center position of the outer circle that defines the gradient.</p>
10977
10978                    </div>
10979
10980                    
10981                </li>
10982            
10983                <li class="param">
10984                    
10985                        <code class="param-name">y1</code>
10986                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
10987                    
10988
10989                    
10990
10991                    <div class="param-description">
10992                        <p>Center position of the outer circle that defines the gradient.</p>
10993
10994                    </div>
10995
10996                    
10997                </li>
10998            
10999                <li class="param">
11000                    
11001                        <code class="param-name">r1</code>
11002                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
11003                    
11004
11005                    
11006
11007                    <div class="param-description">
11008                        <p>Radius of the outer circle that defines the gradient.</p>
11009
11010                    </div>
11011
11012                    
11013                </li>
11014            
11015            </ul>
11016        </div>
11017    
11018
11019    
11020        <div class="returns">
11021            <h4>Returns:</h4>
11022
11023            <div class="returns-description">
11024                
11025                    
11026                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
11027                    
11028                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
11029
11030                
11031            </div>
11032        </div>
11033    
11034
11035    
11036</div>
11037
11038                
11039                    <div id="method_s" class="method item protected">
11040    <h3 class="name"><code>s</code></h3>
11041
11042    
11043        <div class="args">
11044            <span class="paren">(</span><ul class="args-list inline commas">
11045            
11046                <li class="arg">
11047                    
11048                        <code>color</code>
11049                    
11050                </li>
11051            
11052            </ul><span class="paren">)</span>
11053        </div>
11054    
11055
11056    
11057        <span class="returns-inline">
11058            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
11059        </span>
11060    
11061
11062    
11063
11064    
11065        <span class="flag protected">protected</span>
11066    
11067
11068    
11069
11070    
11071
11072    
11073        <span class="flag chainable">chainable</span>
11074    
11075
11076    
11077
11078    <div class="meta">
11079        
11080            
11081                
11082                <p>
11083                
11084                Defined in
11085                
11086            
11087        
11088        
11089        <a href="../files/easeljs_display_Graphics.js.html#l1379"><code>s:1379</code></a>
11090        
11091        </p>
11092
11093
11094        
11095
11096        
11097    </div>
11098
11099    <div class="description">
11100        <p>Shortcut to beginStroke.</p>
11101
11102    </div>
11103
11104    
11105        <div class="params">
11106            <h4>Parameters:</h4>
11107
11108            <ul class="params-list">
11109            
11110                <li class="param">
11111                    
11112                        <code class="param-name">color</code>
11113                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
11114                    
11115
11116                    
11117
11118                    <div class="param-description">
11119                        <p>A CSS compatible color value (ex. "#FF0000", "red", or "rgba(255,0,0,0.5)"). Setting to
11120null will result in no stroke.</p>
11121
11122                    </div>
11123
11124                    
11125                </li>
11126            
11127            </ul>
11128        </div>
11129    
11130
11131    
11132        <div class="returns">
11133            <h4>Returns:</h4>
11134
11135            <div class="returns-description">
11136                
11137                    
11138                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
11139                    
11140                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
11141
11142                
11143            </div>
11144        </div>
11145    
11146
11147    
11148</div>
11149
11150                
11151                    <div id="method_sd" class="method item protected">
11152    <h3 class="name"><code>sd</code></h3>
11153
11154    
11155        <div class="args">
11156            <span class="paren">(</span><ul class="args-list inline commas">
11157            
11158                <li class="arg">
11159                    
11160                        <code class="optional">[segments]</code>
11161                    
11162                </li>
11163            
11164                <li class="arg">
11165                    
11166                        <code class="optional">[offset=0]</code>
11167                    
11168                </li>
11169            
11170            </ul><span class="paren">)</span>
11171        </div>
11172    
11173
11174    
11175        <span class="returns-inline">
11176            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
11177        </span>
11178    
11179
11180    
11181
11182    
11183        <span class="flag protected">protected</span>
11184    
11185
11186    
11187
11188    
11189
11190    
11191        <span class="flag chainable">chainable</span>
11192    
11193
11194    
11195
11196    <div class="meta">
11197        
11198            
11199                
11200                <p>
11201                
11202                Defined in
11203                
11204            
11205        
11206        
11207        <a href="../files/easeljs_display_Graphics.js.html#l1366"><code>sd:1366</code></a>
11208        
11209        </p>
11210
11211
11212        
11213
11214        
11215    </div>
11216
11217    <div class="description">
11218        <p>Shortcut to setStrokeDash.</p>
11219
11220    </div>
11221
11222    
11223        <div class="params">
11224            <h4>Parameters:</h4>
11225
11226            <ul class="params-list">
11227            
11228                <li class="param">
11229                    
11230                        <code class="param-name optional">[segments]</code>
11231                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
11232                        <span class="flag optional" title="This parameter is optional.">optional</span>
11233                    
11234
11235                    
11236
11237                    <div class="param-description">
11238                        <p>An array specifying the dash pattern, alternating between line and gap.
11239For example, [20,10] would create a pattern of 20 pixel lines with 10 pixel gaps between them.
11240Passing null or an empty array will clear any existing dash.</p>
11241
11242                    </div>
11243
11244                    
11245                </li>
11246            
11247                <li class="param">
11248                    
11249                        <code class="param-name optional">[offset=0]</code>
11250                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
11251                        <span class="flag optional" title="This parameter is optional.">optional</span>
11252                    
11253
11254                    
11255
11256                    <div class="param-description">
11257                        <p>The offset of the dash pattern. For example, you could increment this value to create a "marching ants" effect.</p>
11258
11259                    </div>
11260
11261                    
11262                </li>
11263            
11264            </ul>
11265        </div>
11266    
11267
11268    
11269        <div class="returns">
11270            <h4>Returns:</h4>
11271
11272            <div class="returns-description">
11273                
11274                    
11275                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
11276                    
11277                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
11278
11279                
11280            </div>
11281        </div>
11282    
11283
11284    
11285</div>
11286
11287                
11288                    <div id="method_setStrokeDash" class="method item">
11289    <h3 class="name"><code>setStrokeDash</code></h3>
11290
11291    
11292        <div class="args">
11293            <span class="paren">(</span><ul class="args-list inline commas">
11294            
11295                <li class="arg">
11296                    
11297                        <code class="optional">[segments]</code>
11298                    
11299                </li>
11300            
11301                <li class="arg">
11302                    
11303                        <code class="optional">[offset=0]</code>
11304                    
11305                </li>
11306            
11307            </ul><span class="paren">)</span>
11308        </div>
11309    
11310
11311    
11312        <span class="returns-inline">
11313            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
11314        </span>
11315    
11316
11317    
11318
11319    
11320
11321    
11322
11323    
11324
11325    
11326        <span class="flag chainable">chainable</span>
11327    
11328
11329    
11330
11331    <div class="meta">
11332        
11333            
11334                
11335                <p>
11336                
11337                Defined in
11338                
11339            
11340        
11341        
11342        <a href="../files/easeljs_display_Graphics.js.html#l725"><code>setStrokeDash:725</code></a>
11343        
11344        </p>
11345
11346
11347        
11348
11349        
11350    </div>
11351
11352    <div class="description">
11353        <p>Sets or clears the stroke dash pattern.</p>
11354<pre class="code prettyprint"><code>myGraphics.setStrokeDash([20, 10], 0);</code></pre>
11355<p>A tiny API method <code>sd</code> also exists.</p>
11356
11357    </div>
11358
11359    
11360        <div class="params">
11361            <h4>Parameters:</h4>
11362
11363            <ul class="params-list">
11364            
11365                <li class="param">
11366                    
11367                        <code class="param-name optional">[segments]</code>
11368                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
11369                        <span class="flag optional" title="This parameter is optional.">optional</span>
11370                    
11371
11372                    
11373
11374                    <div class="param-description">
11375                        <p>An array specifying the dash pattern, alternating between line and gap.
11376For example, <code>[20,10]</code> would create a pattern of 20 pixel lines with 10 pixel gaps between them.
11377Passing null or an empty array will clear the existing stroke dash.</p>
11378
11379                    </div>
11380
11381                    
11382                </li>
11383            
11384                <li class="param">
11385                    
11386                        <code class="param-name optional">[offset=0]</code>
11387                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
11388                        <span class="flag optional" title="This parameter is optional.">optional</span>
11389                    
11390
11391                    
11392
11393                    <div class="param-description">
11394                        <p>The offset of the dash pattern. For example, you could increment this value to create a "marching ants" effect.</p>
11395
11396                    </div>
11397
11398                    
11399                </li>
11400            
11401            </ul>
11402        </div>
11403    
11404
11405    
11406        <div class="returns">
11407            <h4>Returns:</h4>
11408
11409            <div class="returns-description">
11410                
11411                    
11412                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
11413                    
11414                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
11415
11416                
11417            </div>
11418        </div>
11419    
11420
11421    
11422</div>
11423
11424                
11425                    <div id="method_setStrokeStyle" class="method item">
11426    <h3 class="name"><code>setStrokeStyle</code></h3>
11427
11428    
11429        <div class="args">
11430            <span class="paren">(</span><ul class="args-list inline commas">
11431            
11432                <li class="arg">
11433                    
11434                        <code>thickness</code>
11435                    
11436                </li>
11437            
11438                <li class="arg">
11439                    
11440                        <code class="optional">[caps=0]</code>
11441                    
11442                </li>
11443            
11444                <li class="arg">
11445                    
11446                        <code class="optional">[joints=0]</code>
11447                    
11448                </li>
11449            
11450                <li class="arg">
11451                    
11452                        <code class="optional">[miterLimit=10]</code>
11453                    
11454                </li>
11455            
11456                <li class="arg">
11457                    
11458                        <code class="optional">[ignoreScale=false]</code>
11459                    
11460                </li>
11461            
11462            </ul><span class="paren">)</span>
11463        </div>
11464    
11465
11466    
11467        <span class="returns-inline">
11468            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
11469        </span>
11470    
11471
11472    
11473
11474    
11475
11476    
11477
11478    
11479
11480    
11481        <span class="flag chainable">chainable</span>
11482    
11483
11484    
11485
11486    <div class="meta">
11487        
11488            
11489                
11490                <p>
11491                
11492                Defined in
11493                
11494            
11495        
11496        
11497        <a href="../files/easeljs_display_Graphics.js.html#l693"><code>setStrokeStyle:693</code></a>
11498        
11499        </p>
11500
11501
11502        
11503
11504        
11505    </div>
11506
11507    <div class="description">
11508        <p>Sets the stroke style. Like all drawing methods, this can be chained, so you can define
11509the stroke style and color in a single line of code like so:</p>
11510<pre class="code prettyprint"><code>myGraphics.setStrokeStyle(8,"round").beginStroke("#F00");</code></pre>
11511<p>A tiny API method "ss" also exists.</p>
11512
11513    </div>
11514
11515    
11516        <div class="params">
11517            <h4>Parameters:</h4>
11518
11519            <ul class="params-list">
11520            
11521                <li class="param">
11522                    
11523                        <code class="param-name">thickness</code>
11524                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
11525                    
11526
11527                    
11528
11529                    <div class="param-description">
11530                        <p>The width of the stroke.</p>
11531
11532                    </div>
11533
11534                    
11535                </li>
11536            
11537                <li class="param">
11538                    
11539                        <code class="param-name optional">[caps=0]</code>
11540                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
11541                        <span class="flag optional" title="This parameter is optional.">optional</span>
11542                    
11543
11544                    
11545
11546                    <div class="param-description">
11547                        <p>Indicates the type of caps to use at the end of lines. One of butt,
11548round, or square. Defaults to "butt". Also accepts the values 0 (butt), 1 (round), and 2 (square) for use with
11549the tiny API.</p>
11550
11551                    </div>
11552
11553                    
11554                </li>
11555            
11556                <li class="param">
11557                    
11558                        <code class="param-name optional">[joints=0]</code>
11559                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
11560                        <span class="flag optional" title="This parameter is optional.">optional</span>
11561                    
11562
11563                    
11564
11565                    <div class="param-description">
11566                        <p>Specifies the type of joints that should be used where two lines meet.
11567One of bevel, round, or miter. Defaults to "miter". Also accepts the values 0 (miter), 1 (round), and 2 (bevel)
11568for use with the tiny API.</p>
11569
11570                    </div>
11571
11572                    
11573                </li>
11574            
11575                <li class="param">
11576                    
11577                        <code class="param-name optional">[miterLimit=10]</code>
11578                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
11579                        <span class="flag optional" title="This parameter is optional.">optional</span>
11580                    
11581
11582                    
11583
11584                    <div class="param-description">
11585                        <p>If joints is set to "miter", then you can specify a miter limit ratio which
11586controls at what point a mitered joint will be clipped.</p>
11587
11588                    </div>
11589
11590                    
11591                </li>
11592            
11593                <li class="param">
11594                    
11595                        <code class="param-name optional">[ignoreScale=false]</code>
11596                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
11597                        <span class="flag optional" title="This parameter is optional.">optional</span>
11598                    
11599
11600                    
11601
11602                    <div class="param-description">
11603                        <p>If true, the stroke will be drawn at the specified thickness regardless
11604of active transformations.</p>
11605
11606                    </div>
11607
11608                    
11609                </li>
11610            
11611            </ul>
11612        </div>
11613    
11614
11615    
11616        <div class="returns">
11617            <h4>Returns:</h4>
11618
11619            <div class="returns-description">
11620                
11621                    
11622                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
11623                    
11624                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
11625
11626                
11627            </div>
11628        </div>
11629    
11630
11631    
11632</div>
11633
11634                
11635                    <div id="method_ss" class="method item protected">
11636    <h3 class="name"><code>ss</code></h3>
11637
11638    
11639        <div class="args">
11640            <span class="paren">(</span><ul class="args-list inline commas">
11641            
11642                <li class="arg">
11643                    
11644                        <code>thickness</code>
11645                    
11646                </li>
11647            
11648                <li class="arg">
11649                    
11650                        <code class="optional">[caps=0]</code>
11651                    
11652                </li>
11653            
11654                <li class="arg">
11655                    
11656                        <code class="optional">[joints=0]</code>
11657                    
11658                </li>
11659            
11660                <li class="arg">
11661                    
11662                        <code class="optional">[miterLimit=10]</code>
11663                    
11664                </li>
11665            
11666                <li class="arg">
11667                    
11668                        <code class="optional">[ignoreScale=false]</code>
11669                    
11670                </li>
11671            
11672            </ul><span class="paren">)</span>
11673        </div>
11674    
11675
11676    
11677        <span class="returns-inline">
11678            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
11679        </span>
11680    
11681
11682    
11683
11684    
11685        <span class="flag protected">protected</span>
11686    
11687
11688    
11689
11690    
11691
11692    
11693        <span class="flag chainable">chainable</span>
11694    
11695
11696    
11697
11698    <div class="meta">
11699        
11700            
11701                
11702                <p>
11703                
11704                Defined in
11705                
11706            
11707        
11708        
11709        <a href="../files/easeljs_display_Graphics.js.html#l1346"><code>ss:1346</code></a>
11710        
11711        </p>
11712
11713
11714        
11715
11716        
11717    </div>
11718
11719    <div class="description">
11720        <p>Shortcut to setStrokeStyle.</p>
11721
11722    </div>
11723
11724    
11725        <div class="params">
11726            <h4>Parameters:</h4>
11727
11728            <ul class="params-list">
11729            
11730                <li class="param">
11731                    
11732                        <code class="param-name">thickness</code>
11733                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
11734                    
11735
11736                    
11737
11738                    <div class="param-description">
11739                        <p>The width of the stroke.</p>
11740
11741                    </div>
11742
11743                    
11744                </li>
11745            
11746                <li class="param">
11747                    
11748                        <code class="param-name optional">[caps=0]</code>
11749                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
11750                        <span class="flag optional" title="This parameter is optional.">optional</span>
11751                    
11752
11753                    
11754
11755                    <div class="param-description">
11756                        <p>Indicates the type of caps to use at the end of lines. One of butt,
11757round, or square. Defaults to "butt". Also accepts the values 0 (butt), 1 (round), and 2 (square) for use with
11758the tiny API.</p>
11759
11760                    </div>
11761
11762                    
11763                </li>
11764            
11765                <li class="param">
11766                    
11767                        <code class="param-name optional">[joints=0]</code>
11768                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a> | <a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
11769                        <span class="flag optional" title="This parameter is optional.">optional</span>
11770                    
11771
11772                    
11773
11774                    <div class="param-description">
11775                        <p>Specifies the type of joints that should be used where two lines meet.
11776One of bevel, round, or miter. Defaults to "miter". Also accepts the values 0 (miter), 1 (round), and 2 (bevel)
11777for use with the tiny API.</p>
11778
11779                    </div>
11780
11781                    
11782                </li>
11783            
11784                <li class="param">
11785                    
11786                        <code class="param-name optional">[miterLimit=10]</code>
11787                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
11788                        <span class="flag optional" title="This parameter is optional.">optional</span>
11789                    
11790
11791                    
11792
11793                    <div class="param-description">
11794                        <p>If joints is set to "miter", then you can specify a miter limit ratio which
11795controls at what point a mitered joint will be clipped.</p>
11796
11797                    </div>
11798
11799                    
11800                </li>
11801            
11802                <li class="param">
11803                    
11804                        <code class="param-name optional">[ignoreScale=false]</code>
11805                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
11806                        <span class="flag optional" title="This parameter is optional.">optional</span>
11807                    
11808
11809                    
11810
11811                    <div class="param-description">
11812                        <p>If true, the stroke will be drawn at the specified thickness regardless
11813of active transformations.</p>
11814
11815                    </div>
11816
11817                    
11818                </li>
11819            
11820            </ul>
11821        </div>
11822    
11823
11824    
11825        <div class="returns">
11826            <h4>Returns:</h4>
11827
11828            <div class="returns-description">
11829                
11830                    
11831                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
11832                    
11833                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
11834
11835                
11836            </div>
11837        </div>
11838    
11839
11840    
11841</div>
11842
11843                
11844                    <div id="method_store" class="method item">
11845    <h3 class="name"><code>store</code></h3>
11846
11847    
11848        <span class="paren">()</span>
11849    
11850
11851    
11852        <span class="returns-inline">
11853            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
11854        </span>
11855    
11856
11857    
11858
11859    
11860
11861    
11862
11863    
11864
11865    
11866        <span class="flag chainable">chainable</span>
11867    
11868
11869    
11870
11871    <div class="meta">
11872        
11873            
11874                
11875                <p>
11876                
11877                Defined in
11878                
11879            
11880        
11881        
11882        <a href="../files/easeljs_display_Graphics.js.html#l1077"><code>store:1077</code></a>
11883        
11884        </p>
11885
11886
11887        
11888
11889        
11890    </div>
11891
11892    <div class="description">
11893        <p>Stores all graphics commands so they won&#39;t be executed in future draws. Calling store() a second time adds to
11894the existing store. This also affects <code>drawAsPath()</code>.</p>
11895<p>This is useful in cases where you are creating vector graphics in an iterative manner (ex. generative art), so
11896that only new graphics need to be drawn (which can provide huge performance benefits), but you wish to retain all
11897of the vector instructions for later use (ex. scaling, modifying, or exporting).</p>
11898<p>Note that calling store() will force the active path (if any) to be ended in a manner similar to changing
11899the fill or stroke.</p>
11900<p>For example, consider a application where the user draws lines with the mouse. As each line segment (or collection of
11901segments) are added to a Shape, it can be rasterized using <a href="../classes/DisplayObject.html#method_updateCache" class="crosslink">updateCache</a>,
11902and then stored, so that it can be redrawn at a different scale when the application is resized, or exported to SVG.</p>
11903<pre class="code prettyprint"><code>// set up cache:
11904myShape.cache(0,0,500,500,scale);
11905
11906// when the user drags, draw a new line:
11907myShape.graphics.moveTo(oldX,oldY).lineTo(newX,newY);
11908// then draw it into the existing cache:
11909myShape.updateCache("source-over");
11910// store the new line, so it isn&#39;t redrawn next time:
11911myShape.store();
11912
11913// then, when the window resizes, we can re-render at a different scale:
11914// first, unstore all our lines:
11915myShape.unstore();
11916// then cache using the new scale:
11917myShape.cache(0,0,500,500,newScale);
11918// finally, store the existing commands again:
11919myShape.store();</code></pre>
11920
11921    </div>
11922
11923    
11924
11925    
11926        <div class="returns">
11927            <h4>Returns:</h4>
11928
11929            <div class="returns-description">
11930                
11931                    
11932                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
11933                    
11934                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
11935
11936                
11937            </div>
11938        </div>
11939    
11940
11941    
11942</div>
11943
11944                
11945                    <div id="method_toString" class="method item">
11946    <h3 class="name"><code>toString</code></h3>
11947
11948    
11949        <span class="paren">()</span>
11950    
11951
11952    
11953        <span class="returns-inline">
11954            <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>
11955        </span>
11956    
11957
11958    
11959
11960    
11961
11962    
11963
11964    
11965
11966    
11967
11968    
11969
11970    <div class="meta">
11971        
11972            
11973                
11974                <p>
11975                
11976                Defined in
11977                
11978            
11979        
11980        
11981        <a href="../files/easeljs_display_Graphics.js.html#l1154"><code>toString:1154</code></a>
11982        
11983        </p>
11984
11985
11986        
11987
11988        
11989    </div>
11990
11991    <div class="description">
11992        <p>Returns a string representation of this object.</p>
11993
11994    </div>
11995
11996    
11997
11998    
11999        <div class="returns">
12000            <h4>Returns:</h4>
12001
12002            <div class="returns-description">
12003                
12004                    
12005                        <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/String" class="crosslink external" target="_blank">String</a></span>:
12006                    
12007                    <p>a string representation of the instance.</p>
12008
12009                
12010            </div>
12011        </div>
12012    
12013
12014    
12015</div>
12016
12017                
12018                    <div id="method_unstore" class="method item">
12019    <h3 class="name"><code>unstore</code></h3>
12020
12021    
12022        <span class="paren">()</span>
12023    
12024
12025    
12026        <span class="returns-inline">
12027            <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>
12028        </span>
12029    
12030
12031    
12032
12033    
12034
12035    
12036
12037    
12038
12039    
12040        <span class="flag chainable">chainable</span>
12041    
12042
12043    
12044
12045    <div class="meta">
12046        
12047            
12048                
12049                <p>
12050                
12051                Defined in
12052                
12053            
12054        
12055        
12056        <a href="../files/easeljs_display_Graphics.js.html#l1120"><code>unstore:1120</code></a>
12057        
12058        </p>
12059
12060
12061        
12062
12063        
12064    </div>
12065
12066    <div class="description">
12067        <p>Unstores any graphics commands that were previously stored using <a href="../classes/Graphics.html#method_store" class="crosslink">store</a>
12068so that they will be executed in subsequent draw calls.</p>
12069
12070    </div>
12071
12072    
12073
12074    
12075        <div class="returns">
12076            <h4>Returns:</h4>
12077
12078            <div class="returns-description">
12079                
12080                    
12081                        <span class="type"><a href="../classes/Graphics.html" class="crosslink">Graphics</a></span>:
12082                    
12083                    <p>The Graphics instance the method is called on (useful for chaining calls.)</p>
12084
12085                
12086            </div>
12087        </div>
12088    
12089
12090    
12091</div>
12092
12093                
12094            </div>
12095        
12096
12097        
12098            <div id="properties" class="api-class-tabpanel">
12099                <h2 class="off-left">Properties</h2>
12100
12101                
12102                    <div id="property__activeInstructions" class="property item protected">
12103    <h3 class="name"><code>_activeInstructions</code></h3>
12104    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
12105
12106    
12107
12108    
12109        <span class="flag protected">protected</span>
12110    
12111
12112    
12113
12114    
12115
12116    
12117
12118    <div class="meta">
12119        
12120            
12121                
12122                <p>
12123                
12124                Defined in
12125                
12126            
12127        
12128        
12129        <a href="../files/easeljs_display_Graphics.js.html#l219"><code>_activeInstructions:219</code></a>
12130        
12131        </p>
12132
12133        
12134
12135        
12136    </div>
12137
12138    <div class="description">
12139        <p>Uncommitted instructions.</p>
12140
12141    </div>
12142
12143    
12144
12145    
12146
12147    
12148</div>
12149
12150                
12151                    <div id="property__commitIndex" class="property item protected">
12152    <h3 class="name"><code>_commitIndex</code></h3>
12153    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
12154
12155    
12156
12157    
12158        <span class="flag protected">protected</span>
12159    
12160
12161    
12162
12163    
12164
12165    
12166
12167    <div class="meta">
12168        
12169            
12170                
12171                <p>
12172                
12173                Defined in
12174                
12175            
12176        
12177        
12178        <a href="../files/easeljs_display_Graphics.js.html#l211"><code>_commitIndex:211</code></a>
12179        
12180        </p>
12181
12182        
12183
12184        
12185    </div>
12186
12187    <div class="description">
12188        <p>Indicates the last instruction index that was committed.</p>
12189
12190    </div>
12191
12192    
12193
12194    
12195
12196    
12197</div>
12198
12199                
12200                    <div id="property__ctx" class="property item protected">
12201    <h3 class="name"><code>_ctx</code></h3>
12202    <span class="type">CanvasRenderingContext2D</span>
12203
12204    
12205
12206    
12207        <span class="flag protected">protected</span>
12208    
12209
12210    
12211
12212    
12213        <span class="flag static">static</span>
12214    
12215
12216    
12217
12218    <div class="meta">
12219        
12220            
12221                
12222                <p>
12223                
12224                Defined in
12225                
12226            
12227        
12228        
12229        <a href="../files/easeljs_display_Graphics.js.html#l365"><code>_ctx:365</code></a>
12230        
12231        </p>
12232
12233        
12234
12235        
12236    </div>
12237
12238    <div class="description">
12239        
12240    </div>
12241
12242    
12243
12244    
12245
12246    
12247</div>
12248
12249                
12250                    <div id="property__dirty" class="property item protected">
12251    <h3 class="name"><code>_dirty</code></h3>
12252    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
12253
12254    
12255
12256    
12257        <span class="flag protected">protected</span>
12258    
12259
12260    
12261
12262    
12263
12264    
12265
12266    <div class="meta">
12267        
12268            
12269                
12270                <p>
12271                
12272                Defined in
12273                
12274            
12275        
12276        
12277        <a href="../files/easeljs_display_Graphics.js.html#l227"><code>_dirty:227</code></a>
12278        
12279        </p>
12280
12281        
12282
12283        
12284    </div>
12285
12286    <div class="description">
12287        <p>This indicates that there have been changes to the activeInstruction list since the last updateInstructions call.</p>
12288
12289    </div>
12290
12291    
12292        <p><strong>Default:</strong> false</p>
12293    
12294
12295    
12296
12297    
12298</div>
12299
12300                
12301                    <div id="property__fill" class="property item protected">
12302    <h3 class="name"><code>_fill</code></h3>
12303    <span class="type">Fill</span>
12304
12305    
12306
12307    
12308        <span class="flag protected">protected</span>
12309    
12310
12311    
12312
12313    
12314
12315    
12316
12317    <div class="meta">
12318        
12319            
12320                
12321                <p>
12322                
12323                Defined in
12324                
12325            
12326        
12327        
12328        <a href="../files/easeljs_display_Graphics.js.html#l197"><code>_fill:197</code></a>
12329        
12330        </p>
12331
12332        
12333
12334        
12335    </div>
12336
12337    <div class="description">
12338        
12339    </div>
12340
12341    
12342
12343    
12344
12345    
12346</div>
12347
12348                
12349                    <div id="property__instructions" class="property item protected">
12350    <h3 class="name"><code>_instructions</code></h3>
12351    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
12352
12353    
12354
12355    
12356        <span class="flag protected">protected</span>
12357    
12358
12359    
12360
12361    
12362
12363    
12364
12365    <div class="meta">
12366        
12367            
12368                
12369                <p>
12370                
12371                Defined in
12372                
12373            
12374        
12375        
12376        <a href="../files/easeljs_display_Graphics.js.html#l204"><code>_instructions:204</code></a>
12377        
12378        </p>
12379
12380        
12381
12382        
12383    </div>
12384
12385    <div class="description">
12386        
12387    </div>
12388
12389    
12390
12391    
12392
12393    
12394</div>
12395
12396                
12397                    <div id="property__oldStrokeDash" class="property item protected">
12398    <h3 class="name"><code>_oldStrokeDash</code></h3>
12399    <span class="type">StrokeDash</span>
12400
12401    
12402
12403    
12404        <span class="flag protected">protected</span>
12405    
12406
12407    
12408
12409    
12410
12411    
12412
12413    <div class="meta">
12414        
12415            
12416                
12417                <p>
12418                
12419                Defined in
12420                
12421            
12422        
12423        
12424        <a href="../files/easeljs_display_Graphics.js.html#l183"><code>_oldStrokeDash:183</code></a>
12425        
12426        </p>
12427
12428        
12429
12430        
12431    </div>
12432
12433    <div class="description">
12434        
12435    </div>
12436
12437    
12438
12439    
12440
12441    
12442</div>
12443
12444                
12445                    <div id="property__oldStrokeStyle" class="property item protected">
12446    <h3 class="name"><code>_oldStrokeStyle</code></h3>
12447    <span class="type">StrokeStyle</span>
12448
12449    
12450
12451    
12452        <span class="flag protected">protected</span>
12453    
12454
12455    
12456
12457    
12458
12459    
12460
12461    <div class="meta">
12462        
12463            
12464                
12465                <p>
12466                
12467                Defined in
12468                
12469            
12470        
12471        
12472        <a href="../files/easeljs_display_Graphics.js.html#l169"><code>_oldStrokeStyle:169</code></a>
12473        
12474        </p>
12475
12476        
12477
12478        
12479    </div>
12480
12481    <div class="description">
12482        
12483    </div>
12484
12485    
12486
12487    
12488
12489    
12490</div>
12491
12492                
12493                    <div id="property__storeIndex" class="property item protected">
12494    <h3 class="name"><code>_storeIndex</code></h3>
12495    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Number" class="crosslink external" target="_blank">Number</a></span>
12496
12497    
12498
12499    
12500        <span class="flag protected">protected</span>
12501    
12502
12503    
12504
12505    
12506
12507    
12508
12509    <div class="meta">
12510        
12511            
12512                
12513                <p>
12514                
12515                Defined in
12516                
12517            
12518        
12519        
12520        <a href="../files/easeljs_display_Graphics.js.html#l236"><code>_storeIndex:236</code></a>
12521        
12522        </p>
12523
12524        
12525
12526        
12527    </div>
12528
12529    <div class="description">
12530        <p>Index to draw from if a store operation has happened.</p>
12531
12532    </div>
12533
12534    
12535        <p><strong>Default:</strong> 0</p>
12536    
12537
12538    
12539
12540    
12541</div>
12542
12543                
12544                    <div id="property__stroke" class="property item protected">
12545    <h3 class="name"><code>_stroke</code></h3>
12546    <span class="type">Stroke</span>
12547
12548    
12549
12550    
12551        <span class="flag protected">protected</span>
12552    
12553
12554    
12555
12556    
12557
12558    
12559
12560    <div class="meta">
12561        
12562            
12563                
12564                <p>
12565                
12566                Defined in
12567                
12568            
12569        
12570        
12571        <a href="../files/easeljs_display_Graphics.js.html#l155"><code>_stroke:155</code></a>
12572        
12573        </p>
12574
12575        
12576
12577        
12578    </div>
12579
12580    <div class="description">
12581        
12582    </div>
12583
12584    
12585
12586    
12587
12588    
12589</div>
12590
12591                
12592                    <div id="property__strokeDash" class="property item protected">
12593    <h3 class="name"><code>_strokeDash</code></h3>
12594    <span class="type">StrokeDash</span>
12595
12596    
12597
12598    
12599        <span class="flag protected">protected</span>
12600    
12601
12602    
12603
12604    
12605
12606    
12607
12608    <div class="meta">
12609        
12610            
12611                
12612                <p>
12613                
12614                Defined in
12615                
12616            
12617        
12618        
12619        <a href="../files/easeljs_display_Graphics.js.html#l176"><code>_strokeDash:176</code></a>
12620        
12621        </p>
12622
12623        
12624
12625        
12626    </div>
12627
12628    <div class="description">
12629        
12630    </div>
12631
12632    
12633
12634    
12635
12636    
12637</div>
12638
12639                
12640                    <div id="property__strokeIgnoreScale" class="property item protected">
12641    <h3 class="name"><code>_strokeIgnoreScale</code></h3>
12642    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Boolean" class="crosslink external" target="_blank">Boolean</a></span>
12643
12644    
12645
12646    
12647        <span class="flag protected">protected</span>
12648    
12649
12650    
12651
12652    
12653
12654    
12655
12656    <div class="meta">
12657        
12658            
12659                
12660                <p>
12661                
12662                Defined in
12663                
12664            
12665        
12666        
12667        <a href="../files/easeljs_display_Graphics.js.html#l190"><code>_strokeIgnoreScale:190</code></a>
12668        
12669        </p>
12670
12671        
12672
12673        
12674    </div>
12675
12676    <div class="description">
12677        
12678    </div>
12679
12680    
12681
12682    
12683
12684    
12685</div>
12686
12687                
12688                    <div id="property__strokeStyle" class="property item protected">
12689    <h3 class="name"><code>_strokeStyle</code></h3>
12690    <span class="type">StrokeStyle</span>
12691
12692    
12693
12694    
12695        <span class="flag protected">protected</span>
12696    
12697
12698    
12699
12700    
12701
12702    
12703
12704    <div class="meta">
12705        
12706            
12707                
12708                <p>
12709                
12710                Defined in
12711                
12712            
12713        
12714        
12715        <a href="../files/easeljs_display_Graphics.js.html#l162"><code>_strokeStyle:162</code></a>
12716        
12717        </p>
12718
12719        
12720
12721        
12722    </div>
12723
12724    <div class="description">
12725        
12726    </div>
12727
12728    
12729
12730    
12731
12732    
12733</div>
12734
12735                
12736                    <div id="property_BASE_64" class="property item">
12737    <h3 class="name"><code>BASE_64</code></h3>
12738    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
12739
12740    
12741
12742    
12743
12744    
12745        <span class="flag final">final</span>
12746    
12747
12748    
12749        <span class="flag static">static</span>
12750    
12751
12752    
12753        <span class="flag readonly">readonly</span>
12754    
12755
12756    <div class="meta">
12757        
12758            
12759                
12760                <p>
12761                
12762                Defined in
12763                
12764            
12765        
12766        
12767        <a href="../files/easeljs_display_Graphics.js.html#l323"><code>BASE_64:323</code></a>
12768        
12769        </p>
12770
12771        
12772
12773        
12774    </div>
12775
12776    <div class="description">
12777        <p>Map of Base64 characters to values. Used by <a href="../classes/Graphics.html#method_decodePath" class="crosslink">decodePath</a>.</p>
12778
12779    </div>
12780
12781    
12782
12783    
12784
12785    
12786</div>
12787
12788                
12789                    <div id="property_beginCmd" class="property item">
12790    <h3 class="name"><code>beginCmd</code></h3>
12791    <span class="type"><a href="../classes/Graphics.BeginPath.html" class="crosslink">Graphics.BeginPath</a></span>
12792
12793    
12794
12795    
12796
12797    
12798
12799    
12800        <span class="flag static">static</span>
12801    
12802
12803    
12804
12805    <div class="meta">
12806        
12807            
12808                
12809                <p>
12810                
12811                Defined in
12812                
12813            
12814        
12815        
12816        <a href="../files/easeljs_display_Graphics.js.html#l314"><code>beginCmd:314</code></a>
12817        
12818        </p>
12819
12820        
12821
12822        
12823    </div>
12824
12825    <div class="description">
12826        <p>A reusable instance of Graphics/BeginPath to avoid
12827unnecessary instantiation.</p>
12828
12829    </div>
12830
12831    
12832
12833    
12834
12835    
12836</div>
12837
12838                
12839                    <div id="property_command" class="property item">
12840    <h3 class="name"><code>command</code></h3>
12841    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Object" class="crosslink external" target="_blank">Object</a></span>
12842
12843    
12844
12845    
12846
12847    
12848
12849    
12850
12851    
12852
12853    <div class="meta">
12854        
12855            
12856                
12857                <p>
12858                
12859                Defined in
12860                
12861            
12862        
12863        
12864        <a href="../files/easeljs_display_Graphics.js.html#l140"><code>command:140</code></a>
12865        
12866        </p>
12867
12868        
12869
12870        
12871    </div>
12872
12873    <div class="description">
12874        <p>Holds a reference to the last command that was created or appended. For example, you could retain a reference
12875to a Fill command in order to dynamically update the color later by using:</p>
12876<pre class="code prettyprint"><code>    var myFill = myGraphics.beginFill("red").command;
12877    // update color later:
12878    myFill.style = "yellow";</code></pre>
12879
12880    </div>
12881
12882    
12883
12884    
12885
12886    
12887</div>
12888
12889                
12890                    <div id="property_instructions" class="property item">
12891    <h3 class="name"><code>instructions</code></h3>
12892    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
12893
12894    
12895
12896    
12897
12898    
12899
12900    
12901
12902    
12903        <span class="flag readonly">readonly</span>
12904    
12905
12906    <div class="meta">
12907        
12908            
12909                
12910                <p>
12911                
12912                Defined in
12913                
12914            
12915        
12916        
12917        <a href="../files/easeljs_display_Graphics.js.html#l392"><code>instructions:392</code></a>
12918        
12919        </p>
12920
12921        
12922
12923        
12924    </div>
12925
12926    <div class="description">
12927        <p>Returns the graphics instructions array. Each entry is a graphics command object (ex. Graphics.Fill, Graphics.Rect)
12928Modifying the returned array directly is not recommended, and is likely to result in unexpected behaviour.</p>
12929<p>This property is mainly intended for introspection of the instructions (ex. for graphics export).</p>
12930
12931    </div>
12932
12933    
12934
12935    
12936
12937    
12938</div>
12939
12940                
12941                    <div id="property_STROKE_CAPS_MAP" class="property item">
12942    <h3 class="name"><code>STROKE_CAPS_MAP</code></h3>
12943    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
12944
12945    
12946
12947    
12948
12949    
12950        <span class="flag final">final</span>
12951    
12952
12953    
12954        <span class="flag static">static</span>
12955    
12956
12957    
12958        <span class="flag readonly">readonly</span>
12959    
12960
12961    <div class="meta">
12962        
12963            
12964                
12965                <p>
12966                
12967                Defined in
12968                
12969            
12970        
12971        
12972        <a href="../files/easeljs_display_Graphics.js.html#l333"><code>STROKE_CAPS_MAP:333</code></a>
12973        
12974        </p>
12975
12976        
12977
12978        
12979    </div>
12980
12981    <div class="description">
12982        <p>Maps numeric values for the caps parameter of <a href="../classes/Graphics.html#method_setStrokeStyle" class="crosslink">setStrokeStyle</a> to
12983corresponding string values. This is primarily for use with the tiny API. The mappings are as follows: 0 to
12984"butt", 1 to "round", and 2 to "square".
12985For example, to set the line caps to "square":</p>
12986<pre class="code prettyprint"><code> myGraphics.ss(16, 2);</code></pre>
12987
12988    </div>
12989
12990    
12991
12992    
12993
12994    
12995</div>
12996
12997                
12998                    <div id="property_STROKE_JOINTS_MAP" class="property item">
12999    <h3 class="name"><code>STROKE_JOINTS_MAP</code></h3>
13000    <span class="type"><a href="https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array" class="crosslink external" target="_blank">Array</a></span>
13001
13002    
13003
13004    
13005
13006    
13007        <span class="flag final">final</span>
13008    
13009
13010    
13011        <span class="flag static">static</span>
13012    
13013
13014    
13015        <span class="flag readonly">readonly</span>
13016    
13017
13018    <div class="meta">
13019        
13020            
13021                
13022                <p>
13023                
13024                Defined in
13025                
13026            
13027        
13028        
13029        <a href="../files/easeljs_display_Graphics.js.html#l349"><code>STROKE_JOINTS_MAP:349</code></a>
13030        
13031        </p>
13032
13033        
13034
13035        
13036    </div>
13037
13038    <div class="description">
13039        <p>Maps numeric values for the joints parameter of <a href="../classes/Graphics.html#method_setStrokeStyle" class="crosslink">setStrokeStyle</a> to
13040corresponding string values. This is primarily for use with the tiny API. The mappings are as follows: 0 to
13041"miter", 1 to "round", and 2 to "bevel".
13042For example, to set the line joints to "bevel":</p>
13043<pre class="code prettyprint"><code> myGraphics.ss(16, 0, 2);</code></pre>
13044
13045    </div>
13046
13047    
13048
13049    
13050
13051    
13052</div>
13053
13054                
13055            </div>
13056        
13057
13058        
13059
13060        
13061    </div>
13062</div>
13063
13064                    </div>
13065                </div>
13066            </div>
13067        </div>
13068    </div>
13069</div>
13070<script src="../assets/vendor/prettify/prettify-min.js"></script>
13071<script>prettyPrint();</script>
13072<script src="../assets/js/yui-prettify.js"></script>
13073<script src="../assets/../api.js"></script>
13074<script src="../assets/js/api-filter.js"></script>
13075<script src="../assets/js/api-list.js"></script>
13076<script src="../assets/js/api-search.js"></script>
13077<script src="../assets/js/apidocs.js"></script>
13078</body>
13079</html>