DSTEngine/hGameTest/node_modules/openfl/docs/pages/js/html/CanvasRenderingContext2D.html
2021-03-07 05:58:59 +01:00

40 lines
59 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en"><!-- use theme color or fallback -->
<!--use textcolor from settings, otherwise create a contrasting color to theme color-->
<head><meta charset="utf-8"/><link href="../../bootstrap/css/bootstrap.min.css" rel="stylesheet"/><link href="../../bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet"/><link href="../../bootstrap/css/bootstrap-select.min.css" rel="stylesheet"/><link href="http://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,400italic" rel="stylesheet" type="text/css"/><link href="http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,600,600italic,400" rel="stylesheet" type="text/css"/><link href="http://netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css" rel="stylesheet" type="text/css"/><script src="../../jquery-1.9.1.min.js"></script><script src="../../bootstrap/js/bootstrap.min.js"></script><script src="../../bootstrap/js/bootstrap-select.min.js"></script><link href="../../styles.css" rel="stylesheet"/><link href="../../haxe-nav.css" rel="stylesheet"/><script type="text/javascript">var dox = {rootPath: "../../",platforms: ["Neko","Android","Flash","iOS","macOS","Linux","HTML5","Windows"]};</script><script type="text/javascript" src="../../nav.js"></script><script type="text/javascript" src="../../index.js"></script><link rel="icon" href="../../favicon.ico" type="image/x-icon"></link><title>js.html.CanvasRenderingContext2D - API Reference</title><meta name="description" content="To get an object of this interface, call &lt;code&gt;getContext()&lt;/code&gt; on a &lt;code&gt;canvas element&lt;/code&gt;, supplying "2d" as the argument:"/></head><body><style>
a, code .type {
color: #24afc4;
}
.navbar .brand {
display: inline-block;
float: none;
text-shadow: 0 0 0 transparent;
}
.nav-list>.active>a.treeLink, .nav-list>.active>a.treeLink:hover, .nav-list>.active>a.treeLink:focus {
background: #24afc4;
color: #ffffff;
text-shadow: 0 0 0 transparent;
}
.navbar .container {
width: 940px ;
}
@media (max-width: 767px) {
.navbar .container {
width: auto;
}
}
@media (max-width: 979px) and (min-width: 768px) {
.navbar .container {
width: 724px;
}
}
@media (min-width: 1200px) {
.navbar .container {
width: 1170px;
}
}
.navbar .container img {
margin: 5px 0 0 4px;
}
</style><nav class="nav"><div class="navbar"><div class="navbar-inner" style="background:#FAFAFA; border-bottom:1px solid rgba(0,0,0,.09)"><div class="container"><a class="brand" href="http://www.openfl.org"><img alt="" src="http://www.openfl.org/images/logo.png"/></a><a class="brand" style="color:#777777" href="../../">API Reference</a></div></div></div></nav><div class="container main-content"><div class="row-fluid"><div class="span3"><div class="well sidebar-nav"><form class="form-search" id="searchForm"><div class="input-prepend input-block-level"><span class="add-on"><i class="icon-search"></i></span><input id="search" type="text" placeholder="Search" autocomplete="off"/></div></form><div class="dropdown"><select id="select-platform" class="selectpicker" title="Filter by platform" data-width="100%"><option value="all" selected="true">All Platforms</option><option>Neko</option><option>Android</option><option>Flash</option><option>iOS</option><option>macOS</option><option>Linux</option><option>HTML5</option><option>Windows</option></select></div></div><div class="well sidebar-nav"><div id="nav"></div></div></div><div class="span9"><div class="page-header"><h1><small>class</small> CanvasRenderingContext2D</h1><h4><small>package <a href="../../js/html/index.html">js.html</a></small></h4> <p class="availability"><hr/><em>Available on HTML5</em></p></div><div class="body"><div class="doc doc-main"><div class="indent"><p>To get an object of this interface, call <code>getContext()</code> on a <code>canvas element</code>, supplying "2d" as the argument:</p>
<p>Documentation <a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D">CanvasRenderingContext2D</a> by <a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D$history">Mozilla Contributors</a>, licensed under <a href="https://creativecommons.org/licenses/by-sa/2.5/">CC-BY-SA 2.5</a>.</p><p class="javadoc">See:</p><div class="indent inline-content"><p><a href="https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D">https://developer.mozilla.org/en-US/docs/Web/API/CanvasRenderingContext2D</a></p></div></div></div><h3 class="section">Variables</h3><div class="fields"><div class="field "><a name="canvas"></a><h3><p><code><span class="label">read only</span><a href="../../js/html/CanvasRenderingContext2D.html#canvas"><span class="identifier">canvas</span></a>:<a class="type" title="The HTMLCanvasElement interface provides properties and methods for manipulating the layout and presentation of canvas elements." href="../../js/html/CanvasElement.html">CanvasElement</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="fillStyle"></a><h3><p><code><a href="../../js/html/CanvasRenderingContext2D.html#fillStyle"><span class="identifier">fillStyle</span></a>:<a class="type" title="An abstract type allowing values to be either of T1 or T2 type." href="../../haxe/extern/EitherType.html">EitherType</a>&lt;<a class="type" title="The basic String class." href="../../String.html">String</a>, <a class="type" title="An abstract type allowing values to be either of T1 or T2 type." href="../../haxe/extern/EitherType.html">EitherType</a>&lt;<a class="type" title="The CanvasGradient interface represents an opaque object describing a gradient." href="../../js/html/CanvasGradient.html">CanvasGradient</a>, <a class="type" title="The CanvasPattern interface represents an opaque object describing a pattern, based on an image, a canvas or a video, created by the CanvasRenderingContext2D." href="../../js/html/CanvasPattern.html">CanvasPattern</a>&gt;&gt;</code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="filter"></a><h3><p><code><a href="../../js/html/CanvasRenderingContext2D.html#filter"><span class="identifier">filter</span></a>:<a class="type" title="The basic String class." href="../../String.html">String</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="font"></a><h3><p><code><a href="../../js/html/CanvasRenderingContext2D.html#font"><span class="identifier">font</span></a>:<a class="type" title="The basic String class." href="../../String.html">String</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="globalAlpha"></a><h3><p><code><a href="../../js/html/CanvasRenderingContext2D.html#globalAlpha"><span class="identifier">globalAlpha</span></a>:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="globalCompositeOperation"></a><h3><p><code><a href="../../js/html/CanvasRenderingContext2D.html#globalCompositeOperation"><span class="identifier">globalCompositeOperation</span></a>:<a class="type" title="The basic String class." href="../../String.html">String</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="imageSmoothingEnabled"></a><h3><p><code><a href="../../js/html/CanvasRenderingContext2D.html#imageSmoothingEnabled"><span class="identifier">imageSmoothingEnabled</span></a>:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="lineCap"></a><h3><p><code><a href="../../js/html/CanvasRenderingContext2D.html#lineCap"><span class="identifier">lineCap</span></a>:<a class="type" title="The basic String class." href="../../String.html">String</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="lineDashOffset"></a><h3><p><code><a href="../../js/html/CanvasRenderingContext2D.html#lineDashOffset"><span class="identifier">lineDashOffset</span></a>:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="lineJoin"></a><h3><p><code><a href="../../js/html/CanvasRenderingContext2D.html#lineJoin"><span class="identifier">lineJoin</span></a>:<a class="type" title="The basic String class." href="../../String.html">String</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="lineWidth"></a><h3><p><code><a href="../../js/html/CanvasRenderingContext2D.html#lineWidth"><span class="identifier">lineWidth</span></a>:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="miterLimit"></a><h3><p><code><a href="../../js/html/CanvasRenderingContext2D.html#miterLimit"><span class="identifier">miterLimit</span></a>:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="shadowBlur"></a><h3><p><code><a href="../../js/html/CanvasRenderingContext2D.html#shadowBlur"><span class="identifier">shadowBlur</span></a>:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="shadowColor"></a><h3><p><code><a href="../../js/html/CanvasRenderingContext2D.html#shadowColor"><span class="identifier">shadowColor</span></a>:<a class="type" title="The basic String class." href="../../String.html">String</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="shadowOffsetX"></a><h3><p><code><a href="../../js/html/CanvasRenderingContext2D.html#shadowOffsetX"><span class="identifier">shadowOffsetX</span></a>:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="shadowOffsetY"></a><h3><p><code><a href="../../js/html/CanvasRenderingContext2D.html#shadowOffsetY"><span class="identifier">shadowOffsetY</span></a>:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="strokeStyle"></a><h3><p><code><a href="../../js/html/CanvasRenderingContext2D.html#strokeStyle"><span class="identifier">strokeStyle</span></a>:<a class="type" title="An abstract type allowing values to be either of T1 or T2 type." href="../../haxe/extern/EitherType.html">EitherType</a>&lt;<a class="type" title="The basic String class." href="../../String.html">String</a>, <a class="type" title="An abstract type allowing values to be either of T1 or T2 type." href="../../haxe/extern/EitherType.html">EitherType</a>&lt;<a class="type" title="The CanvasGradient interface represents an opaque object describing a gradient." href="../../js/html/CanvasGradient.html">CanvasGradient</a>, <a class="type" title="The CanvasPattern interface represents an opaque object describing a pattern, based on an image, a canvas or a video, created by the CanvasRenderingContext2D." href="../../js/html/CanvasPattern.html">CanvasPattern</a>&gt;&gt;</code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="textAlign"></a><h3><p><code><a href="../../js/html/CanvasRenderingContext2D.html#textAlign"><span class="identifier">textAlign</span></a>:<a class="type" title="The basic String class." href="../../String.html">String</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="textBaseline"></a><h3><p><code><a href="../../js/html/CanvasRenderingContext2D.html#textBaseline"><span class="identifier">textBaseline</span></a>:<a class="type" title="The basic String class." href="../../String.html">String</a></code></p></h3><div class="doc"><p></p></div></div></div><h3 class="section">Methods</h3><div class="fields"><div class="field "><a name="addHitRegion"></a><h3><p><code><a href="#addHitRegion"><span class="identifier">addHitRegion</span></a> (<span style="white-space:nowrap">?options:<a class="type" title="" href="../../js/html/HitRegionOptions.html">HitRegionOptions</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></div></div><div class="field "><a name="arc"></a><h3><p><code><a href="#arc"><span class="identifier">arc</span></a> (<span style="white-space:nowrap">x:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">radius:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">startAngle:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">endAngle:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">anticlockwise:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a> = false</span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></div></div><div class="field "><a name="arcTo"></a><h3><p><code><a href="#arcTo"><span class="identifier">arcTo</span></a> (<span style="white-space:nowrap">x1:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y1:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">x2:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y2:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">radius:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></div></div><div class="field "><a name="beginPath"></a><h3><p><code><a href="#beginPath"><span class="identifier">beginPath</span></a> ():<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="bezierCurveTo"></a><h3><p><code><a href="#bezierCurveTo"><span class="identifier">bezierCurveTo</span></a> (<span style="white-space:nowrap">cp1x:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">cp1y:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">cp2x:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">cp2y:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">x:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="clearHitRegions"></a><h3><p><code><a href="#clearHitRegions"><span class="identifier">clearHitRegions</span></a> ():<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="clearRect"></a><h3><p><code><a href="#clearRect"><span class="identifier">clearRect</span></a> (<span style="white-space:nowrap">x:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">w:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">h:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="clip"></a><h3><p><code><a href="#clip"><span class="identifier">clip</span></a> (<span style="white-space:nowrap">path:<a class="type" title="The Path2D interface of the Canvas 2D API is used to declare paths that are then later used on CanvasRenderingContext2D objects." href="../../js/html/Path2D.html">Path2D</a>,</span> <span style="white-space:nowrap">winding:<a class="type" title="" href="../../js/html/CanvasWindingRule.html">CanvasWindingRule</a> = "nonzero"</span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p><p><code><a href="#clip"><span class="identifier">clip</span></a> (<span style="white-space:nowrap">winding:<a class="type" title="" href="../../js/html/CanvasWindingRule.html">CanvasWindingRule</a> = "nonzero"</span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="closePath"></a><h3><p><code><a href="#closePath"><span class="identifier">closePath</span></a> ():<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="createImageData"></a><h3><p><code><a href="#createImageData"><span class="identifier">createImageData</span></a> (<span style="white-space:nowrap">imagedata:<a class="type" title="The ImageData interface represents the underlying pixel data of an area of a canvas element." href="../../js/html/ImageData.html">ImageData</a></span>):<a class="type" title="The ImageData interface represents the underlying pixel data of an area of a canvas element." href="../../js/html/ImageData.html">ImageData</a></code></p><p><code><a href="#createImageData"><span class="identifier">createImageData</span></a> (<span style="white-space:nowrap">sw:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">sh:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The ImageData interface represents the underlying pixel data of an area of a canvas element." href="../../js/html/ImageData.html">ImageData</a></code></p></h3><div class="doc"><p class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></div></div><div class="field "><a name="createLinearGradient"></a><h3><p><code><a href="#createLinearGradient"><span class="identifier">createLinearGradient</span></a> (<span style="white-space:nowrap">x0:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y0:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">x1:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y1:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The CanvasGradient interface represents an opaque object describing a gradient." href="../../js/html/CanvasGradient.html">CanvasGradient</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="createPattern"></a><h3><p><code><a href="#createPattern"><span class="identifier">createPattern</span></a> (<span style="white-space:nowrap">image:<a class="type" title="An abstract type allowing values to be either of T1 or T2 type." href="../../haxe/extern/EitherType.html">EitherType</a>&lt;<a class="type" title="The HTMLImageElement interface provides special properties and methods  for manipulating the layout and presentation of img elements." href="../../js/html/ImageElement.html">ImageElement</a>, <a class="type" title="An abstract type allowing values to be either of T1 or T2 type." href="../../haxe/extern/EitherType.html">EitherType</a>&lt;<a class="type" title="The HTMLCanvasElement interface provides properties and methods for manipulating the layout and presentation of canvas elements." href="../../js/html/CanvasElement.html">CanvasElement</a>, <a class="type" title="An abstract type allowing values to be either of T1 or T2 type." href="../../haxe/extern/EitherType.html">EitherType</a>&lt;<a class="type" title="The HTMLVideoElement interface provides special properties and methods for manipulating video objects." href="../../js/html/VideoElement.html">VideoElement</a>, <a class="type" title="The ImageBitmap interface represents a bitmap image which can be drawn to a canvas without undue latency." href="../../js/html/ImageBitmap.html">ImageBitmap</a>&gt;&gt;&gt;,</span> <span style="white-space:nowrap">repetition:<a class="type" title="The basic String class." href="../../String.html">String</a></span>):<a class="type" title="The CanvasPattern interface represents an opaque object describing a pattern, based on an image, a canvas or a video, created by the CanvasRenderingContext2D." href="../../js/html/CanvasPattern.html">CanvasPattern</a></code></p></h3><div class="doc"><p class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></div></div><div class="field "><a name="createRadialGradient"></a><h3><p><code><a href="#createRadialGradient"><span class="identifier">createRadialGradient</span></a> (<span style="white-space:nowrap">x0:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y0:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">r0:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">x1:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y1:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">r1:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The CanvasGradient interface represents an opaque object describing a gradient." href="../../js/html/CanvasGradient.html">CanvasGradient</a></code></p></h3><div class="doc"><p class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></div></div><div class="field "><a name="drawCustomFocusRing"></a><h3><p><code><a href="#drawCustomFocusRing"><span class="identifier">drawCustomFocusRing</span></a> (<span style="white-space:nowrap">element:<a class="type" title="The HTMLElement interface represents any HTML element." href="../../js/html/Element.html">Element</a></span>):<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="drawFocusIfNeeded"></a><h3><p><code><a href="#drawFocusIfNeeded"><span class="identifier">drawFocusIfNeeded</span></a> (<span style="white-space:nowrap">element:<a class="type" title="The HTMLElement interface represents any HTML element." href="../../js/html/Element.html">Element</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></div></div><div class="field "><a name="drawImage"></a><h3><p><code><a href="#drawImage"><span class="identifier">drawImage</span></a> (<span style="white-space:nowrap">image:<a class="type" title="An abstract type allowing values to be either of T1 or T2 type." href="../../haxe/extern/EitherType.html">EitherType</a>&lt;<a class="type" title="The HTMLImageElement interface provides special properties and methods  for manipulating the layout and presentation of img elements." href="../../js/html/ImageElement.html">ImageElement</a>, <a class="type" title="An abstract type allowing values to be either of T1 or T2 type." href="../../haxe/extern/EitherType.html">EitherType</a>&lt;<a class="type" title="The HTMLCanvasElement interface provides properties and methods for manipulating the layout and presentation of canvas elements." href="../../js/html/CanvasElement.html">CanvasElement</a>, <a class="type" title="An abstract type allowing values to be either of T1 or T2 type." href="../../haxe/extern/EitherType.html">EitherType</a>&lt;<a class="type" title="The HTMLVideoElement interface provides special properties and methods for manipulating video objects." href="../../js/html/VideoElement.html">VideoElement</a>, <a class="type" title="The ImageBitmap interface represents a bitmap image which can be drawn to a canvas without undue latency." href="../../js/html/ImageBitmap.html">ImageBitmap</a>&gt;&gt;&gt;,</span> <span style="white-space:nowrap">sx:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">sy:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">sw:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">sh:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">dx:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">dy:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">dw:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">dh:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p><p><code><a href="#drawImage"><span class="identifier">drawImage</span></a> (<span style="white-space:nowrap">image:<a class="type" title="An abstract type allowing values to be either of T1 or T2 type." href="../../haxe/extern/EitherType.html">EitherType</a>&lt;<a class="type" title="The HTMLImageElement interface provides special properties and methods  for manipulating the layout and presentation of img elements." href="../../js/html/ImageElement.html">ImageElement</a>, <a class="type" title="An abstract type allowing values to be either of T1 or T2 type." href="../../haxe/extern/EitherType.html">EitherType</a>&lt;<a class="type" title="The HTMLCanvasElement interface provides properties and methods for manipulating the layout and presentation of canvas elements." href="../../js/html/CanvasElement.html">CanvasElement</a>, <a class="type" title="An abstract type allowing values to be either of T1 or T2 type." href="../../haxe/extern/EitherType.html">EitherType</a>&lt;<a class="type" title="The HTMLVideoElement interface provides special properties and methods for manipulating video objects." href="../../js/html/VideoElement.html">VideoElement</a>, <a class="type" title="The ImageBitmap interface represents a bitmap image which can be drawn to a canvas without undue latency." href="../../js/html/ImageBitmap.html">ImageBitmap</a>&gt;&gt;&gt;,</span> <span style="white-space:nowrap">dx:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">dy:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p><p><code><a href="#drawImage"><span class="identifier">drawImage</span></a> (<span style="white-space:nowrap">image:<a class="type" title="An abstract type allowing values to be either of T1 or T2 type." href="../../haxe/extern/EitherType.html">EitherType</a>&lt;<a class="type" title="The HTMLImageElement interface provides special properties and methods  for manipulating the layout and presentation of img elements." href="../../js/html/ImageElement.html">ImageElement</a>, <a class="type" title="An abstract type allowing values to be either of T1 or T2 type." href="../../haxe/extern/EitherType.html">EitherType</a>&lt;<a class="type" title="The HTMLCanvasElement interface provides properties and methods for manipulating the layout and presentation of canvas elements." href="../../js/html/CanvasElement.html">CanvasElement</a>, <a class="type" title="An abstract type allowing values to be either of T1 or T2 type." href="../../haxe/extern/EitherType.html">EitherType</a>&lt;<a class="type" title="The HTMLVideoElement interface provides special properties and methods for manipulating video objects." href="../../js/html/VideoElement.html">VideoElement</a>, <a class="type" title="The ImageBitmap interface represents a bitmap image which can be drawn to a canvas without undue latency." href="../../js/html/ImageBitmap.html">ImageBitmap</a>&gt;&gt;&gt;,</span> <span style="white-space:nowrap">dx:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">dy:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">dw:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">dh:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></div></div><div class="field "><a name="ellipse"></a><h3><p><code><a href="#ellipse"><span class="identifier">ellipse</span></a> (<span style="white-space:nowrap">x:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">radiusX:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">radiusY:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">rotation:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">startAngle:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">endAngle:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">anticlockwise:<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a> = false</span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></div></div><div class="field "><a name="fill"></a><h3><p><code><a href="#fill"><span class="identifier">fill</span></a> (<span style="white-space:nowrap">path:<a class="type" title="The Path2D interface of the Canvas 2D API is used to declare paths that are then later used on CanvasRenderingContext2D objects." href="../../js/html/Path2D.html">Path2D</a>,</span> <span style="white-space:nowrap">winding:<a class="type" title="" href="../../js/html/CanvasWindingRule.html">CanvasWindingRule</a> = "nonzero"</span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p><p><code><a href="#fill"><span class="identifier">fill</span></a> (<span style="white-space:nowrap">winding:<a class="type" title="" href="../../js/html/CanvasWindingRule.html">CanvasWindingRule</a> = "nonzero"</span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="fillRect"></a><h3><p><code><a href="#fillRect"><span class="identifier">fillRect</span></a> (<span style="white-space:nowrap">x:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">w:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">h:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="fillText"></a><h3><p><code><a href="#fillText"><span class="identifier">fillText</span></a> (<span style="white-space:nowrap">text:<a class="type" title="The basic String class." href="../../String.html">String</a>,</span> <span style="white-space:nowrap">x:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">?maxWidth:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></div></div><div class="field "><a name="getImageData"></a><h3><p><code><a href="#getImageData"><span class="identifier">getImageData</span></a> (<span style="white-space:nowrap">sx:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">sy:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">sw:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">sh:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The ImageData interface represents the underlying pixel data of an area of a canvas element." href="../../js/html/ImageData.html">ImageData</a></code></p></h3><div class="doc"><p class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></div></div><div class="field "><a name="getLineDash"></a><h3><p><code><a href="#getLineDash"><span class="identifier">getLineDash</span></a> ():<a class="type" title="An Array is a storage for values." href="../../Array.html">Array</a>&lt;<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>&gt;</code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="isPointInPath"></a><h3><p><code><a href="#isPointInPath"><span class="identifier">isPointInPath</span></a> (<span style="white-space:nowrap">path:<a class="type" title="The Path2D interface of the Canvas 2D API is used to declare paths that are then later used on CanvasRenderingContext2D objects." href="../../js/html/Path2D.html">Path2D</a>,</span> <span style="white-space:nowrap">x:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">winding:<a class="type" title="" href="../../js/html/CanvasWindingRule.html">CanvasWindingRule</a> = "nonzero"</span>):<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a></code></p><p><code><a href="#isPointInPath"><span class="identifier">isPointInPath</span></a> (<span style="white-space:nowrap">x:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">winding:<a class="type" title="" href="../../js/html/CanvasWindingRule.html">CanvasWindingRule</a> = "nonzero"</span>):<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="isPointInStroke"></a><h3><p><code><a href="#isPointInStroke"><span class="identifier">isPointInStroke</span></a> (<span style="white-space:nowrap">path:<a class="type" title="The Path2D interface of the Canvas 2D API is used to declare paths that are then later used on CanvasRenderingContext2D objects." href="../../js/html/Path2D.html">Path2D</a>,</span> <span style="white-space:nowrap">x:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a></code></p><p><code><a href="#isPointInStroke"><span class="identifier">isPointInStroke</span></a> (<span style="white-space:nowrap">x:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The standard Boolean type, which can either be true or false." href="../../Bool.html">Bool</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="lineTo"></a><h3><p><code><a href="#lineTo"><span class="identifier">lineTo</span></a> (<span style="white-space:nowrap">x:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="measureText"></a><h3><p><code><a href="#measureText"><span class="identifier">measureText</span></a> (<span style="white-space:nowrap">text:<a class="type" title="The basic String class." href="../../String.html">String</a></span>):<a class="type" title="The TextMetrics interface represents the dimension of a text in the canvas, as created by the CanvasRenderingContext2D." href="../../js/html/TextMetrics.html">TextMetrics</a></code></p></h3><div class="doc"><p class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></div></div><div class="field "><a name="moveTo"></a><h3><p><code><a href="#moveTo"><span class="identifier">moveTo</span></a> (<span style="white-space:nowrap">x:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="putImageData"></a><h3><p><code><a href="#putImageData"><span class="identifier">putImageData</span></a> (<span style="white-space:nowrap">imagedata:<a class="type" title="The ImageData interface represents the underlying pixel data of an area of a canvas element." href="../../js/html/ImageData.html">ImageData</a>,</span> <span style="white-space:nowrap">dx:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">dy:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">dirtyX:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">dirtyY:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">dirtyWidth:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">dirtyHeight:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p><p><code><a href="#putImageData"><span class="identifier">putImageData</span></a> (<span style="white-space:nowrap">imagedata:<a class="type" title="The ImageData interface represents the underlying pixel data of an area of a canvas element." href="../../js/html/ImageData.html">ImageData</a>,</span> <span style="white-space:nowrap">dx:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">dy:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></div></div><div class="field "><a name="quadraticCurveTo"></a><h3><p><code><a href="#quadraticCurveTo"><span class="identifier">quadraticCurveTo</span></a> (<span style="white-space:nowrap">cpx:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">cpy:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">x:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="rect"></a><h3><p><code><a href="#rect"><span class="identifier">rect</span></a> (<span style="white-space:nowrap">x:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">w:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">h:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="removeHitRegion"></a><h3><p><code><a href="#removeHitRegion"><span class="identifier">removeHitRegion</span></a> (<span style="white-space:nowrap">id:<a class="type" title="The basic String class." href="../../String.html">String</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="resetTransform"></a><h3><p><code><a href="#resetTransform"><span class="identifier">resetTransform</span></a> ():<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></div></div><div class="field "><a name="restore"></a><h3><p><code><a href="#restore"><span class="identifier">restore</span></a> ():<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="rotate"></a><h3><p><code><a href="#rotate"><span class="identifier">rotate</span></a> (<span style="white-space:nowrap">angle:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></div></div><div class="field "><a name="save"></a><h3><p><code><a href="#save"><span class="identifier">save</span></a> ():<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="scale"></a><h3><p><code><a href="#scale"><span class="identifier">scale</span></a> (<span style="white-space:nowrap">x:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></div></div><div class="field "><a name="setLineDash"></a><h3><p><code><a href="#setLineDash"><span class="identifier">setLineDash</span></a> (<span style="white-space:nowrap">segments:<a class="type" title="An Array is a storage for values." href="../../Array.html">Array</a>&lt;<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>&gt;</span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></div></div><div class="field "><a name="setTransform"></a><h3><p><code><a href="#setTransform"><span class="identifier">setTransform</span></a> (<span style="white-space:nowrap">a:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">b:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">c:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">d:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">e:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">f:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></div></div><div class="field "><a name="stroke"></a><h3><p><code><a href="#stroke"><span class="identifier">stroke</span></a> (<span style="white-space:nowrap">path:<a class="type" title="The Path2D interface of the Canvas 2D API is used to declare paths that are then later used on CanvasRenderingContext2D objects." href="../../js/html/Path2D.html">Path2D</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p><p><code><a href="#stroke"><span class="identifier">stroke</span></a> ():<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="strokeRect"></a><h3><p><code><a href="#strokeRect"><span class="identifier">strokeRect</span></a> (<span style="white-space:nowrap">x:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">w:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">h:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p></p></div></div><div class="field "><a name="strokeText"></a><h3><p><code><a href="#strokeText"><span class="identifier">strokeText</span></a> (<span style="white-space:nowrap">text:<a class="type" title="The basic String class." href="../../String.html">String</a>,</span> <span style="white-space:nowrap">x:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">?maxWidth:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></div></div><div class="field "><a name="transform"></a><h3><p><code><a href="#transform"><span class="identifier">transform</span></a> (<span style="white-space:nowrap">a:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">b:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">c:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">d:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">e:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">f:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></div></div><div class="field "><a name="translate"></a><h3><p><code><a href="#translate"><span class="identifier">translate</span></a> (<span style="white-space:nowrap">x:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a>,</span> <span style="white-space:nowrap">y:<a class="type" title="The standard Float type, this is a double-precision IEEE 64bit float." href="../../Float.html">Float</a></span>):<a class="type" title="The standard Void type." href="../../Void.html">Void</a></code></p></h3><div class="doc"><p class="javadoc">Throws:</p><table class="table table-bordered params"><div class="indent inline-content"><tr><th width="25%"><code>null</code></th><td><p>DOMError</p></td></tr></div></table></div></div></div></div></div></div></div><footer class="section site-footer" style="background:#FAFAFA"><div class="container"><div class="copyright"><p style="color:#777777">&copy; 2017 &nbsp;<a style="color:#777777" href="http://www.openfl.org">http://www.openfl.org</a></p></div></div></footer><script src="../..//highlighter.js"></script><link href="../../highlighter.css" rel="stylesheet"/></body></html>