Module: GeoPattern

Defined in:
lib/geo_pattern.rb,
lib/geo_pattern/seed.rb,
lib/geo_pattern/color.rb,
lib/geo_pattern/errors.rb,
lib/geo_pattern/helpers.rb,
lib/geo_pattern/pattern.rb,
lib/geo_pattern/version.rb,
lib/geo_pattern/rake_task.rb,
lib/geo_pattern/structure.rb,
lib/geo_pattern/svg_image.rb,
lib/geo_pattern/background.rb,
lib/geo_pattern/color_preset.rb,
lib/geo_pattern/pattern_sieve.rb,
lib/geo_pattern/pattern_store.rb,
lib/geo_pattern/pattern_preset.rb,
lib/geo_pattern/pattern_helpers.rb,
lib/geo_pattern/geo_pattern_task.rb,
lib/geo_pattern/pattern_generator.rb,
lib/geo_pattern/pattern_validator.rb,
lib/geo_pattern/roles/named_generator.rb,
lib/geo_pattern/roles/comparable_metadata.rb,
lib/geo_pattern/color_generators/simple_generator.rb,
lib/geo_pattern/structure_generators/xes_generator.rb,
lib/geo_pattern/structure_generators/base_generator.rb,
lib/geo_pattern/structure_generators/plaid_generator.rb,
lib/geo_pattern/background_generators/solid_generator.rb,
lib/geo_pattern/color_generators/base_color_generator.rb,
lib/geo_pattern/structure_generators/squares_generator.rb,
lib/geo_pattern/structure_generators/chevrons_generator.rb,
lib/geo_pattern/structure_generators/diamonds_generator.rb,
lib/geo_pattern/structure_generators/hexagons_generator.rb,
lib/geo_pattern/structure_generators/octagons_generator.rb,
lib/geo_pattern/structure_generators/triangles_generator.rb,
lib/geo_pattern/structure_generators/plus_signs_generator.rb,
lib/geo_pattern/structure_generators/sine_waves_generator.rb,
lib/geo_pattern/structure_generators/tessellation_generator.rb,
lib/geo_pattern/structure_generators/mosaic_squares_generator.rb,
lib/geo_pattern/structure_generators/nested_squares_generator.rb,
lib/geo_pattern/structure_generators/overlapping_rings_generator.rb,
lib/geo_pattern/structure_generators/concentric_circles_generator.rb,
lib/geo_pattern/structure_generators/overlapping_circles_generator.rb

Defined Under Namespace

Modules: BackgroundGenerators, ColorGenerators, Helpers, PatternHelpers, Roles, StructureGenerators Classes: Background, Color, ColorPreset, GeoPatternTask, InvalidPatternError, Pattern, PatternGenerator, PatternPreset, PatternSieve, PatternStore, PatternValidator, RakeTask, Seed, Structure, SvgImage, UserError

Constant Summary collapse

VERSION =
'1.4.0'
ChevronPattern =

rubocop:disable Style/ConstantName

:chevrons
ConcentricCirclesPattern =
:concentric_circles
DiamondPattern =
:diamonds
HexagonPattern =
:hexagons
MosaicSquaresPattern =
:mosaic_squares
NestedSquaresPattern =
:nested_squares
OctagonPattern =
:octagons
OverlappingCirclesPattern =
:overlapping_circles
OverlappingRingsPattern =
:overlapping_rings
PlaidPattern =
:plaid
PlusSignPattern =
:plus_signs
SineWavePattern =
:sine_waves
SquarePattern =
:squares
TessellationPattern =
:tessellation
TrianglePattern =
:triangles
XesPattern =
:xes

Class Method Summary collapse

Class Method Details

.generate(string = Time.now, opts = {}) ⇒ Object


53
54
55
# File 'lib/geo_pattern.rb', line 53

def self.generate(string = Time.now, opts = {})
  GeoPattern::PatternGenerator.new(string.to_s, opts).generate
end