Method: Processing::Image#filter

Defined in:
lib/processing/image.rb

#filter(*args) ⇒ Object

Applies an image filter.

overload filter(shader) overload filter(type) overload filter(type, param)

Parameters:

  • shader (Shader)

    a fragment shader to apply

  • type (THRESHOLD, GRAY, INVERT, BLUR)

    filter type

  • param (Numeric)

    a parameter for each filter

See Also:



128
129
130
# File 'lib/processing/image.rb', line 128

def filter(*args)
  @filter = Shader.createFilter__(*args)
end