Skip to content

Commit

Permalink
Add missing Draw#alpha method (#14)
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 authored Feb 12, 2024
1 parent bffd878 commit 62fa335
Show file tree
Hide file tree
Showing 27 changed files with 110 additions and 65 deletions.
4 changes: 2 additions & 2 deletions comtasks.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />

<title>RMagick 5.4.0: Common Tasks</title>
<title>RMagick 5.4.2: Common Tasks</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand All @@ -25,7 +25,7 @@
</head>

<body>
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="optequiv.html">Prev</a> | <a href="index.html">Contents</a> | <a href="magick.html">Next</a>&nbsp;&raquo;</div>

Expand Down
4 changes: 2 additions & 2 deletions constants.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />

<title>RMagick 5.4.0: Constants</title>
<title>RMagick 5.4.2: Constants</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand Down Expand Up @@ -57,7 +57,7 @@
</head>

<body>
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="info.html">Prev</a> | <a href="index.html">Contents</a> | <a href="rvgtut.html">Next</a>&nbsp;&raquo;</div>

Expand Down
59 changes: 53 additions & 6 deletions draw.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />

<title>RMagick 5.4.0: class Draw</title>
<title>RMagick 5.4.2: class Draw</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand All @@ -20,7 +20,7 @@
</head>

<body>
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="image3.html">Prev</a> | <a href="index.html">Contents</a> | <a href="struct.html">Next</a>&nbsp;&raquo;</div>

Expand Down Expand Up @@ -75,6 +75,8 @@ <h3>drawing primitive methods</h3>
<ul>
<li><a href="#affine">affine</a></li>

<li><a href="#alpha">alpha</a></li>

<li><a href="#arc">arc</a></li>

<li><a href="#bezier">bezier</a></li>
Expand Down Expand Up @@ -898,6 +900,43 @@ <h4>See also</h4>
<a href="#translate">translate</a>
</div>

<div class="sig">
<h3 id="alpha">alpha</h3>

<p><span class="arg">draw</span>.alpha(<span class="arg">x, y, method</span>) -&gt; <em>self</em></p>
</div>

<div class="desc">
<h4>Description</h4>

<p>Set alpha (make transparent) in image according to the specified colorization rule.</p>

<h4>Arguments</h4>

<dl>
<dt>x, y</dt>

<dd>The point in the <em>x</em> and <em>y</em> to start filling color</dd>

<dt>method</dt>

<dd>
A <a href="constants.html#PaintMethod">PaintMethod</a> constant. If you use the <code>FillToBorderMethod</code>, assign the border color with the
<code>Draw#border_color=</code> attribute before calling <a href="#draw">draw</a>.
</dd>
</dl>

<h4>Returns</h4>

<p>self</p>

<h4>Example</h4>
<pre>
draw.alpha(x, y, FillToBorderMethod)
</pre
>
</div>

<div class="sig">
<h3 id="arc">arc</h3>

Expand Down Expand Up @@ -1196,10 +1235,18 @@ <h4>Description</h4>

<h4>Arguments</h4>

<p>
A <a href="constants.html#PaintMethod">PaintMethod</a> constant. If you use the <code>FillToBorderMethod</code>, assign the border color with the
<code>Draw#border_color=</code> attribute before calling <a href="#draw">draw</a>.
</p>
<dl>
<dt>x, y</dt>

<dd>The point in the <em>x</em> and <em>y</em> to start filling color</dd>

<dt>method</dt>

<dd>
A <a href="constants.html#PaintMethod">PaintMethod</a> constant. If you use the <code>FillToBorderMethod</code>, assign the border color with the
<code>Draw#border_color=</code> attribute before calling <a href="#draw">draw</a>.
</dd>
</dl>

<h4>Returns</h4>

Expand Down
4 changes: 2 additions & 2 deletions ilist.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />

<title>RMagick 5.4.0: class ImageList</title>
<title>RMagick 5.4.2: class ImageList</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2005 by Timothy P. Hunter" />
Expand All @@ -14,7 +14,7 @@
</head>

