vector_salad 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (131) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +16 -0
  3. data/Gemfile +9 -0
  4. data/LICENSE.txt +22 -0
  5. data/README.md +89 -0
  6. data/Rakefile +2 -0
  7. data/bin/vector_salad +72 -0
  8. data/examples/birthday.png +0 -0
  9. data/examples/birthday.rb +45 -0
  10. data/examples/birthday.svg +630 -0
  11. data/examples/boolean_operations.png +0 -0
  12. data/examples/boolean_operations.rb +23 -0
  13. data/examples/boolean_operations.svg +151 -0
  14. data/examples/bp_logo.png +0 -0
  15. data/examples/bp_logo.rb +18 -0
  16. data/examples/bp_logo.svg +25 -0
  17. data/examples/bunny_card.png +0 -0
  18. data/examples/bunny_card.rb +219 -0
  19. data/examples/bunny_card.svg +134 -0
  20. data/examples/chill.png +0 -0
  21. data/examples/chill.rb +16 -0
  22. data/examples/chill.svg +86 -0
  23. data/examples/circle_line_segments.png +0 -0
  24. data/examples/circle_line_segments.rb +11 -0
  25. data/examples/circle_line_segments.svg +28 -0
  26. data/examples/circles.png +0 -0
  27. data/examples/circles.rb +14 -0
  28. data/examples/circles.svg +11 -0
  29. data/examples/clip_operations.png +0 -0
  30. data/examples/clip_operations.rb +14 -0
  31. data/examples/clip_operations.svg +8 -0
  32. data/examples/cog_menu.png +0 -0
  33. data/examples/cog_menu.rb +32 -0
  34. data/examples/cog_menu.svg +37 -0
  35. data/examples/cubic_bezier_handles.png +0 -0
  36. data/examples/cubic_bezier_handles.rb +21 -0
  37. data/examples/cubic_bezier_handles.svg +14 -0
  38. data/examples/cubic_circle.png +0 -0
  39. data/examples/cubic_circle.rb +26 -0
  40. data/examples/cubic_circle.svg +29 -0
  41. data/examples/face.png +0 -0
  42. data/examples/face.rb +4 -0
  43. data/examples/face.svg +10 -0
  44. data/examples/flower.png +0 -0
  45. data/examples/flower.rb +23 -0
  46. data/examples/flower.svg +207 -0
  47. data/examples/fox.png +0 -0
  48. data/examples/fox.rb +110 -0
  49. data/examples/fox.svg +31 -0
  50. data/examples/fresh_vector_salad_gui.png +0 -0
  51. data/examples/galaxies.png +0 -0
  52. data/examples/galaxies.rb +60 -0
  53. data/examples/galaxies.svg +5806 -0
  54. data/examples/gold_stars.png +0 -0
  55. data/examples/gold_stars.rb +9 -0
  56. data/examples/gold_stars.svg +12 -0
  57. data/examples/paths.png +0 -0
  58. data/examples/paths.rb +87 -0
  59. data/examples/paths.svg +13 -0
  60. data/examples/pepsi_logo.png +0 -0
  61. data/examples/pepsi_logo.rb +21 -0
  62. data/examples/pepsi_logo.svg +10 -0
  63. data/examples/polygons.png +0 -0
  64. data/examples/polygons.rb +9 -0
  65. data/examples/polygons.svg +13 -0
  66. data/examples/quadratic_bezier_handle.png +0 -0
  67. data/examples/quadratic_bezier_handle.rb +18 -0
  68. data/examples/quadratic_bezier_handle.svg +13 -0
  69. data/examples/rects.png +0 -0
  70. data/examples/rects.rb +10 -0
  71. data/examples/rects.svg +11 -0
  72. data/examples/simple_path.png +0 -0
  73. data/examples/simple_path.rb +29 -0
  74. data/examples/simple_path.svg +8 -0
  75. data/examples/space.png +0 -0
  76. data/examples/space.rb +171 -0
  77. data/examples/space.svg +46453 -0
  78. data/examples/spiro_nodes.png +0 -0
  79. data/examples/spiro_nodes.rb +20 -0
  80. data/examples/spiro_nodes.svg +13 -0
  81. data/examples/squares.png +0 -0
  82. data/examples/squares.rb +14 -0
  83. data/examples/squares.svg +11 -0
  84. data/examples/stars.png +0 -0
  85. data/examples/stars.rb +3 -0
  86. data/examples/stars.svg +30006 -0
  87. data/examples/transforms.png +0 -0
  88. data/examples/transforms.rb +58 -0
  89. data/examples/transforms.svg +121 -0
  90. data/examples/triangles.png +0 -0
  91. data/examples/triangles.rb +8 -0
  92. data/examples/triangles.svg +9 -0
  93. data/lib/contracts_contracts.rb +32 -0
  94. data/lib/vector_salad.rb +5 -0
  95. data/lib/vector_salad/canvas.rb +27 -0
  96. data/lib/vector_salad/dsl.rb +41 -0
  97. data/lib/vector_salad/export_with_magic.rb +29 -0
  98. data/lib/vector_salad/exporters/base_exporter.rb +92 -0
  99. data/lib/vector_salad/exporters/svg_exporter.rb +174 -0
  100. data/lib/vector_salad/interpolate.rb +57 -0
  101. data/lib/vector_salad/magic.rb +17 -0
  102. data/lib/vector_salad/mixins/at.rb +28 -0
  103. data/lib/vector_salad/shape_proxy.rb +14 -0
  104. data/lib/vector_salad/standard_shapes/basic_shape.rb +29 -0
  105. data/lib/vector_salad/standard_shapes/circle.rb +64 -0
  106. data/lib/vector_salad/standard_shapes/clip.rb +51 -0
  107. data/lib/vector_salad/standard_shapes/custom.rb +28 -0
  108. data/lib/vector_salad/standard_shapes/difference.rb +28 -0
  109. data/lib/vector_salad/standard_shapes/exclusion.rb +28 -0
  110. data/lib/vector_salad/standard_shapes/flip.rb +24 -0
  111. data/lib/vector_salad/standard_shapes/hexagon.rb +15 -0
  112. data/lib/vector_salad/standard_shapes/intersection.rb +28 -0
  113. data/lib/vector_salad/standard_shapes/iso_tri.rb +39 -0
  114. data/lib/vector_salad/standard_shapes/jitter.rb +33 -0
  115. data/lib/vector_salad/standard_shapes/move.rb +24 -0
  116. data/lib/vector_salad/standard_shapes/multi_path.rb +82 -0
  117. data/lib/vector_salad/standard_shapes/n.rb +112 -0
  118. data/lib/vector_salad/standard_shapes/oval.rb +51 -0
  119. data/lib/vector_salad/standard_shapes/path.rb +249 -0
  120. data/lib/vector_salad/standard_shapes/pentagon.rb +15 -0
  121. data/lib/vector_salad/standard_shapes/polygon.rb +37 -0
  122. data/lib/vector_salad/standard_shapes/rect.rb +34 -0
  123. data/lib/vector_salad/standard_shapes/rotate.rb +24 -0
  124. data/lib/vector_salad/standard_shapes/scale.rb +34 -0
  125. data/lib/vector_salad/standard_shapes/square.rb +34 -0
  126. data/lib/vector_salad/standard_shapes/transform.rb +20 -0
  127. data/lib/vector_salad/standard_shapes/triangle.rb +15 -0
  128. data/lib/vector_salad/standard_shapes/union.rb +28 -0
  129. data/lib/vector_salad/version.rb +3 -0
  130. data/vector_salad.gemspec +34 -0
  131. metadata +262 -0
