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

outdated

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
0
points
1.34k
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)
View/report issues

License

unknown (license)

Dependencies

flutter

More

Packages that depend on color_converter