VOOZH about

URL: https://www.geeksforgeeks.org/node-js/node-js-gm-gamma-function/

⇱ Node.js GM gamma() Function - GeeksforGeeks


  • Courses
  • Tutorials
  • Interview Prep

Node.js GM gamma() Function

Last Updated : 28 Apr, 2025

The gamma() function is an inbuilt function in the GraphicsMagick library which is used to level of gamma correction. The function returns the true value on success. 

Syntax:

gamma(red, green, blue)

Parameters: This function accepts three parameters as red, green, and blue which correct the gamma level of red, green, and blue colors respectively. 

Return Value: This function returns the GraphicsMagick object. 

Example 1: 

Output:

 👁 Image
 

Example 2: 

Output: 

👁 Image
 

Reference:

Comment

Explore