Skip to content

Commit 51a6bac

Browse files
committed
Updated examples.
1 parent cd496b6 commit 51a6bac

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ Download and include **Paletteron.min.js** or **Paletteron.js** from the dist fo
3232

3333
### getPalette()
3434
**PARAMETERS:**
35-
1. scale - The scale to downscale the image with (recommended is 0.3).
36-
2. colorsToPick - The amount of colors to pick from the image (recommended is 5).
35+
1. colorsToPick - The amount of colors to pick from the image (recommended is 5).
36+
2. speed - The speed of the algorithm (fast, medium, slow) (recommended is medium).
3737
3. minCoverage - The minimum coverage of a color to be included in the palette (recommended is 0).
3838
4. minWhiteDistance - Percentage of maximum color space distance to be min to include color (recommended is 0).
3939
5. minBlackDistance - Percentage of maximum color space distance to be min to include color (recommended is 0).
@@ -53,6 +53,8 @@ python -m http.server 8000
5353

5454
## Examples
5555

56+
**See file:** test/all.html
57+
5658
### Code Example
5759

5860
Before sending the img element to Palettereon, you need to make sure it's fully loaded. This can be done in many different ways. For instance:

dist/Paletteron.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/all.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<title>Test</title>
55
<script src="https://cdnjs.cloudflare.com/ajax/libs/color-thief/2.3.0/color-thief.umd.js"></script>
6-
<script src="../dist/Paletteron.js"></script>
6+
<script src="../dist/Paletteron.min.js"></script>
77
<script>
88
document.addEventListener('DOMContentLoaded', function() {
99
console.log('DOMContentLoaded');

0 commit comments

Comments
 (0)