gsPsychologic function

int gsPsychologic(
  1. int r,
  2. int g,
  3. int b
)

Implementation

int gsPsychologic(int r, int g, int b) =>
    (r * 0.299 + g * 0.587 + b * 0.114).round();