MCPcopy Create free account
hub / github.com/XingangPan/DragGAN / get_array

Function get_array

gui_utils/text_utils.py:36–42  ·  view source on GitHub ↗
(string, *, dropshadow_radius: int=None, **kwargs)

Source from the content-addressed store, hash-verified

34#----------------------------------------------------------------------------
35
36def get_array(string, *, dropshadow_radius: int=None, **kwargs):
37 if dropshadow_radius is not None:
38 offset_x = int(np.ceil(dropshadow_radius*2/3))
39 offset_y = int(np.ceil(dropshadow_radius*2/3))
40 return _get_array_priv(string, dropshadow_radius=dropshadow_radius, offset_x=offset_x, offset_y=offset_y, **kwargs)
41 else:
42 return _get_array_priv(string, **kwargs)
43
44@functools.lru_cache(maxsize=10000)
45def _get_array_priv(

Callers 1

get_textureFunction · 0.85

Calls 1

_get_array_privFunction · 0.85

Tested by

no test coverage detected