VOOZH about

URL: https://www.geeksforgeeks.org/python/pgmagick-wave-method-python/

⇱ Pgmagick wave() method - Python - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Pgmagick wave() method - Python

Last Updated : 26 May, 2020
The wave() function is an inbuilt function in the Pgmagick library which is used to alter an image along with a sine wave. The function returns the true value on success.
Syntax:
wave(amplitude, wavelength)
Parameters: This function accept two parameters as mentioned above and described below:
  • amplitude: This parameter stores the value of the amplitude of the sine wave.
  • wavelength: This parameter stores the value of the wavelength of the sine wave.
Return Value: This function returns the Pgmagick object with image added.
Input Image: 👁 Image
Example 1: Output: 👁 Image
Example 2:
Output: 👁 Image
Comment
Article Tags: