color_models 2.0.0 copy "color_models: ^2.0.0" to clipboard
color_models: ^2.0.0 copied to clipboard

A set of classes representing the CMYK, HSI, HSL, HSP, HSB, LAB, Oklab, RGB, and XYZ color spaces with methods to convert colors between each space.

Use this package as a library

Depend on it

Run this command:

With Dart:

 $ dart pub add color_models

With Flutter:

 $ flutter pub add color_models

This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get):

dependencies:
  color_models: ^2.0.0

Alternatively, your editor might support dart pub get or flutter pub get. Check the docs for your editor to learn more.

Import it

Now in your Dart code, you can use:

import 'package:color_models/color_models.dart';
15
likes
140
points
46.8k
downloads

Publisher

verified publisherjamesalex.dev

Weekly Downloads

A set of classes representing the CMYK, HSI, HSL, HSP, HSB, LAB, Oklab, RGB, and XYZ color spaces with methods to convert colors between each space.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

meta, num_utilities, powers

More

Packages that depend on color_models