color_palette_generator 2.0.1 copy "color_palette_generator: ^2.0.1" to clipboard
color_palette_generator: ^2.0.1 copied to clipboard

Color palette generator, capable to generate N colors using a set of basic colors. Supports HEX and RGBA colors.

color_palette_generator #

pub package Dart CI GitHub Tag New Commits Last Commits Pull Requests Code size License

Color palette generator, capable to generate N colors using a set of basic colors.

Supports HEX and RGBA colors.

Usage #

A simple usage example:

import 'package:color_palette_generator/color_palette_generator.dart';

void main() {

  var basicPalette = ColorPalette.from(['#ff0000','#00ff00','rgba(0,0,255, 0.50)']) ;

  print( 'basicPalette: $basicPalette' ) ;
  // OUTPUT: basicPalette: [#ff0000, #00ff00, rgba(0, 0, 255, 0.5)]

  var colorGenerator = ColorGeneratorFromBasicPalette(basicPalette) ;

  var expandedPalette = colorGenerator.generatePaletteAsColorPalette(6) ;

  print( 'expandedPalette: $expandedPalette' ) ;
  // OUTPUT: basicPalette: [#ff6161, #ff0000, #00ff00, rgba(0, 0, 255, 0.5), #a80000, #00a800]

}

Features and bugs #

Please file feature requests and bugs at the issue tracker.

Colossus.Services #

This is an open-source project from Colossus.Services: the gateway for smooth solutions.

Author #

Graciliano M. Passos: gmpassos@GitHub.

License #

Apache License - Version 2.0

4
likes
160
pub points
57%
popularity

Publisher

unverified uploader

Color palette generator, capable to generate N colors using a set of basic colors. Supports HEX and RGBA colors.

Repository (GitHub)
View/report issues

Documentation

API reference

License

Apache-2.0 (license)

Dependencies

swiss_knife

More

Packages that depend on color_palette_generator