Gambas Documentation
Documents

Color.Contrast (gb.image)

Static Function Contrast ( Color1 As Integer, Color2 As Integer ) As Float

Since 3.21

Return the contrast between two colors as a number between 0 and 1.

  • 0 means that the two colors are the same (or almost).

  • 1 is the highest contrast possible.