of static method

  1. @Deprecated('Use [DynamicScheme] for color scheme generation.' 'Use [CorePalettes] for core palettes container class.')
CorePalette of(
  1. int argb
)

Create a CorePalette from a source ARGB color.

Implementation

@Deprecated(
  'Use [DynamicScheme] for color scheme generation.'
  'Use [CorePalettes] for core palettes container class.',
)
static CorePalette of(int argb) {
  final cam = Cam16.fromInt(argb);
  return CorePalette._(cam.hue, cam.chroma);
}