Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUGFIX: Three characters hex values were being double after the first…

… set. Now they are doubled after each character to give the proper RGB.
  • Loading branch information...
commit e7efae49563066affc97b7cd14e6f9a3c0e37a30 1 parent 1c18ec8
Anthony Roscoe authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Hex-to-RGBA.py
2  Hex-to-RGBA.py
View
@@ -20,7 +20,7 @@ def run(self, edit):
def hex_to_rgba(self, value):
value = value.lstrip('#')
if len(value) == 3:
- value = value*2
+ value = ''.join([v*2 for v in list(value)])
return tuple(int(value[i:i+2], 16) for i in range(0, 6, 2))+(1,)
def convert_to_rgba_css(self, word_region):
Please sign in to comment.
Something went wrong with that request. Please try again.