Skip to content

Commit

Permalink
Merge pull request #44 from UBC-MDS/feat-documentation-rgb-to-hex
Browse files Browse the repository at this point in the history
improve grammatical consistency
  • Loading branch information
hchqin authored Jan 27, 2024
2 parents 4cb2563 + 18f2c01 commit 076c31d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/example.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Obtaining the most common RGB\n",
"## Obtain the most common RGB\n",
"Now that the cropped image has been imported as an array, we can extract its RGB values. \n",
"\n",
"Sometimes, it might not be feasible to crop an image perfectly. For instance, a user may have missed a few dark pixels at the edge of the cropped image, or perhaps, the image itself is a bit noisy. To account for these situations, the function `most_common_rgb` takes the most common RGB value in the cropped image and outputs it as a tuple that corresponds to the red, green, and blue channels respectively."
Expand Down Expand Up @@ -110,7 +110,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Converting RGB to hexadecimal format\n",
"## Convert RGB to hexadecimal format\n",
"\n",
"Once we have obtained the most common RGB value from an image using the most_common_rgb function, the next step might be to convert this RGB value to a more universally recognized color format - hexadecimal. This is where the `rgb_to_hex` function comes in. It efficiently converts RGB color values to their corresponding hexadecimal color codes. This is especially useful in contexts such as web design or graphic editing, where colors are often specified in hexadecimal format.\n",
"\n",
Expand Down

0 comments on commit 076c31d

Please sign in to comment.