Sha256: 991906e284d7e05cb52634e6e5e0a288cd7b41c630a64968950cedfd523e2cf6
Contents?: true
Size: 1.51 KB
Versions: 10
Compression:
Stored size: 1.51 KB
Contents
<?xml version="1.0" encoding="iso-8859-1"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html> <head> <title>[]= (PNG::Canvas)</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" /> </head> <body class="standalone-code"> <pre><span class="ruby-comment cmt"># File lib/PatchedPNG.rb, line 212</span> <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]=</span>(<span class="ruby-identifier">x</span>, <span class="ruby-identifier">y</span>, <span class="ruby-identifier">color</span>) <span class="ruby-identifier">raise</span> <span class="ruby-node">"bad x value #{x} >= #{@height}"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">x</span> <span class="ruby-operator">>=</span> <span class="ruby-ivar">@height</span> <span class="ruby-identifier">raise</span> <span class="ruby-node">"bad y value #{y} >= #{@width}"</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">y</span> <span class="ruby-operator">>=</span> <span class="ruby-ivar">@width</span> <span class="ruby-ivar">@data</span>[<span class="ruby-identifier">y</span>][<span class="ruby-identifier">x</span>] = <span class="ruby-identifier">color</span> <span class="ruby-keyword kw">end</span></pre> </body> </html>
Version data entries
10 entries across 10 versions & 1 rubygems