Skip to content

Commit

Permalink
Improving curve_to expert sample
Browse files Browse the repository at this point in the history
No need to use each_with_index on @controllers either.
  • Loading branch information
IanTrudel committed Feb 21, 2017
1 parent 7c9ad1b commit f498d7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/expert-curve-control-points.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
xy.each { |n|
(@controllers ||= []) << oval(:left => n[0], :top => n[1], :radius => 10, :center => true)
}
@controllers.each_with_index { |n, index|
@controllers.each { |n|
n.click do |btn, left, top|
n.style :fill => red
@controller = n
Expand Down

0 comments on commit f498d7d

Please sign in to comment.