Sha256: 207e29bca42f95f437ab88775ff928383b95f6b9aaa3f1755571107c843a18a9

Contents?: true

Size: 380 Bytes

Versions: 6

Compression:

Stored size: 380 Bytes

Contents

module GDAL
  module ColorTableTypes
    module RGB
      def reds
        color_entries_for(1)
      end

      def greens
        color_entries_for(2)
      end

      def blues
        color_entries_for(3)
      end

      def alphas
        color_entries_for(4)
      end

      def to_a
        NMatrix[reds, greens, blues, alphas].transpose.to_a
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ffi-gdal-1.0.0.beta7 lib/gdal/color_table_types/rgb.rb
ffi-gdal-1.0.0.beta6 lib/gdal/color_table_types/rgb.rb
ffi-gdal-1.0.0.beta5 lib/gdal/color_table_types/rgb.rb
ffi-gdal-1.0.0.beta4 lib/gdal/color_table_types/rgb.rb
ffi-gdal-1.0.0.beta3 lib/gdal/color_table_types/rgb.rb
ffi-gdal-1.0.0.beta1 lib/gdal/color_table_types/rgb.rb