easyreveal / com.jem.easyreveal.clippathproviders / RandomLineClipPathProvider / randomLineArrayList

randomLineArrayList

var randomLineArrayList: ArrayList<Int>

ArrayList of random integers in the range 1..100

The idea is to have pseudo random lines, Arraylist is directly used instead of getting true Random() values, to prevent any delays during reveal/hide animation & also to enable smooth recovery during animation swapping.

Exceptions

IllegalArgumentException - thrown when arrayList size is not 100 or when values are not in the range 1..100