Brian Dunning's FileMaker Custom Functions

GrayScale ( color )

Returns the given color turned to grey as compound RGB color

  Average rating: 4.3 (31 votes) Log in to vote

Theo Ros   Theo Ros
n/a
n/a

Share on Facebook Share on Twitter

  Sample input:
GrayScale ( RGB ( 64 ; 92 ; 128 ) )
  Sample output:
5789784

  Function definition: (Copy & paste into FileMaker's Edit Custom Function window)

Returns the given color turned to grey as compound RGB color.
This function calculates the value as 'TRUE' (Photographic) gray

In: color - the compound color to calculate the greyscale from

GrayScale ( RGB ( 64 ; 92 ; 128 ) ) --> 5789784

Note: Calculations in this formula are in Dutch numberformat (decimal COMMA). Change this if your regional settings use decimal POINTS.

Theo Ros

 

Comments

Log in to post comments.

 

Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.

Under construction. Email me your wish list for improvements.