We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42faafc commit 9a32610Copy full SHA for 9a32610
image_filtering/pixelate.rb
@@ -29,5 +29,6 @@ def draw
29
end
30
31
def make_even(source)
32
- (source / 2.0).floor * 2
+ return source.floor if source.floor.even?
33
+ (source / 2).floor * 2
34
0 commit comments