color_palette_generator

pub package 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

Libraries

color_palette_generator