next_highest_power_of_2

toasty.pyramid.next_highest_power_of_2(n)[source]

Ugh, this implementation is so dumb.

We also assume that we are being called in a tiling context, in which case numbers less than 256 should be bumped up to 256 (the number of pixels in a single tile).