alpha = map(z, min, max, 0, 255).

Like by