Skip to content

Commit

Permalink
Rewrap
Browse files Browse the repository at this point in the history
  • Loading branch information
mysteryDate committed Feb 4, 2025
1 parent 0537481 commit 16c0c08
Showing 1 changed file with 32 additions and 30 deletions.
62 changes: 32 additions & 30 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -68753,15 +68753,16 @@ try {
represented by objects implementing the <code>CanvasGradient</code> interface.</p>

<p id="interpolation">Once a gradient has been created (see below), stops are placed along it to
define how the colors are distributed along the gradient. <span w-nodev>The color of the
gradient at each stop is the color specified for that stop. Between each such stop, the colors and
the alpha component must be linearly interpolated over the <span data-x="ColorInterpolationMethod">ColorInterpolationMethod</span>
color space to find the color to use at that offset. Color values are premultiplied by alpha
if the <span data-x="canvas-gradient-premultipliedAlpha">premultipliedAlpha</span>
value is true. For polar color spaces, hue is interpolated according to the
<span data-x="HueInterpolationMethod">HueInterpolationMethod</span>. Before the first stop, the
color must be the color of the first stop. After the last stop, the color must be the color of the
last stop. When there are no stops, the gradient is <span>transparent black</span>.</span></p>
define how the colors are distributed along the gradient. <span w-nodev>The color of the gradient
at each stop is the color specified for that stop. Between each such stop, the colors and the alpha
component must be linearly interpolated over the <span
data-x="ColorInterpolationMethod">ColorInterpolationMethod</span> color space to find the color to
use at that offset. Color values are premultiplied by alpha if the <span
data-x="canvas-gradient-premultipliedAlpha">premultipliedAlpha</span> value is true. For polar
color spaces, hue is interpolated according to the <span
data-x="HueInterpolationMethod">HueInterpolationMethod</span>. Before the first stop, the color
must be the color of the first stop. After the last stop, the color must be the color of the last
stop. When there are no stops, the gradient is <span>transparent black</span>.</span></p>

<dl class="domintro">
<dt><code data-x=""><var>gradient</var>.<span subdfn data-x="dom-canvasgradient-addColorStop">addColorStop</span>(<var>offset</var>, <var>color</var>)</code></dt>
Expand Down Expand Up @@ -68792,37 +68793,38 @@ try {
<code>DOMException</code> exception.</p>
</dd>

<dt><code data-x=""><var>gradient</var>.<span data-x="ColorInterpolationMethod">colorInterpolationMethod</span> [ = <var>value</var> ]</code></dt>
<dt><code data-x=""><var>gradient</var>.<span data-x="ColorInterpolationMethod">colorInterpolationMethod</span> [ = <var>value</var> ]</code></dt>

<dd>
<p>Returns the current color space used for interpolation.</p>
<dd>
<p>Returns the current color space used for interpolation.</p>

<p>Can be set, to change the <span data-x="ColorInterpolationMethod">colorInterpolationMethod</span>
color space.</p>
<p>Can be set, to change the <span
data-x="ColorInterpolationMethod">colorInterpolationMethod</span> color space.</p>

<p>The color space must be a string. Invalid values are ignored.</p>
</dd>
<p>The color space must be a string. Invalid values are ignored.</p>
</dd>

<dt><code data-x=""><var>gradient</var>.<span data-x="HueInterpolationMethod">hueInterpolationMethod</span> [ = <var>value</var> ]</code></dt>
<dt><code data-x=""><var>gradient</var>.<span data-x="HueInterpolationMethod">hueInterpolationMethod</span> [ = <var>value</var> ]</code></dt>

<dd>
<p>Returns the current hue interpolation method.</p>
<dd>
<p>Returns the current hue interpolation method.</p>

<p>Can be set, to change the <span data-x="HueInterpolationMethod">hueInterpolationMethod</span>.</p>
<p>Can be set, to change the <span
data-x="HueInterpolationMethod">hueInterpolationMethod</span>.</p>

<p>The method must be a string. Invalid values are ignored.</p>
</dd>
<p>The method must be a string. Invalid values are ignored.</p>
</dd>

<dt><code data-x=""><var>gradient</var>.<span data-x="canvas-gradient-premultipliedAlpha">premultipliedAlpha</span> [ = <var>value</var> ]</code></dt>
<dt><code data-x=""><var>gradient</var>.<span data-x="canvas-gradient-premultipliedAlpha">premultipliedAlpha</span> [ = <var>value</var> ]</code></dt>

<dd>
<p>Returns true if the gradient will interpolate using <span data-x="concept-premultiplied-alpha">premultiplied alpha</span>.
Otherwise returns false.</p>
<dd>
<p>Returns true if the gradient will interpolate using <span
data-x="concept-premultiplied-alpha">premultiplied alpha</span>. Otherwise returns false.</p>

<p>Can be set, to change the <span data-x="canvas-gradient-premultipliedAlpha">premultipliedAlpha</span>
value.</p>
</dd>
</dl>
<p>Can be set, to change the <span
data-x="canvas-gradient-premultipliedAlpha">premultipliedAlpha</span> value.</p>
</dd>
</dl>

<div w-nodev>

Expand Down

0 comments on commit 16c0c08

Please sign in to comment.