lincover

screens.remap.lincover(a, n)[source] [edit on github]

Cover the range spanned by a in n points.

Create an array that exactly covers the range spanned by a, i.e., a.min() is at the lower border of the first pixel and a.max() is at the upper border of the last pixel.

aarray

Holding the values the range of which should be convered.

nint

Number of points to use.

Returns:
outarray

Linearly increasing values.