Skip to content

bevy_color: migrate color conversion code from bevy_render #12068

@viridia

Description

@viridia

Currently, bevy_color uses color conversion functions contained in bevy_render. This means that bevy_color depends on bevy_render. This dependency should be the other way around - bevy_color should be a lower-level dependency of bevy_render.

To fix this, a number of modules will need to be moved:

  • The colorspace module in bevy_render should be moved to bevy_color.
  • The From impls that convert between the old legacy color type to the new color types should be moved to bevy_render.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-RenderingDrawing game state to the screenC-Code-QualityA section of code that is hard to understand or change

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions