Skip to main content

apiverve_colorconverter 1.2.3 copy "apiverve_colorconverter: ^1.2.3" to clipboard
apiverve_colorconverter: ^1.2.3 copied to clipboard

Color Converter translates color values across hex, RGB, CMYK, and named inputs into standard RGB formats and channel breakdowns. Paid plans expand output to include CMYK, HSL, ANSI 16-color codes, an [...]

Color Converter API - Dart/Flutter Client #

Color Converter translates color values across hex, RGB, CMYK, and named inputs into standard RGB formats and channel breakdowns. Paid plans expand output to include CMYK, HSL, ANSI 16-color codes, and recognized English color names.

pub package License: MIT

This is the Dart/Flutter client for the Color Converter API.

Installation #

Add this to your pubspec.yaml:

dependencies:
  apiverve_colorconverter: ^1.2.3

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage #

import 'package:apiverve_colorconverter/apiverve_colorconverter.dart';

void main() async {
  final client = ColorconverterClient('YOUR_API_KEY');

  try {
    final response = await client.execute({
      'hex': 'FF0000'
    });

    print('Status: ${response.status}');
    print('Data: ${response.data}');
  } catch (e) {
    print('Error: $e');
  }
}

Response #

{
  "status": "ok",
  "error": null,
  "data": {
    "hex": "#FF0000",
    "rgb": "255, 0, 0",
    "hsl": "0, 100, 50",
    "cmyk": "0, 100, 100, 0",
    "ansi16": 91,
    "name": "red",
    "channels": {
      "rgbChannels": 3,
      "cmykChannels": 4,
      "ansiChannels": 1,
      "hexChannels": 1,
      "hslChannels": 3
    }
  }
}

API Reference #

Authentication #

All requests require an API key. Get yours at apiverve.com.

License #

MIT License - see LICENSE for details.


Built with Dart for APIVerve

0
likes
120
points
138
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Color Converter translates color values across hex, RGB, CMYK, and named inputs into standard RGB formats and channel breakdowns. Paid plans expand output to include CMYK, HSL, ANSI 16-color codes, and recognized English color names.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_colorconverter