@@ -0,0 +1,15 @@
1
+ require "vector_salad/standard_shapes/polygon"
2
+
3
+ module VectorSalad
4
+ module StandardShapes
5
+ class Pentagon < Polygon
6
+ # Create a regular pentagon.
7
+ #
8
+ # Examples:
9
+ # new(100)
10
+ def initialize(radius, **options)
11
+ super(5, radius, **options)
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,37 @@
1
+ require "contracts_contracts"
2
+ require "vector_salad/standard_shapes/path"
3
+ require "vector_salad/mixins/at"
4
+
5
+ module VectorSalad
6
+ module StandardShapes
7
+ class Polygon < BasicShape
8
+ include VectorSalad::Mixins::At
9
+ attr_reader :sides
10
+
11
+ # Create a regular polygon with a specified number of sides.
12
+ #
13
+ # Examples:
14
+ # new(6, 100)
15
+ Contract PolySides, Pos, {} => Polygon
16
+ def initialize(sides, radius, **options)
17
+ @sides, @radius = sides, radius
18
+ @options = options
19
+ @x, @y = 0, 0
20
+ self
21
+ end
22
+
23
+ def to_path
24
+ nodes = []
25
+ angle = 2 * Math::PI / @sides
26
+ theta = angle / 2 + Math::PI / 2
27
+ @sides.times do |n|
28
+ nodes[n] = []
29
+ nodes[n][0] = @radius * Math.cos(angle * n + theta) + @x
30
+ nodes[n][1] = @radius * Math.sin(angle * n + theta) + @y
31
+ end
32
+
33
+ Path.new(*nodes, **@options)
34
+ end
35
+ end
36
+ end
37
+ end
@@ -0,0 +1,34 @@
1
+ require "vector_salad/standard_shapes/path"
2
+ require "vector_salad/standard_shapes/n"
3
+ require "vector_salad/mixins/at"
4
+
5
+ module VectorSalad
6
+ module StandardShapes
7
+ class Rect < BasicShape
8
+ include VectorSalad::Mixins::At
9
+ attr_reader :width, :height
10
+
11
+ # Create a rectangle with specified width and height.
12
+ #
13
+ # Examples:
14
+ # new(100, 200)
15
+ Contract Pos, Pos, {} => Rect
16
+ def initialize(width, height, **options)
17
+ @width, @height = width, height
18
+ @options = options
19
+ @x, @y = 0, 0
20
+ self
21
+ end
22
+
23
+ def to_path
24
+ Path.new(
25
+ N.n(@x, @y),
26
+ N.n(@x, @y + @height),
27
+ N.n(@x + @width, @y + @height),
28
+ N.n(@x + @width, @y),
29
+ **@options
30
+ )
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,24 @@
1
+ require 'vector_salad/standard_shapes/transform'
2
+
3
+ module VectorSalad
4
+ module StandardShapes
5
+ class Rotate < Transform
6
+ # Rotates the contained shapes by the specified angle about the origin.
7
+ #
8
+ # Examples:
9
+ #
10
+ # rotate(45) do
11
+ # triangle(30, at: [50, -50])
12
+ # pentagon(40, at: [50, -100])
13
+ # end
14
+ Contract Num, { canvas: VectorSalad::Canvas }, Proc => Any
15
+ def initialize(angle, canvas:, **_options, &block)
16
+ instance_eval(&block) # inner_canvas is populated
17
+
18
+ @canvas.each do |shape|
19
+ canvas << shape.rotate(angle)
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,34 @@
1
+ require 'vector_salad/standard_shapes/transform'
2
+
3
+ module VectorSalad
4
+ module StandardShapes
5
+ class Scale < Transform
6
+ # Scale the contained shapes by multiplier about the origin.
7
+ # Supply just 1 multiplier to scale evenly, or x and y multipliers
8
+ # to stretch or squash the axies.
9
+ # @param x_multiplier 1 is no change, 2 is double size, 0.5 is half, etc.
10
+ #
11
+ # Examples:
12
+ #
13
+ # scale(2) do
14
+ # triangle(30, at: [50, -50])
15
+ # pentagon(40, at: [50, -100])
16
+ # end
17
+ #
18
+ # scale(2, 0.5) do
19
+ # triangle(30, at: [50, -50])
20
+ # pentagon(40, at: [50, -100])
21
+ # end
22
+ Contract Coord, Coord, { canvas: VectorSalad::Canvas }, Proc => Any
23
+ def initialize(x_multiplier,
24
+ y_multiplier = x_multiplier,
25
+ canvas:, **_options, &block)
26
+ instance_eval(&block) # inner_canvas is populated
27
+
28
+ @canvas.each do |shape|
29
+ canvas << shape.scale(x_multiplier, y_multiplier)
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,34 @@
1
+ require "vector_salad/standard_shapes/path"
2
+ require "vector_salad/standard_shapes/n"
3
+ require "vector_salad/mixins/at"
4
+
5
+ module VectorSalad
6
+ module StandardShapes
7
+ class Square < BasicShape
8
+ include VectorSalad::Mixins::At
9
+ attr_reader :size
10
+
11
+ # Create a square with equal width and height.
12
+ #
13
+ # Examples:
14
+ # new(100).detail 'Square sides 100x100 at 0,0.'
15
+ Contract Pos, {} => Square
16
+ def initialize(size, **options)
17
+ @size = size
18
+ @options = options
19
+ @x, @y = 0, 0
20
+ self
21
+ end
22
+
23
+ def to_path
24
+ Path.new(
25
+ N.n(@x, @y),
26
+ N.n(@x, @y + @size),
27
+ N.n(@x + @size, @y + @size),
28
+ N.n(@x + @size, @y),
29
+ **@options
30
+ )
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,20 @@
1
+ require 'contracts'
2
+ require 'contracts_contracts'
3
+
4
+ require 'vector_salad/dsl'
5
+ require 'vector_salad/canvas'
6
+ require 'vector_salad/standard_shapes/path'
7
+
8
+ module VectorSalad
9
+ module StandardShapes
10
+ class Transform
11
+ include VectorSalad::DSL
12
+ include VectorSalad::StandardShapes
13
+ include Contracts
14
+
15
+ def canvas
16
+ @canvas ||= VectorSalad::Canvas.new
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,15 @@
1
+ require "vector_salad/standard_shapes/polygon"
2
+
3
+ module VectorSalad
4
+ module StandardShapes
5
+ class Triangle < Polygon
6
+ # Create an equilateral triangle.
7
+ #
8
+ # Examples:
9
+ # new(100)
10
+ def initialize(radius, **options)
11
+ super(3, radius, **options)
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,28 @@
1
+ require 'vector_salad/standard_shapes/clip'
2
+ require 'vector_salad/standard_shapes/multi_path'
3
+
4
+ module VectorSalad
5
+ module StandardShapes
6
+ class Union < Clip
7
+ # Unite paths.
8
+ # The first path is used as the subject, subsequent paths are united
9
+ # with the first.
10
+ #
11
+ # Examples:
12
+ #
13
+ # Union.new do
14
+ # canvas << Path.new([0,0], [90,90], [0,90])
15
+ # canvas << Path.new([50,0], [95,0], [50, 70])
16
+ # end
17
+ #
18
+ # # Using DSL:
19
+ # union do
20
+ # path([0,0], [90,90], [0,90])
21
+ # path([50,0], [95,0], [50, 70])
22
+ # end
23
+ def initialize(**options, &block)
24
+ super(:union, **options, &block)
25
+ end
26
+ end
27
+ end
28
+ end
@@ -0,0 +1,3 @@
1
+ module VectorSalad
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,34 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path("../lib", __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'vector_salad/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "vector_salad"
8
+ spec.version = VectorSalad::VERSION
9
+ spec.authors = ["Simon George"]
10
+ spec.email = ["simon@sfcgeorge.co.uk"]
11
+ spec.summary = %q{An Intuitive Tool for Creating Art
12
+ and Practical Design with Code}
13
+ spec.description = %q{A tool aiming to intuitively enable designers with
14
+ basic programming experience such as front-end designer/developers to create
15
+ 2D vector graphics such as designs, icons and art using expressive code rather
16
+ than common GUI applications for a faster workflow.}
17
+ spec.homepage = "http://sfcg.im"
18
+ spec.license = "MIT"
19
+
20
+ spec.files = `git ls-files -z`.split("\x0")
21
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
22
+ spec.test_files = spec.files.grep(%r{^(test)/})
23
+ spec.require_paths = ["lib"]
24
+
25
+ spec.add_dependency "pretty_backtrace", "~> 0.1"
26
+ spec.add_dependency "ruby_clipper", "~> 5.0"
27
+ spec.add_dependency "spiro", "~> 0.0"
28
+ spec.add_dependency "contracts", "~> 0.7"
29
+
30
+ #spec.add_development_dependency "yard", "~> 0.8"
31
+ #spec.add_development_dependency "yard-contracts"#, "~> 0.1"
32
+ spec.add_development_dependency "bundler", "~> 1.7"
33
+ spec.add_development_dependency "rake", "~> 10.0"
34
+ end
metadata ADDED
@@ -0,0 +1,262 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: vector_salad
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Simon George
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-05-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: pretty_backtrace
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: ruby_clipper
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '5.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: spiro
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '0.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: contracts
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.7'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.7'
69
+ - !ruby/object:Gem::Dependency
70
+ name: bundler
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.7'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '1.7'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rake
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '10.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '10.0'
97
+ description: |-
98
+ A tool aiming to intuitively enable designers with
99
+ basic programming experience such as front-end designer/developers to create
100
+ 2D vector graphics such as designs, icons and art using expressive code rather
101
+ than common GUI applications for a faster workflow.
102
+ email:
103
+ - simon@sfcgeorge.co.uk
104
+ executables:
105
+ - vector_salad
106
+ extensions: []
107
+ extra_rdoc_files: []
108
+ files:
109
+ - ".gitignore"
110
+ - Gemfile
111
+ - LICENSE.txt
112
+ - README.md
113
+ - Rakefile
114
+ - bin/vector_salad
115
+ - examples/birthday.png
116
+ - examples/birthday.rb
117
+ - examples/birthday.svg
118
+ - examples/boolean_operations.png
119
+ - examples/boolean_operations.rb
120
+ - examples/boolean_operations.svg
121
+ - examples/bp_logo.png
122
+ - examples/bp_logo.rb
123
+ - examples/bp_logo.svg
124
+ - examples/bunny_card.png
125
+ - examples/bunny_card.rb
126
+ - examples/bunny_card.svg
127
+ - examples/chill.png
128
+ - examples/chill.rb
129
+ - examples/chill.svg
130
+ - examples/circle_line_segments.png
131
+ - examples/circle_line_segments.rb
132
+ - examples/circle_line_segments.svg
133
+ - examples/circles.png
134
+ - examples/circles.rb
135
+ - examples/circles.svg
136
+ - examples/clip_operations.png
137
+ - examples/clip_operations.rb
138
+ - examples/clip_operations.svg
139
+ - examples/cog_menu.png
140
+ - examples/cog_menu.rb
141
+ - examples/cog_menu.svg
142
+ - examples/cubic_bezier_handles.png
143
+ - examples/cubic_bezier_handles.rb
144
+ - examples/cubic_bezier_handles.svg
145
+ - examples/cubic_circle.png
146
+ - examples/cubic_circle.rb
147
+ - examples/cubic_circle.svg
148
+ - examples/face.png
149
+ - examples/face.rb
150
+ - examples/face.svg
151
+ - examples/flower.png
152
+ - examples/flower.rb
153
+ - examples/flower.svg
154
+ - examples/fox.png
155
+ - examples/fox.rb
156
+ - examples/fox.svg
157
+ - examples/fresh_vector_salad_gui.png
158
+ - examples/galaxies.png
159
+ - examples/galaxies.rb
160
+ - examples/galaxies.svg
161
+ - examples/gold_stars.png
162
+ - examples/gold_stars.rb
163
+ - examples/gold_stars.svg
164
+ - examples/paths.png
165
+ - examples/paths.rb
166
+ - examples/paths.svg
167
+ - examples/pepsi_logo.png
168
+ - examples/pepsi_logo.rb
169
+ - examples/pepsi_logo.svg
170
+ - examples/polygons.png
171
+ - examples/polygons.rb
172
+ - examples/polygons.svg
173
+ - examples/quadratic_bezier_handle.png
174
+ - examples/quadratic_bezier_handle.rb
175
+ - examples/quadratic_bezier_handle.svg
176
+ - examples/rects.png
177
+ - examples/rects.rb
178
+ - examples/rects.svg
179
+ - examples/simple_path.png
180
+ - examples/simple_path.rb
181
+ - examples/simple_path.svg
182
+ - examples/space.png
183
+ - examples/space.rb
184
+ - examples/space.svg
185
+ - examples/spiro_nodes.png
186
+ - examples/spiro_nodes.rb
187
+ - examples/spiro_nodes.svg
188
+ - examples/squares.png
189
+ - examples/squares.rb
190
+ - examples/squares.svg
191
+ - examples/stars.png
192
+ - examples/stars.rb
193
+ - examples/stars.svg
194
+ - examples/transforms.png
195
+ - examples/transforms.rb
196
+ - examples/transforms.svg
197
+ - examples/triangles.png
198
+ - examples/triangles.rb
199
+ - examples/triangles.svg
200
+ - lib/contracts_contracts.rb
201
+ - lib/vector_salad.rb
202
+ - lib/vector_salad/canvas.rb
203
+ - lib/vector_salad/dsl.rb
204
+ - lib/vector_salad/export_with_magic.rb
205
+ - lib/vector_salad/exporters/base_exporter.rb
206
+ - lib/vector_salad/exporters/svg_exporter.rb
207
+ - lib/vector_salad/interpolate.rb
208
+ - lib/vector_salad/magic.rb
209
+ - lib/vector_salad/mixins/at.rb
210
+ - lib/vector_salad/shape_proxy.rb
211
+ - lib/vector_salad/standard_shapes/basic_shape.rb
212
+ - lib/vector_salad/standard_shapes/circle.rb
213
+ - lib/vector_salad/standard_shapes/clip.rb
214
+ - lib/vector_salad/standard_shapes/custom.rb
215
+ - lib/vector_salad/standard_shapes/difference.rb
216
+ - lib/vector_salad/standard_shapes/exclusion.rb
217
+ - lib/vector_salad/standard_shapes/flip.rb
218
+ - lib/vector_salad/standard_shapes/hexagon.rb
219
+ - lib/vector_salad/standard_shapes/intersection.rb
220
+ - lib/vector_salad/standard_shapes/iso_tri.rb
221
+ - lib/vector_salad/standard_shapes/jitter.rb
222
+ - lib/vector_salad/standard_shapes/move.rb
223
+ - lib/vector_salad/standard_shapes/multi_path.rb
224
+ - lib/vector_salad/standard_shapes/n.rb
225
+ - lib/vector_salad/standard_shapes/oval.rb
226
+ - lib/vector_salad/standard_shapes/path.rb
227
+ - lib/vector_salad/standard_shapes/pentagon.rb
228
+ - lib/vector_salad/standard_shapes/polygon.rb
229
+ - lib/vector_salad/standard_shapes/rect.rb
230
+ - lib/vector_salad/standard_shapes/rotate.rb
231
+ - lib/vector_salad/standard_shapes/scale.rb
232
+ - lib/vector_salad/standard_shapes/square.rb
233
+ - lib/vector_salad/standard_shapes/transform.rb
234
+ - lib/vector_salad/standard_shapes/triangle.rb
235
+ - lib/vector_salad/standard_shapes/union.rb
236
+ - lib/vector_salad/version.rb
237
+ - vector_salad.gemspec
238
+ homepage: http://sfcg.im
239
+ licenses:
240
+ - MIT
241
+ metadata: {}
242
+ post_install_message:
243
+ rdoc_options: []
244
+ require_paths:
245
+ - lib
246
+ required_ruby_version: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ required_rubygems_version: !ruby/object:Gem::Requirement
252
+ requirements:
253
+ - - ">="
254
+ - !ruby/object:Gem::Version
255
+ version: '0'
256
+ requirements: []
257
+ rubyforge_project:
258
+ rubygems_version: 2.4.5
259
+ signing_key:
260
+ specification_version: 4
261
+ summary: An Intuitive Tool for Creating Art and Practical Design with Code
262
+ test_files: []