Skip to content

Add functions for blending and overlaying #9

@AshleyYakeley

Description

@AshleyYakeley

I'm not sure if there's already an easy way to do this, but it would be nice to have some of the same functionality that colour has. Something like:

  • blend :: (...) => e -> Color cs e -> Color cs e -> Color cs e
  • over :: (...) => Color (Alpha cs) e -> Color cs e -> Color cs e
  • overAlpha :: (...) => Color (Alpha cs) e -> Color (Alpha cs) e -> Color (Alpha cs) e

As I understand it, in colour, blends are always done in linear space.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions