Method: Vips::Image#%

Defined in:
lib/vips8/image.rb

#%(other) ⇒ Image

Remainder after integer division with an image, constant or array.

Parameters:

  • other (Image, Real, Array<Real>)

    self modulo this

Returns:

  • (Image)

    result of modulo


763
764
765
766
# File 'lib/vips8/image.rb', line 763

def %(other)
    other.is_a?(Vips::Image) ? 
        remainder(other) : remainder_const(other)
end