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));
}
10
likes
120
pub points
75%
popularity

Publisher

verified publisherrmzycoder.ir

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

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (LICENSE)

More

Packages that depend on color_converter