Skip to content

Commit

Permalink
Fixed rgb_percent_to_rgb fuction
Browse files Browse the repository at this point in the history
  • Loading branch information
tinytengu committed Sep 8, 2022
1 parent 4f43658 commit 4710ec7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "tinydenticon"
version = "0.1.1"
version = "0.1.2"
description = "identicon.js compatible Identicon implementation in Python 3"
authors = ["tinytengu <[email protected]>"]
license = "GPL-3.0-only"
Expand Down
2 changes: 1 addition & 1 deletion tinydenticon/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def hue_to_rgb(hue):


def rgb_percent_to_rgb(rgb_percent: tuple[str]) -> tuple[float]:
return [(percent * 100) / 255 for percent in rgb_percent]
return tuple(int(255 * percent) for percent in rgb_percent)


def hsl_to_rgb_percent(hue, saturation, lightness):
Expand Down

0 comments on commit 4710ec7

Please sign in to comment.