Skip to content

Commit

Permalink
chore: typo
Browse files Browse the repository at this point in the history
  • Loading branch information
07akioni committed Feb 9, 2021
1 parent 1957099 commit 517c085
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ interface RgbObject {
}

// Wrapper function ported from TinyColor.prototype.toHsv
// Keep it here because `hsv.h * 360`
// Keep it here because of `hsv.h * 360`
function toHsv({ r, g, b }: RgbObject): HsvObject {
const hsv = rgbToHsv(r, g, b);
return { h: hsv.h * 360, s: hsv.s, v: hsv.v };
}

// Wrapper function ported from TinyColor.prototype.toHexString
// Keep it here because the prefix `#`
// Keep it here because of the prefix `#`
function toHex({ r, g, b }: RgbObject): string {
return `#${rgbToHex(r, g, b, false)}`;
}
Expand Down

0 comments on commit 517c085

Please sign in to comment.