Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Readme
.. image:: docs/source/_static/image/readme_palette_picker.png :width: 800px
colorir is a package used to create and manipulate palettes and colors.
What makes colorir different from other similar packages like colour <https://pypi.org/project/colour/>
_ and
palettable <https://pypi.org/project/palettable/>
_ is that colorir focuses on personalization and interoperability:
you can create your own color palettes and use them with any other python package such as matplotlib, tkinter
or flask.
It is very easy to create an original and attractive color palette with colorir:
.. code-block:: python
import colorir as cl
grad = cl.PolarGrad(["ffff00", "ff00ff"]) # Creates a gradient from yellow to magenta
palette = cl.StackPalette(grad.n_colors(5)) # Samples 5 colors along the gradient and creates a palette with them
palette *= cl.HCLab(1, 0.5, 1) # Desaturates the palette 50% to get a more pleasing look
cl.swatch(palette) # Shows the palette we created in the terminal
.. image:: docs/source/_static/image/readme_palette.png
colorir also works seamlessly with other python packages and you don't have to convert colorir objects to pass them as input to other frameworks:
.. code-block:: python
import matplotlib.pyplot as plt
plt.pie([0.25, 0.15, 0.20, 0.20, 0.20], colors=palette)
plt.show()
.. image:: docs/source/_static/image/readme_pie_chart.png :width: 300px
For more information (including use-cases and examples), see colorir's documentation here <https://colorir.readthedocs.io/en/latest/>
_.
FAQs
A python package for easy management of colors and palettes.
We found that colorir demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.