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.
This is the Dart/Flutter client for the Color Converter API.
Installation
Add this to your pubspec.yaml:
dependencies:
apiverve_colorconverter: ^1.2.2
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
- API Home: Color Converter API
- Documentation: docs.apiverve.com/ref/colorconverter
Authentication
All requests require an API key. Get yours at apiverve.com.
License
MIT License - see LICENSE for details.
Built with Dart for APIVerve
Libraries
- apiverve_colorconverter
- Color Converter API client for Dart/Flutter