paperFleckAlpha function

int paperFleckAlpha(
  1. int g
)

Alpha (of 255) of the darkest black grain texel at grain g ‰.

Implementation

int paperFleckAlpha(int g) =>
    (255 * paperFleckMaxPermille * g + 500000) ~/ 1000000;