Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a Color class #326

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion docs/api.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ is deprecated (see :ref:`What's New <whats_new>`). However, proplot adheres to
deprecated functionality will still work and issue warnings rather than errors
until the first major release (version 1.0.0).

.. important::

The color transformation functions like `to_rgba` and `scale_luminance` from
proplot < 0.10.0 can now be found as methods on the new `~proplot.colors.Color`
class. Note that old code that uses commands like ``pplt.to_rgba()`` and
``pplt.scale_luminance()`` will still work (but result in a deprecation warning).

.. important::

The documentation for "wrapper" functions like `standardize_1d` and `cmap_changer`
Expand Down Expand Up @@ -132,4 +139,4 @@ Miscellaneous functions

.. automodsumm:: proplot.utils
:toctree: api
:skip: shade, saturate
:skip: shade, saturate get_colors, set_hue, set_saturation, set_luminance, set_alpha, shift_hue, scale_saturation, scale_luminance, to_hex, to_rgb, to_xyz, to_rgba, to_xyza
Loading