Skip to content

Conversation

@craigfowler
Copy link
Member

This will resolve #275. It adds a new representation of Color which may be formatted-to/parsed-from string representations of color as used by various web browser.

It is compatible with all the representations of color as used on the web.

It also offers conversion to/from the System.Drawing.Color object.

This contains everything except for the string parsing of colors
and, of course, unit tests.
Copy link
Member Author

@craigfowler craigfowler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that in .NET 6 and up, this struct is a readonly record struct, which offers enhanced functionality. In lower .NET versions, it is a plain old struct.

@sonarqubecloud
Copy link

Quality Gate Failed Quality Gate failed

Failed conditions
0.0% Coverage on New Code (required ≥ 80%)

See analysis details on SonarQube Cloud

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Create and contribute a color class for .NET

2 participants