simple-color-palette 0.1.0

A Rust implementation of the Simple Color Palette format
Documentation
# simple-color-palette

> A Rust implementation of the [Simple Color Palette]https://simplecolorpalette.com format — a minimal JSON-based file format for defining color palettes

*Feedback wanted on the API.*

## Install

Add to your `Cargo.toml`:

```toml
[dependencies]
simple-color-palette = "0.1.0"
```

## Usage

```rust
use simple_color_palette::{ColorPalette, Color};

let palette = ColorPalette::new(
	vec![
		Color::new(1.0, 0.0, 0.0, None, Some("Red".into())),
		Color::new(0.0, 1.0, 0.0, None, Some("Green".into())),
	],
	Some("Traffic Lights".into()),
);

let path = std::path::Path::new("Traffic Lights.color-palette");

// Save palette
palette.write_to_file(path);

// Load palette
let loaded = ColorPalette::read_from_file(path);
```