Skip to content

Commit

Permalink
chore: type
Browse files Browse the repository at this point in the history
  • Loading branch information
qq15725 committed May 11, 2023
1 parent a4ad1c1 commit 9164f17
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,11 @@ npm i modern-palette
import { createPalette } from 'modern-palette'

const palette = createPalette({
maxColors: 256, // 8-bit color
maxColors: 256,
// (number[] | number[][] | CanvasImageSource | BufferSource)[]
samples: [
// HTMLImageElement
document.querySelector('img'),
// or rgb[]
[[255, 0, 0], [255, 0, 0]],
// or BufferSource
],
})

Expand Down
2 changes: 1 addition & 1 deletion src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ export interface Options {
/**
* Samples color data
*/
samples?: (HTMLImageElement | number[] | number[][] | BufferSource)[]
samples?: (number[] | number[][] | CanvasImageSource | BufferSource)[]
}

1 comment on commit 9164f17

@vercel
Copy link

@vercel vercel bot commented on 9164f17 May 11, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

modern-palette – ./

modern-palette-qq15725.vercel.app
modern-palette.vercel.app
modern-palette-git-main-qq15725.vercel.app

Please sign in to comment.