Skip to content

Generic Color Structs #42

@ds5678

Description

@ds5678

Many of the current color structs could be replaced by a handful of generic versions:

  • ColorR<T>
  • ColorRG<T>
  • ColorRGB<T>
  • ColorRGBA<T>
  • ColorA<T>

These would be enabled by a pair of helper methods:

static T GetMinimumChannelValue<T>();
static T GetMaximumChannelValue<T>();

The implementation of these would take advantage of JIT optimized code generation to avoid any performance issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions