complimentary_colors 1.0.3
complimentary_colors: ^1.0.3

Dart native js
Flutter Android iOS web

An easy to use Dart package for calculating complimentary colors.

example/example.dart

import 'package:color/color.dart';
import 'package:complimentary_colors/complimentary_colors.dart';

void main() {
  var givenHexColor = HexColor('FF0000');
  var givenHslColor = HslColor(270, 100, 100);
  var givenRgbColor = RgbColor(255, 132, 91);

  //Get the complimentary color of 'FF0000';
  var complimentaryHexColor =
      CalculateComplimentaryColor.fromHex(givenHexColor);
  print('givenHexColor = $givenHexColor');
  print('complimentaryHexColor = $complimentaryHexColor');

  //Get the complimentary color of Hsl(270, 100, 100);
  var complimentaryHslColor =
      CalculateComplimentaryColor.fromHsl(givenHslColor);
  print('givenHslColor = $givenHslColor');
  print('complimentaryHslColor = $complimentaryHslColor');

  //Get the complimentary color of Rgb(255, 132, 91);
  var complimentaryRgbColor =
      CalculateComplimentaryColor.fromRgb(givenRgbColor);
  print('givenRgbColor = $givenRgbColor');
  print('complimentaryRgbColor = $complimentaryRgbColor');
}
1
likes
110
pub points
66%
popularity

An easy to use Dart package for calculating complimentary colors.

Repository (GitHub)
View/report issues

Documentation

API reference

Uploader

dokoeoko@gmail.com

License

GPL 3.0 (LICENSE)

Dependencies

color

More

Packages that depend on complimentary_colors