Skip to content

Version 2.1.0

Choose a tag to compare

@dmester dmester released this 15 Apr 17:25
· 122 commits to master since this release

Changes:

  • The following methods were deprecated since they don't do what their names say they do:
    • Color.FromArgb (use Color.FromRgba instead)
    • Color.ToArgb (use Color.ToRgba instead)
  • IdenticonStyle.Saturation is now deprecated. Use IdenticonStyle.ColorSaturation instead.

Improvements:

  • New IdenticonStyle options: ColorSaturation, GrayscaleSaturation, Hues.
  • New Identicon.DefaultStyle property.
  • New Color.FromHsl overload accepting an alpha value.
  • New methods Color.Parse and Color.TryParse able to parse most CSS color strings.
  • New methods Color.FromHwb, Color.FromRgba, Color.ToRgba.
  • @Html.Identicon and @Url.Identicon overloads taking an Identicon instance no longer requires a size, since the Identicon instance already contain a size.
  • Improved error handling in @Html and @Url extension methods.

Bug fixes:

  • Some circle shapes were rendered slightly larger than the JS and PHP version.
  • Smaller circles were rendered very badly to PNG in smaller sizes.
  • Padding is now rounded instead of truncated to nearest integer to avoid floating point rounding errors.