thesadrogue / TheSadRogue.Primitives

A collection of primitive data structures for working with a 2-dimensional grid.
MIT License
21 stars 6 forks source link

Ansi* members of Color should be adjusted for defensive copying #45

Closed ghost closed 4 years ago

ghost commented 4 years ago

https://github.com/thesadrogue/TheSadRogue.Primitives/blob/master/TheSadRogue.Primitives/Color.cs#L378

These members came from SadConsole as extensions to the MonoGame Color object. They did allow a redefinition (just for flexibility) but with these members being on the primitive type, and SadConsole providing other ways of change color definitions, these should be just as restricted as the normal color definitions.