okcolor 1.1.0 copy "okcolor: ^1.1.0" to clipboard
okcolor: ^1.1.0 copied to clipboard

A Dart package for working with colors in the Oklab color space, providing utilities for color manipulation, conversion, and analysis.

Use this package as a library

Depend on it

Run this command:

With Flutter:

 $ flutter pub add okcolor

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

dependencies:
  okcolor: ^1.1.0

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

Import it

Now in your Dart code, you can use:

import 'package:okcolor/converters/lab_lch.dart';
import 'package:okcolor/converters/rgb_okhsl.dart';
import 'package:okcolor/converters/rgb_okhsv.dart';
import 'package:okcolor/converters/rgb_oklab.dart';
import 'package:okcolor/converters/xyz_lab.dart';
import 'package:okcolor/converters/xyz_rgb.dart';
import 'package:okcolor/models/extensions.dart';
import 'package:okcolor/models/misc.dart';
import 'package:okcolor/models/okcolor.dart';
import 'package:okcolor/models/okhsl.dart';
import 'package:okcolor/models/okhsv.dart';
import 'package:okcolor/models/oklab.dart';
import 'package:okcolor/models/oklch.dart';
import 'package:okcolor/utils/common.dart';
import 'package:okcolor/utils/gamut_clipping.dart';
import 'package:okcolor/utils/lerp.dart';
import 'package:okcolor/utils/rgb_gamut_intersection.dart';
4
likes
140
points
554
downloads

Publisher

verified publishereliseyozerov.com

Weekly Downloads

A Dart package for working with colors in the Oklab color space, providing utilities for color manipulation, conversion, and analysis.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

collection, flutter, vector_math

More

Packages that depend on okcolor