<body>
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="magick.html">Prev</a> | <a href="index.html">Contents</a> | <a href="imageattrs.html">Next</a>&nbsp;&raquo;</div>

Expand Down
4 changes: 2 additions & 2 deletions image1.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />

<title>RMagick 5.4.0: class Image (class methods and instance methods a-d)</title>
<title>RMagick 5.4.2: class Image (class methods and instance methods a-d)</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand Down Expand Up @@ -39,7 +39,7 @@
</head>

<body>
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="imageattrs.html">Prev</a> | <a href="index.html">Contents</a> | <a href="image2.html">Next</a>&nbsp;&raquo;</div>

Expand Down
4 changes: 2 additions & 2 deletions image2.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />

<title>RMagick 5.4.0: class Image (instance methods e-o)</title>
<title>RMagick 5.4.2: class Image (instance methods e-o)</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand Down Expand Up @@ -41,7 +41,7 @@
</head>

<body>
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="image1.html">Prev</a> | <a href="index.html">Contents</a> | <a href="image3.html">Next</a>&nbsp;&raquo;</div>

Expand Down
4 changes: 2 additions & 2 deletions image3.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />

<title>RMagick 5.4.0: class Image (instance methods p-w)</title>
<title>RMagick 5.4.2: class Image (instance methods p-w)</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand Down Expand Up @@ -46,7 +46,7 @@
</head>

<body>
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="image2.html">Prev</a> | <a href="index.html">Contents</a> | <a href="draw.html">Next</a>&nbsp;&raquo;</div>

Expand Down
11 changes: 5 additions & 6 deletions imageattrs.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />

<title>RMagick 5.4.0: class Image (attribute methods)</title>
<title>RMagick 5.4.2: class Image (attribute methods)</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand All @@ -20,7 +20,7 @@
</head>

<body>
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="ilist.html">Prev</a> | <a href="index.html">Contents</a> | <a href="image1.html">Next</a>&nbsp;&raquo;</div>

Expand Down Expand Up @@ -294,9 +294,7 @@ <h4>Returns</h4>
<div class="sig">
<h3 id="bounding_box">bounding_box</h3>

<p>
<span class="arg">img.</span>bounding_box -&gt; <em>rectangle</em><br />
</p>
<p><span class="arg">img.</span>bounding_box -&gt; <em>rectangle</em><br /></p>
</div>

<div class="desc">
Expand Down Expand Up @@ -1336,7 +1334,8 @@ <h3 id="transparent_color">transparent_color</h3>

<p>
<span class="arg">img</span>.transparent_color -&gt; <em>string</em><br />
<span class="arg">img.</span>transparent_color = <span class="arg">string</span> or <span class="arg">pixel</span> -&gt; <em>string</em> or <em>pixel</em>
<span class="arg">img.</span>transparent_color = <span class="arg">string</span> or <span class="arg">pixel</span> -&gt; <em>string</em> or
<em>pixel</em>
</p>
</div>

Expand Down
4 changes: 2 additions & 2 deletions imusage.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />

<title>RMagick 5.4.0: ImageMagick Conventions</title>
<title>RMagick 5.4.2: ImageMagick Conventions</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand Down Expand Up @@ -64,7 +64,7 @@
</head>

<body>
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="usage.html">Prev</a> | <a href="index.html">Contents</a> | <a href="optequiv.html">Next</a>&nbsp;&raquo;</div>

Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />

<title>RMagick 5.4.0 User's Guide and Reference</title>
<title>RMagick 5.4.2 User's Guide and Reference</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand Down Expand Up @@ -102,7 +102,7 @@

<p id="magick">
Ruby+ImageMagick<span class="tm">TM</span><br />
Version 5.4.0
Version 5.4.2
</p>

<h1>User's Guide and Reference</h1>
Expand Down Expand Up @@ -277,7 +277,7 @@ <h3>What is RMagick?</h3>
<h3>About this document</h3>

