Module: Gauguin

Defined in:
lib/gauguin.rb,
lib/gauguin/color.rb,
lib/gauguin/image.rb,
lib/gauguin/version.rb,
lib/gauguin/painting.rb,
lib/gauguin/noise_reducer.rb,
lib/gauguin/colors_limiter.rb,
lib/gauguin/image_recolorer.rb,
lib/gauguin/colors_clusterer.rb,
lib/gauguin/colors_retriever.rb,
lib/gauguin/image_repository.rb,
lib/gauguin/palette_serializer.rb,
lib/gauguin/color_space/lab_vector.rb,
lib/gauguin/color_space/rgb_vector.rb,
lib/gauguin/color_space/xyz_vector.rb

Defined Under Namespace

Modules: ColorSpace Classes: Color, ColorsClusterer, ColorsLimiter, ColorsRetriever, Configuration, Image, ImageRecolorer, ImageRepository, NoiseReducer, Painting, PaletteSerializer

Constant Summary collapse

VERSION =
"0.0.3"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



16
17
18
# File 'lib/gauguin.rb', line 16

def configuration
  @configuration
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



19
20
21
22
# File 'lib/gauguin.rb', line 19

def self.configure
  self.configuration ||= Configuration.new
  yield(configuration) if block_given?
end