points

class janim.items.points.Points(*points: Vect, **kwargs)

基类:Item

点集

纯数据物件,不参与渲染

points
is_null() bool
cmpt_init_datas = {'depth': _ItemMeta._CmptInitData(info=<janim.components.component.CmptInfo object>, decl_cls=<class 'janim.items.item.Item'>), 'points': _ItemMeta._CmptInitData(info=<janim.components.component.CmptInfo object>, decl_cls=<class 'janim.items.points.Points'>)}
class janim.items.points.Group(*objs: T, **kwargs)

基类:Points, Generic

将物件组成一组

static from_iterable(objs: Iterable, **kwargs) Group
cmpt_init_datas = {'depth': _ItemMeta._CmptInitData(info=<janim.components.component.CmptInfo object>, decl_cls=<class 'janim.items.item.Item'>), 'points': _ItemMeta._CmptInitData(info=<janim.components.component.CmptInfo object>, decl_cls=<class 'janim.items.points.Points'>)}
class janim.items.points.DotCloud(*args, **kwargs)

基类:Points

color
radius
cmpt_init_datas = {'color': _ItemMeta._CmptInitData(info=<janim.components.component.CmptInfo object>, decl_cls=<class 'janim.items.points.DotCloud'>), 'depth': _ItemMeta._CmptInitData(info=<janim.components.component.CmptInfo object>, decl_cls=<class 'janim.items.item.Item'>), 'points': _ItemMeta._CmptInitData(info=<janim.components.component.CmptInfo object>, decl_cls=<class 'janim.items.points.Points'>), 'radius': _ItemMeta._CmptInitData(info=<janim.components.component.CmptInfo object>, decl_cls=<class 'janim.items.points.DotCloud'>)}
renderer_cls

DotCloudRenderer 的别名

apply_style(color: JAnimColor | ColorArray | None = None, alpha: float | Iterable[float] | None = None, radius: float | Iterable[float] | None = None, **kwargs) Self

设置物件自身的样式,不影响子物件

另见:set()

classmethod align_for_interpolate(item1: DotCloud, item2: DotCloud) AlignedData[DotCloud]

进行数据对齐,以便插值