Sha256: 179939a96f5caf0d743bcd07a1d20893d23549f9baadbada9023852123cb3706

Contents?: true

Size: 368 Bytes

Versions: 15

Compression:

Stored size: 368 Bytes

Contents

# frozen_string_literal: true

module GDAL
  module ColorTableTypes
    module HLS
      def hues
        color_entries_for(1)
      end

      def lightnesses
        color_entries_for(2)
      end

      def saturations
        color_entries_for(3)
      end

      def to_a
        NMatrix[hues, lightnesses, saturations].transpose.to_a
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
ffi-gdal-1.1.0 lib/gdal/color_table_types/hls.rb
ffi-gdal-1.0.4 lib/gdal/color_table_types/hls.rb
ffi-gdal-1.0.3 lib/gdal/color_table_types/hls.rb
ffi-gdal-1.0.2 lib/gdal/color_table_types/hls.rb
ffi-gdal-1.0.1 lib/gdal/color_table_types/hls.rb
ffi-gdal-1.0.0 lib/gdal/color_table_types/hls.rb
ffi-gdal-1.0.0.beta16 lib/gdal/color_table_types/hls.rb
ffi-gdal-1.0.0.beta15 lib/gdal/color_table_types/hls.rb
ffi-gdal-1.0.0.beta14 lib/gdal/color_table_types/hls.rb
ffi-gdal-1.0.0.beta13 lib/gdal/color_table_types/hls.rb
ffi-gdal-1.0.0.beta12 lib/gdal/color_table_types/hls.rb
ffi-gdal-1.0.0.beta11 lib/gdal/color_table_types/hls.rb
ffi-gdal-1.0.0.beta10 lib/gdal/color_table_types/hls.rb
ffi-gdal-1.0.0.beta9 lib/gdal/color_table_types/hls.rb
ffi-gdal-1.0.0.beta8 lib/gdal/color_table_types/hls.rb