Sha256: 41f4467ae8cdfd25309ac971c0dbf1ad082db8b62c6c8de1ae6eecfb46b15366

Contents?: true

Size: 278 Bytes

Versions: 8

Compression:

Stored size: 278 Bytes

Contents

module DotGrid
  module Pattern
    class SquareGrid < Pattern
      def draw
        pdf.fill_color grid_color
        draw_grid(true) do |row, column|
          pdf.fill_rectangle [column*spacing, (row+1)*spacing], spacing-1, spacing-1
        end
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
dot_grid-0.0.12 lib/dot_grid/pattern/square_grid.rb
dot_grid-0.0.11 lib/dot_grid/pattern/square_grid.rb
dot_grid-0.0.10 lib/dot_grid/pattern/square_grid.rb
dot_grid-0.0.9 lib/dot_grid/pattern/square_grid.rb
dot_grid-0.0.8 lib/dot_grid/pattern/square_grid.rb
dot_grid-0.0.7 lib/dot_grid/pattern/square_grid.rb
dot_grid-0.0.6 lib/dot_grid/pattern/square_grid.rb
dot_grid-0.0.5 lib/dot_grid/pattern/square_grid.rb