Skip to content

Commit 97446ac

Browse files
committed
update ocean resin for ulab renames
1 parent d1f7491 commit 97446ac

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Ocean_Resin_Lightbox/code.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class Reshader:
2626
'''reshader fades the image to mimic brightness control'''
2727
def __init__(self, palette):
2828
self.palette = palette
29-
ulab_palette = ulab.zeros((len(palette), 3))
29+
ulab_palette = ulab.numpy.zeros((len(palette), 3))
3030
for i in range(len(palette)):
3131
rgb = int(palette[i])
3232
ulab_palette[i, 2] = rgb & 0xff
@@ -37,7 +37,7 @@ def __init__(self, palette):
3737
def reshade(self, brightness):
3838
'''reshader'''
3939
palette = self.palette
40-
shaded = ulab.array(self.ulab_palette * brightness, dtype=ulab.uint8)
40+
shaded = ulab.numpy.array(self.ulab_palette * brightness, dtype=ulab.numpy.uint8)
4141
for i in range(len(palette)):
4242
palette[i] = tuple(shaded[i])
4343

0 commit comments

Comments
 (0)