Skip to content

Commit

Permalink
More mathn shenanigans
Browse files Browse the repository at this point in the history
  • Loading branch information
bfoz committed Mar 24, 2024
1 parent 59ad7ee commit fb086ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sketch/dsl.rb
Expand Up @@ -295,7 +295,7 @@ def repeat(center:Geometry::Point.zero, **options, &block)
count = step.map {|s| s.zero? ? 1 : count}.to_a
end

start_point = center + Point[-step.x * (count.first-1)/2, -step.y * (count.last-1)/2]
start_point = center + Point[-step.x * (count.first-1).to_r/2, -step.y * (count.last-1).to_r/2]

if block_given?
count.last.times do |y|
Expand Down

0 comments on commit fb086ee

Please sign in to comment.