Skip to content

Add standard colors shortcuts #161

Open
@opatiny

Description

@opatiny

I would find it cool to be able to pass colors as strings to some functions. Could we add an enum with a bunch of "standard" colors?

export enum Colors {
  red = [255,0,0],
  green = [0,255,0],
  blue = [0,0,255],
  ...
}

The issue however is to handle the bit depth of the image, and wether there is an alpha, which I don't know how to do in a smart way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions