palette icon indicating copy to clipboard operation
palette copied to clipboard

Consider replacing `Default` implementations with a `Black` trait or similar

Open Ogeon opened this issue 2 years ago • 0 comments

Description

Replace the current Default implementations with more "regular" versions that just sets the component values to their defaults. There should rather be a trait, such as Black (and White), or constants for the current use, to make the intent more explicit.

Motivation

The current Default implementations require more than just Default from the component values and the semantics get a bit weird with struct-of-arrays values. Separating the "default value" and "black color" concepts would make this less ambiguous.

Ogeon avatar Apr 29 '23 15:04 Ogeon