columns property

int columns

Compute the number of columns the image has by using the image width and tile size.

Implementation

int get columns => image.width ~/ srcSize.x;