reverted to earlier version

This commit is contained in:
Ben Hambrecht
2018-05-16 21:17:14 +02:00
parent 1d81e3a3af
commit b2b66947db
23 changed files with 361 additions and 532 deletions

View File

@ -39,8 +39,7 @@ def color_to_int_rgb(color):
return (255 * color_to_rgb(color)).astype('uint8')
def color_to_int_rgba(color, opacity=1.0):
alpha = int(255 * opacity)
def color_to_int_rgba(color, alpha=255):
return np.append(color_to_int_rgb(color), alpha)