hasColors method

bool hasColors([
  1. dynamic count,
  2. dynamic env
])

Returns true if this stream supports at least as many colors as provided in count.

Minimum support is 2 (black and white).

This has the same false positives and negatives as described in getColorDepth.

Implementation

external bool hasColors([dynamic count, dynamic env]);