complimentary_colors 1.0.3 complimentary_colors: ^1.0.3 copied to clipboard
An easy to use Dart package for calculating complimentary colors.
Complimentary Colors #
A Dart package for finding complimentary colors.
- Add this to your package's
dependencies: complimentary_colors: any
- Get the package using your IDE's GUI or via command line with
$ pub get
- Import the
complimentary_colors.dartfile in your app
To get the complimentary color of a hex value
HexColor givenColor = new HexColor("FF0000"); HexColor complimentaryColor = CalculateComplimentaryColor.fromHex(givenColor)
To get the complimentary color of a hsl value
HslColor givenColor = new HslColor(270, 100, 100); HslColor complimentaryColor = CalculateComplimentaryColor.fromHsl(givenColor)
To get the complimentary color of a rgb value
RgbColor givenColor = new RgbColor(270, 100, 100); RgbColor complimentaryColor = CalculateComplimentaryColor.fromRgb(givenColor)