brightness.average -r (p_rgb color)              brightness.hypotenuse -r (p_rgb color)
{                                                {
  with (color)                                     with (color)
  {                                                {
    return math:round ((->red +                      return math:round (math:sqrt ((->red ** 2 +
                        ->green +                                                   ->green ** 2 +
                        ->blue) / 3);                                               ->blue ** 2) / 3));
  }                                                }
}                                                }