def color_modifiers_hsva(self): color = accessors.getitem(self, "color", None) color_h = accessors.getitem(color, "h", None) color_s = accessors.getitem(color, "s", None) color_v = accessors.getitem(color, "v", None) color_a = accessors.getitem(color, "a", None) h = accessors.getattr(color_h, "data", None) if color_h is not None else 1.0 s = accessors.getattr(color_s, "data", None) if color_s is not None else 1.0 v = accessors.getattr(color_v, "data", None) if color_v is not None else 1.0 a = accessors.getattr(color_a, "data", None) if color_a is not None else 1.0 return np.array([h, s, v, a], dtype=np.float32)
def show_shading(self): return accessors.getattr(accessors.getitem(self, "show_shading", None), "data", False)
def show_background(self): return accessors.getattr(accessors.getitem(self, "show_background", None), "data", False)
def __getattr__(self, key): return accessors.getattr(self._obj, key)
def texture(self): return accessors.getattr(accessors.getitem(self, "texture", None), "data", None)
def shape_palettes(self): from .. import palettes value = accessors.getattr(accessors.getitem(accessors.getitem(self, "shape", None), "palette", None), "data", None) return palettes.shape_palettes(value)
def shape_index(self): value = accessors.getattr(accessors.getitem(accessors.getitem(self, "shape", None), "index", None), "data", None) return value
def shape(self): return accessors.getattr(accessors.getitem(self, "shape", None), "data", None)
def default_color_palette(self): return accessors.getattr(accessors.getitem(accessors.getitem(self, "color", None), "palette", None), "default")
def color_a(self): return accessors.getattr(accessors.getitem(accessors.getitem(self, "color", None), "a", None), "data", None)
def color_secondary(self): from .. import colors value = accessors.getattr(accessors.getitem(accessors.getitem(self, "color", None), "secondary", None), "data", None) if isinstance(value, str): return colors.Color.from_hex(value) return value
def label(self): return accessors.getattr(accessors.getitem(self, "label", None), "data", None)
def delta_offset(self): return accessors.getattr(accessors.getitem(self, "delta_offset", None), "data", None)
def delta_size(self): return accessors.getattr(accessors.getitem(self, "delta_size", None), "data", None)
def show_overflow(self): return accessors.getattr(accessors.getitem(self, "show_overflow", None), "data", False)
def color_palettes(self): from .. import palettes value = accessors.getattr(accessors.getitem(accessors.getitem(self, "color", None), "palette", None), "data", None) return palettes.color_palettes(value)
def show_guides(self): return accessors.getattr(accessors.getitem(self, "show_guides", None), "data", True)
def position(self): return accessors.getattr(accessors.getitem(self, "position", None), "data", None)