Method: Falu::ImagePalette#initialize
- Defined in:
- lib/falu/image_palette.rb
#initialize(image, swatches = nil, **opts) ⇒ ImagePalette
Returns a new instance of ImagePalette.
17 18 19 20 21 |
# File 'lib/falu/image_palette.rb', line 17 def initialize(image, swatches=nil, **opts) configuration.configure({sample: nil, scale: 500, size: 10, miro: false}) super(swatches, **opts) @image = image end |