Sha256: 8d2db9e40480fab9eae8b5d1afe9a9c8bfcfe595c29fe2cc41ebc0d4f74bc2b0
Contents?: true
Size: 828 Bytes
Versions: 2
Compression:
Stored size: 828 Bytes
Contents
require_relative 'color_entry_extensions' module GDAL class ColorEntry include ColorEntryExtensions def initialize(color_entry=nil) @color_entry_struct = color_entry || FFI::GDAL::GDALColorEntry.new end def c_pointer @color_entry_struct end def color1 @color_entry_struct[:c1] end def color1=(new_color) @color_entry_struct[:c1] = new_color end def color2 @color_entry_struct[:c2] end def color2=(new_color) @color_entry_struct[:c2] = new_color end def color3 @color_entry_struct[:c3] end def color3=(new_color) @color_entry_struct[:c3] = new_color end def color4 @color_entry_struct[:c4] end def color4=(new_color) @color_entry_struct[:c4] = new_color end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
ffi-gdal-1.0.0.beta3 | lib/gdal/color_entry.rb |
ffi-gdal-1.0.0.beta1 | lib/gdal/color_entry.rb |