<commit_before># ColorArtwork

[![Build Status](https://travis-ci.org/XQS6LB3A/ColorArtwork.svg?branch=master)](https://travis-ci.org/XQS6LB3A/ColorArtwork)
[![Carthage](https://img.shields.io/badge/Carthage-compatible-brightgreen.svg)](https://github.com/Carthage/Carthage)
![swift3](https://img.shields.io/badge/swift3-compatible-brightgreen.svg)
![platforms](https://img.shields.io/badge/platforms-macOS%20%7C%20iOS%20%7C%20tvOS%20%7C%20watchOS-lightgrey.svg)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

Cross-platform iTunes 11-style color matching code. Inspired by [Panic Blog](https://panic.com/blog/itunes-11-and-colors/)

![preview](docs/img/preview.png)

## Installation

### Compatibility

- macOS 10.10+ / iOS 8.0+ / tvOS 9.0+ / watchOS 2.0+
- Xcode 8+
- Swift 3.0+

### Install Using Carthage

You can use [Carthage](https://github.com/Carthage/Carthage) to install `ColorArtwork` by adding it to your `Cartfile`:

```
github "XQS6LB3A/ColorArtwork"
```

## Usage


```
import ColorArtwork
```

```
let colorArtwork = CAColorArtwork(image: AN_IMAGE)

colorArtwork.analyze()

colorArtwork.backgroundColor
colorArtwork.primaryColor
colorArtwork.secondaryColor
colorArtwork.detailColor
```

## License

ColorArtwork is available under the MIT license. See the [LICENSE file](LICENSE).
<commit_msg>Update: README<commit_after># ColorArtwork

[![Build Status](https://travis-ci.org/XQS6LB3A/ColorArtwork.svg?branch=master)](https://travis-ci.org/XQS6LB3A/ColorArtwork)
![supports](https://img.shields.io/badge/supports-Carthage%20%7C%20Swift_Package_Manager-brightgreen.svg)
![platforms](https://img.shields.io/badge/platforms-macOS%20%7C%20iOS%20%7C%20tvOS%20%7C%20watchOS-lightgrey.svg)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)

Swift-based iTunes 11-style color matching code. Inspired by [Panic Blog](https://panic.com/blog/itunes-11-and-colors/)

![preview](docs/img/preview.png)

## Requirements

- macOS 10.10+ / iOS 8.0+ / tvOS 9.0+ / watchOS 2.0+
- Xcode 8+
- Swift 3.0+

## Installation

### [Carthage](https://github.com/Carthage/Carthage)

Add the project to your `Cartfile`:

```
github "XQS6LB3A/ColorArtwork"
```

### [Swift Package Manager](https://github.com/apple/swift-package-manager)

Add the project to your `Package.swift` file:

```
let package = Package(
    dependencies: [
        .Package(url: "https://github.com/XQS6LB3A/ColorArtwork", majorVersion: 0)
    ]
)
```

## Usage

```
import ColorArtwork
```

```
let colorArtwork = CAColorArtwork(image: AN_IMAGE)

colorArtwork.analyze()

colorArtwork.backgroundColor
colorArtwork.primaryColor
colorArtwork.secondaryColor
colorArtwork.detailColor
```

## License

ColorArtwork is available under the MIT license. See the [LICENSE file](LICENSE).

{'fraction_non_alphanumeric': 0.16511461318051576, 'fraction_numerical': 0.030802292263610316, 'mean_word_length': 5.333333333333333, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 18, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1231981', 'n_tokens_mistral': 1122, 'n_tokens_neox': 1022, 'n_words': 159}