Skip to content

Commit

Permalink
Update documents (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
Watson1978 authored Jun 17, 2024
1 parent d907f37 commit d06e1df
Show file tree
Hide file tree
Showing 193 changed files with 387 additions and 5 deletions.
2 changes: 2 additions & 0 deletions adaptive_threshold.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>adaptive_threshold.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

# Demonstrate the Image#adaptive_threshold method
Expand Down
2 changes: 2 additions & 0 deletions add_noise.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>add_noise.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

# Demonstrate the Image#add_noise method
Expand Down
2 changes: 2 additions & 0 deletions affine.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>affine.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

# Demonstrate the affine primitive. Transform the
Expand Down
2 changes: 2 additions & 0 deletions affine_transform.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>affine_transform.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

# Demonstrate the Image#affine_transform method
Expand Down
2 changes: 2 additions & 0 deletions arc.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>arc.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

i = Magick::Image.new(300, 220, Magick::HatchFill.new('white', 'lightcyan2'))
Expand Down
2 changes: 2 additions & 0 deletions arcpath.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>arcpath.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

# Demonstrate the "path" drawing primitive.
Expand Down
2 changes: 2 additions & 0 deletions arcs01.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>arcs01.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rvg/rvg'

Magick::RVG.dpi = 90
Expand Down
2 changes: 2 additions & 0 deletions arcs02.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>arcs02.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rvg/rvg'

Magick::RVG.dpi = 90
Expand Down
2 changes: 2 additions & 0 deletions average.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>average.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

# Demonstrate ImageList#average method
require 'rmagick'

Expand Down
2 changes: 2 additions & 0 deletions axes.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>axes.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

# Demonstrate the use of RMagick's Draw class
Expand Down
2 changes: 2 additions & 0 deletions baseline_shift01.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>baseline_shift01.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rvg/rvg'

rvg = Magick::RVG.new(150, 100) do |canvas|
Expand Down
2 changes: 2 additions & 0 deletions bilevel_channel.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>bilevel_channel.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

img = Magick::Image.read('images/Flower_Hat.jpg').first
Expand Down
2 changes: 2 additions & 0 deletions blur_image.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>blur_image.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

# Demonstrate the Image#blur_image method
Expand Down
2 changes: 2 additions & 0 deletions border.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>border.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

# Demonstrate the Image#border method
Expand Down
2 changes: 2 additions & 0 deletions bounding_box.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>bounding_box.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

img = Magick::Image.new(200, 200) { |info| info.background_color = '#ffffcc' }
Expand Down
2 changes: 2 additions & 0 deletions cbezier1.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>cbezier1.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

imgl = Magick::ImageList.new
Expand Down
2 changes: 2 additions & 0 deletions cbezier2.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>cbezier2.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

imgl = Magick::ImageList.new
Expand Down
2 changes: 2 additions & 0 deletions cbezier3.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>cbezier3.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

imgl = Magick::ImageList.new
Expand Down
2 changes: 2 additions & 0 deletions cbezier4.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>cbezier4.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

imgl = Magick::ImageList.new
Expand Down
2 changes: 2 additions & 0 deletions cbezier5.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>cbezier5.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

imgl = Magick::ImageList.new
Expand Down
2 changes: 2 additions & 0 deletions cbezier6.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>cbezier6.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

imgl = Magick::ImageList.new
Expand Down
2 changes: 2 additions & 0 deletions channel.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>channel.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

img = Magick::Image.read('images/Flower_Hat.jpg').first
Expand Down
2 changes: 2 additions & 0 deletions charcoal.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>charcoal.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

# Demonstrate the Image#charcoal method
Expand Down
2 changes: 2 additions & 0 deletions chop.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>chop.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

# Demonstrate the Image#chop method
Expand Down
2 changes: 2 additions & 0 deletions circle.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>circle.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

imgl = Magick::ImageList.new
Expand Down
2 changes: 2 additions & 0 deletions circle01.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>circle01.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rvg/rvg'

Magick::RVG.dpi = 90
Expand Down
2 changes: 2 additions & 0 deletions clip_path.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>clip_path.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

points = [
Expand Down
4 changes: 3 additions & 1 deletion coalesce.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,14 @@ <h1>coalesce.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

buttons = Magick::ImageList.new

# Read 25 alphabet image files, scale to 1/4 size
letter = 'A'
letter = +'A'
26.times do
if letter != 'M' # "M" is not the same size as the other letters
tiny = Magick::Image.read('images/Button_' + letter + '.gif').first
Expand Down
2 changes: 2 additions & 0 deletions color_fill_to_border.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>color_fill_to_border.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

# Demonstrate the Image#color_fill_to_border method
Expand Down
2 changes: 2 additions & 0 deletions color_floodfill.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>color_floodfill.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

# Demonstrate the Image#color_floodfill method
Expand Down
2 changes: 2 additions & 0 deletions color_histogram.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>color_histogram.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

NUM_COLORS = 256
Expand Down
2 changes: 2 additions & 0 deletions color_reset.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>color_reset.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

# Demonstrate the Image#color_reset! method
Expand Down
2 changes: 2 additions & 0 deletions colorize.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>colorize.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

# Demonstrate the Image#colorize method by converting
Expand Down
2 changes: 2 additions & 0 deletions colors.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>colors.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

puts('Creating colors.miff. This may take a few seconds...')
Expand Down
2 changes: 2 additions & 0 deletions compose_mask.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>compose_mask.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

background = Magick::Image.read('images/Flower_Hat.jpg').first
Expand Down
2 changes: 2 additions & 0 deletions composite.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>composite.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

# Demonstrate the effects of various composite operators.
# Based on ImageMagick's composite test.

Expand Down
2 changes: 2 additions & 0 deletions composite_layers.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>composite_layers.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

module Magick
Expand Down
2 changes: 2 additions & 0 deletions composite_tiled.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>composite_tiled.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

# Create a transparent image to tile over the background image.
Expand Down
2 changes: 2 additions & 0 deletions contrast.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>contrast.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

# Demonstrate the Image#contrast method
Expand Down
2 changes: 2 additions & 0 deletions crop.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>crop.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rmagick'

# Demonstrate the Image#crop method
Expand Down
2 changes: 2 additions & 0 deletions crop_with_gravity.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>crop_with_gravity.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

#=======================================================#
# Thanks to Robert Wagner for the idea of allowing a #
# GravityType instead of the x- and y-offset arguments! #
Expand Down
2 changes: 2 additions & 0 deletions cubic01.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>cubic01.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rvg/rvg'

Magick::RVG.dpi = 90
Expand Down
2 changes: 2 additions & 0 deletions cubic02.rb.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ <h1>cubic02.rb</h1>
<div class="bodybox">
<div class="bodyfloat">
<pre class="language-ruby">
# frozen_string_literal: true

require 'rvg/rvg'

Magick::RVG.dpi = 90
Expand Down
Loading

0 comments on commit d06e1df

Please sign in to comment.