color_palette_generator 1.0.3
color_palette_generator: ^1.0.3

Dart native js
Flutter Android iOS web

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

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

2
likes
110
pub points
57%
popularity

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

Uploader

gracilianomp@gmail.com

License

Apache 2.0 (LICENSE)

Dependencies

swiss_knife

More

Packages that depend on color_palette_generator