<p>
This document describes Version 5.4.0 of RMagick. It is divided into 4 parts. The first is this page. The second part is a user's guide covering both
This document describes Version 5.4.2 of RMagick. It is divided into 4 parts. The first is this page. The second part is a user's guide covering both
RMagick and ImageMagick usage and conventions. The third part is a reference guide to the ImageList, Image, and Draw classes. This guide includes many
examples. The fourth part covers Ruby Vector Graphics (RVG). RVG is a facade for Draw that provides a high-level API for scalable vector graphics. The RVG
section includes a tutorial and complete reference documentation.
Expand Down
7 changes: 3 additions & 4 deletions info.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />

<title>RMagick 5.4.0: class Image::Info - Optional method arguments</title>
<title>RMagick 5.4.2: class Image::Info - Optional method arguments</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand Down Expand Up @@ -38,7 +38,7 @@
</head>

<body>
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="struct.html">Prev</a> | <a href="index.html">Contents</a> | <a href="constants.html">Next</a>&nbsp;&raquo;</div>

Expand Down Expand Up @@ -1072,14 +1072,13 @@ <h3 id="monochrome">monochrome</h3>

<div class="desc">
<h4>Description</h4>

</div>

<div class="sig">
<h3 id="number_scenes">number_scenes</h3>

<p>
<span class="arg">self.</span>number_scenes= <span class="arg"><code>integer</code></span></span>
<span class="arg">self.</span>number_scenes= <span class="arg"><code>integer</code></span>
</p>
</div>

Expand Down
4 changes: 2 additions & 2 deletions magick.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 6 November 2007), see www.w3.org" />

<title>RMagick 5.4.0: module Magick</title>
<title>RMagick 5.4.2: module Magick</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand All @@ -19,7 +19,7 @@
</head>

<body>
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="comtasks.html">Prev</a> | <a href="index.html">Contents</a> | <a href="ilist.html">Next</a>&nbsp;&raquo;</div>

Expand Down
4 changes: 2 additions & 2 deletions optequiv.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 7 December 2008), see www.w3.org" />

<title>RMagick 5.4.0: Magick Command Options and Their Equivalent Methods</title>
<title>RMagick 5.4.2: Magick Command Options and Their Equivalent Methods</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand Down Expand Up @@ -63,7 +63,7 @@
</head>

<body>
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>

<div class="nav">
&laquo; <a href="index.html">Prev</a> | <a href="imusage.html">Contents</a> | <a href="comtasks.html">Next</a>
Expand Down
4 changes: 2 additions & 2 deletions rvg.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />

<title>RMagick 5.4.0: RVG Reference: RVG Class</title>
<title>RMagick 5.4.2: RVG Reference: RVG Class</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand All @@ -22,7 +22,7 @@
</head>

<body>
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="rvgtut.html">Prev</a> | <a href="index.html">Contents</a> | <a href="rvggroup.html">Next</a>&nbsp;&raquo;</div>

Expand Down
4 changes: 2 additions & 2 deletions rvgclip.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 1 September 2005), see www.w3.org" />

<title>RMagick 5.4.0: RVG Reference: RVG::ClipPath Class</title>
<title>RMagick 5.4.2: RVG Reference: RVG::ClipPath Class</title>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii" />
<meta name="GENERATOR" content="Quanta Plus" />
<meta name="Copyright" content="Copyright (C) 2006 by Timothy P. Hunter" />
Expand All @@ -22,7 +22,7 @@
</head>

<body>
<h6 id="header">RMagick 5.4.0 User's Guide and Reference</h6>
<h6 id="header">RMagick 5.4.2 User's Guide and Reference</h6>

<div class="nav">&laquo;&nbsp;<a href="rvgpattern.html">Prev</a> | <a href="index.html">Contents</a> | <a href="rvgtext.html">Next</a>&nbsp;&raquo;</div>

Expand Down
Loading

0 comments on commit 62fa335

Please sign in to comment.