enthought / enthought/pyface

Add an immutable color type

Open
#934 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
115
Forks
54
PR merge metrics
No merged PRs in 30d

Description

Currently there is an issue with the use of the new Color objects in that they are heavy-weight traits objects designed for backing a colour editor or other situation where the individual components might be being manipulated.

However in many cases the use-case for colors is ephemeral, or the colors are unlikely to change in a fine-grained way. For these cases the overhead of setting up all the traits infrastructure is excessive. An immutable class that shares much of its API with the current Color class may be useful: in particular if it shares the same methods for conversion to/from toolkit colors and, ideally, is compatible with Enable's expectation of colors.

It may make sense to encode the common API in a formal interface.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.