Skip to content

v1.3.1

Latest
Compare
Choose a tag to compare
@jjonescz jjonescz released this 26 Apr 17:01
· 83 commits to master since this release
0dbb45b

💅 Improvements

  • You can get color for an item from WordCloudGenerator - it uses the configured colorizer (and returns null if the colorizer doesn't provide color - to avoid that, you can use GetColorHexStringOrDefault which returns the text color configured in WordCloudInput or black). For example, in a loop:
    var wcg = new WordCloudGenerator<SKBitmap>(...);
    foreach (var (item, fontSize) in wcg.Arrange())
    {
        var color = wcg.GetColorHexString(item);
        // ...
    }