Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# DevColorExtraction Changelog


## 1.0.0 – TBD
## 1.0.0: September 1, 2025

This is the first release of DevColorExtraction. The initial feature set includes

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ View our [changelog](CHANGELOG.md) to see what’s new.

## Features

- Extract the most common colors from `CGImage` using Core Image's k-means clustering
- Extract the most common colors from `CGImage` using Core Images k-means clustering
- Support for edge-based color extraction (top, left, bottom, right edges)
- Configurable number of colors and clustering passes
- Results include both colors and their relative weights
Expand Down
16 changes: 16 additions & 0 deletions Sources/DevColorExtraction/Documentation.docc/Documentation.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# ``DevColorExtraction``

Extract the most common colors out of an image.

## Overview

DevColorExtraction is a small Swift package that extracts the most common colors from images using
k-means clustering. It provides efficient color analysis with support for edge-based extraction.
All of the package’s functionality is exposed through a single function on `CGImage`:
``CoreGraphics/CGImage/mostCommonColors(count:passes:edges:)``.


## Topics

- ``CoreGraphics/CGImage``
- ``EdgeSet``
8 changes: 8 additions & 0 deletions Sources/DevColorExtraction/Documentation.docc/Info.plist
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>CDDefaultCodeListingLanguage</key>
<string>swift</string>
</dict>
</plist>