1.0.24 • Published 3 years ago

@dream-bit/color-utils v1.0.24

Weekly downloads
-
License
MPL-2.0
Repository
github
Last release
3 years ago

NPM

Some helper utilities used when working with colors. On a side note, this module was born because we did work on a NFT Project with random Pixel-Data which needed the functions in this package.

🎓 Install

Just use npm install, yarn add or pnpm install, it's your choice. The package name is: @dream-bit/color-utils

🎉 Usage

You will find all necessary information about the functions in their own documentation. Docs: https://dream-bit-de.github.io/dream-bit-utils/packages/color-utils/docs/

Short explanation:

  • normalizeColor(color: string | number): number: This function will normalize RGB or RGBA colors from string to integers for Jimp to use.
  • normalizeHLSToRGB(h: number, s: number, l: number, rgb?: { b: number; g: number; r: number }): { b: number; g: number; r: number }: This method converts HSL color values to RGB color values.

⭐ contributing

You want to help us, and join the Dream-bit Community? Great! Please make sure to check out and understand what is written in the following files:

  • CODE-OF-CONDUCT.md
  • CONTRIBUTING.md

😊 About Dream-bit

At dream-bit dreams become software! We encourage people to do good things with software and bring humanity forward. You can be a part of us by contributing or joining the community at https://dream-bit.de

Develop software with your ❤️ as your 🧠.

1.0.24

3 years ago

1.0.23

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.22

3 years ago

1.0.21

3 years ago

1.0.20

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago