Skip to content

bloqade.visual.animation.gate_event.GateEvent

← Module overview

classGateEventsource

bloqade.visual.animation.gate_event.GateEvent

class GateEvent(cls_name: str, kwargs: Dict[str, Any], duration: float)

Parameters

NameTypeDescription
cls_namestr
kwargsDict[str, Any]
durationfloat

Attributes

NameTypeDescription
cls_namestr
kwargsDict[str, Any]
durationfloat

methodto_jsonsource

bloqade.visual.animation.gate_event.GateEvent.to_json

def to_json() -> Dict[str, Any]

Returns

Dict[str, Any]

source

methodfrom_jsonsource

bloqade.visual.animation.gate_event.GateEvent.from_json

def from_json(json_dict: Dict[str, Any]) -> GateEvent

Parameters

NameTypeDescription
json_dictDict[str, Any]

Returns

GateEvent

source