brighten method

void brighten(
  1. double amount
)

Brighten the shade of the Color in the Paint object by the amount.

amount is a double between 0 and 1.

Based on: https://stackoverflow.com/a/60191441.

Implementation

void brighten(double amount) {
  color = color.brighten(amount);
}