Skip to content

Commit d06e1df

Browse files
authored
Update documents (#31)
1 parent d907f37 commit d06e1df

File tree

193 files changed

+387
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

193 files changed

+387
-5
lines changed

adaptive_threshold.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>adaptive_threshold.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
# Demonstrate the Image#adaptive_threshold method

add_noise.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>add_noise.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
# Demonstrate the Image#add_noise method

affine.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>affine.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
# Demonstrate the affine primitive. Transform the

affine_transform.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>affine_transform.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
# Demonstrate the Image#affine_transform method

arc.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>arc.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
i = Magick::Image.new(300, 220, Magick::HatchFill.new('white', 'lightcyan2'))

arcpath.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>arcpath.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
# Demonstrate the "path" drawing primitive.

arcs01.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>arcs01.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rvg/rvg'
2123

2224
Magick::RVG.dpi = 90

arcs02.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>arcs02.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rvg/rvg'
2123

2224
Magick::RVG.dpi = 90

average.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>average.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
# Demonstrate ImageList#average method
2123
require 'rmagick'
2224

axes.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>axes.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
# Demonstrate the use of RMagick's Draw class

baseline_shift01.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>baseline_shift01.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rvg/rvg'
2123

2224
rvg = Magick::RVG.new(150, 100) do |canvas|

bilevel_channel.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>bilevel_channel.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
img = Magick::Image.read('images/Flower_Hat.jpg').first

blur_image.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>blur_image.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
# Demonstrate the Image#blur_image method

border.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>border.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
# Demonstrate the Image#border method

bounding_box.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>bounding_box.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
img = Magick::Image.new(200, 200) { |info| info.background_color = '#ffffcc' }

cbezier1.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>cbezier1.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
imgl = Magick::ImageList.new

cbezier2.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>cbezier2.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
imgl = Magick::ImageList.new

cbezier3.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>cbezier3.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
imgl = Magick::ImageList.new

cbezier4.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>cbezier4.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
imgl = Magick::ImageList.new

cbezier5.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>cbezier5.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
imgl = Magick::ImageList.new

cbezier6.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>cbezier6.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
imgl = Magick::ImageList.new

channel.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>channel.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
img = Magick::Image.read('images/Flower_Hat.jpg').first

charcoal.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>charcoal.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
# Demonstrate the Image#charcoal method

chop.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>chop.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
# Demonstrate the Image#chop method

circle.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>circle.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
imgl = Magick::ImageList.new

circle01.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>circle01.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rvg/rvg'
2123

2224
Magick::RVG.dpi = 90

clip_path.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>clip_path.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
points = [

coalesce.rb.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,12 +17,14 @@ <h1>coalesce.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
buttons = Magick::ImageList.new
2325

2426
# Read 25 alphabet image files, scale to 1/4 size
25-
letter = 'A'
27+
letter = +'A'
2628
26.times do
2729
if letter != 'M' # "M" is not the same size as the other letters
2830
tiny = Magick::Image.read('images/Button_' + letter + '.gif').first

color_fill_to_border.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>color_fill_to_border.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
# Demonstrate the Image#color_fill_to_border method

color_floodfill.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>color_floodfill.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
# Demonstrate the Image#color_floodfill method

color_histogram.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>color_histogram.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
NUM_COLORS = 256

color_reset.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>color_reset.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
# Demonstrate the Image#color_reset! method

colorize.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>colorize.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
# Demonstrate the Image#colorize method by converting

colors.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>colors.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
puts('Creating colors.miff. This may take a few seconds...')

compose_mask.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>compose_mask.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
background = Magick::Image.read('images/Flower_Hat.jpg').first

composite.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>composite.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
# Demonstrate the effects of various composite operators.
2123
# Based on ImageMagick's composite test.
2224

composite_layers.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>composite_layers.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
module Magick

composite_tiled.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>composite_tiled.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
# Create a transparent image to tile over the background image.

contrast.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>contrast.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
# Demonstrate the Image#contrast method

crop.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>crop.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rmagick'
2123

2224
# Demonstrate the Image#crop method

crop_with_gravity.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>crop_with_gravity.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
#=======================================================#
2123
# Thanks to Robert Wagner for the idea of allowing a #
2224
# GravityType instead of the x- and y-offset arguments! #

cubic01.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>cubic01.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rvg/rvg'
2123

2224
Magick::RVG.dpi = 90

cubic02.rb.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ <h1>cubic02.rb</h1>
1717
<div class="bodybox">
1818
<div class="bodyfloat">
1919
<pre class="language-ruby">
20+
# frozen_string_literal: true
21+
2022
require 'rvg/rvg'
2123

2224
Magick::RVG.dpi = 90

0 commit comments

Comments
 (0)