Skip to content

Commit

Permalink
Update palette.js
Browse files Browse the repository at this point in the history
Fixed documentation strings.
  • Loading branch information
markusn authored Apr 19, 2017
1 parent 098b7b8 commit 835909c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/palette.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,10 @@ function palette_map_key(c)
}

/**
* Returns a mapping from each color in a to the closest color in b
* Returns a mapping from each color in a to the closest/farthest color in b
* @param [{rgbcolor}] a each element should have fields R,G,B
* @param [{rgbcolor}] b each element should have fields R,G,B
* @param [{rgbcolor}] Optional background color when using alpha channels
* @param {rgbcolor} Optional background color when using alpha channels
* @param 'type' should be the string 'closest' or 'furthest'
* @return {palettemap}
*/
Expand Down

0 comments on commit 835909c

Please sign in to comment.