color_converter 0.2.1 copy "color_converter: ^0.2.1" to clipboard
color_converter: ^0.2.1 copied to clipboard

dart color converter library. suitable for create, convert, and edit colors. It converts all ways between RGB, CMYK, HSB, HSL, XYZ, LAB.

example/lib/main.dart

import 'package:color_converter/color_converter.dart';

void main() {
  final rgbColor = RGB(r: 234, g: 235, b: 120);
  print(rgbColor.toString());
  print(rgbColor.toHex());
  print(rgbColor.toCmyk());
  print(rgbColor.toHsb());
  print(rgbColor.toHsl());
  print(rgbColor.toLab());
  print(rgbColor.toXyz());
  print(rgbColor == CMYK(c: 0, m: 0, y: 49, k: 8));
}
9
likes
140
points
1.1k
downloads

Publisher

verified publisherrmzycoder.ir

Weekly Downloads

dart color converter library. suitable for create, convert, and edit colors. It converts all ways between RGB, CMYK, HSB, HSL, XYZ, LAB.

Repository (GitHub)

Documentation

API reference

License

BSD-3-Clause (license)

More

Packages that depend on color_converter