Function to parse HSV

Open Beginner friendly
#278 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
76/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
javascript

Research direction

Start in src/parse.js around line 345 and compare the existing format-specific parsing functions with the HSV converters and exports referenced in the issue. Verify that HSV can be parsed through both parseHsv and the generic parse function, using the documented HSV examples as the completion check.

Written by the indexing model from the issue text.

Description

There are functions to parse different color formats, but no parseHsv:
https://culorijs.org/api/#parsing-functions

However it does seems to support HSV color format:
https://culorijs.org/color-spaces/

and it contains other functions like convertHsvToRgb and convertRgbToHsv.
https://culorijs.org/api/

Converter can be used with hsv - either converter('hsv') or hsv directly imported, but it seems to be missing a parseHsv function.
https://culorijs.org/api/#color-spaces

Furthermore it seems to generic parse function also doesn't understand HSV format.
https://github.com/Evercoder/culori/blob/435a1fc2ca4f7bc6bfd977af872e6d409bc7a25a/src/parse.js#L345

Dominant language
JavaScript
Stars
1.2k
Forks
39
PR merge metrics
No merged PRs in 30d

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Evercoder/culori

All issues in Evercoder/culori

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.