# ================================================== # 视觉逻辑蓝图 (Visual Logic Blueprint) # -- v3.0 Event-Driven -- # ================================================== # I. 元数据与核心原理 # -------------------------------------------------- # 描述动画的“为什么”。 ProjectName: "勾股定理拼图法动画证明" Version: 3.0 Author: T3 Chat & User CorePrinciple: "通过在固定大小的画框内,以事件驱动的方式重新排列组件,证明留白的面积守恒,从而得出 a² + b² = c²。" ModelType: "Event-Driven Timeline" # II. 参数与常量 (Source of Truth) # -------------------------------------------------- # 定义动画的“规则和约束”。 Parameters: - name: a value: 3.0 - name: b value: 4.0 - name: c value: 5.0 - name: frame_side value: 7.0 # III. 资产清单 (The Cast) # -------------------------------------------------- # 定义所有参与动画的“演员表”。 Assets: - id: tri_base type: RightTriangle properties: { side1: 3.0, side2: 4.0, color: "GREEN", stroke: "BLACK" } - id: a_square type: Square properties: { side_length: 3.0, color: "ORANGE", stroke: "BLACK" } - id: b_square type: Square properties: { side_length: 4.0, color: "BLUE", stroke: "BLACK" } - id: c_square type: Square properties: { side_length: 5.0, color: "MAROON", stroke: "BLACK" } # IV. 动画时间线 (The Storyboard) # -------------------------------------------------- # 这是一个按顺序执行的事件列表,描述了动画的“剧本”。 # 坐标系: 原点(0,0)位于 7x7 画框的中心。 # 位置(position): 定义的是对象的几何中心点。 # 旋转(rotation): 以度为单位,顺时针为负。 Timeline: - event_name: "场景初始化:展示 c² 布局" type: CREATE duration: 1.5s animation_style: "FadeIn" targets: # 创建 c² 方块,并指定其初始状态 - asset_id: c_square transform: { position: "(0, 0)", rotation: "0deg" } # 创建四个三角形,并指定它们的初始状态 - asset_id: tri_base instance_id: tri_1 transform: { position: "(0, 3.5)", rotation: "0deg" } - asset_id: tri_base instance_id: tri_2 transform: { position: "(3.5, 0)", rotation: "-90deg" } - asset_id: tri_base instance_id: tri_3 transform: { position: "(0, -3.5)", rotation: "-180deg" } - asset_id: tri_base instance_id: tri_4 transform: { position: "(-3.5, 0)", rotation: "-270deg" } - event_name: "暂停以供观察" type: WAIT duration: 1.5s - event_name: "核心变换:c² 布局转变为 a²+b² 布局" type: GROUP # 内部所有事件同时发生 duration: 3s easing_function: "ease-in-out" sub_events: - type: TRANSFORM description: "移动四个三角形到新的位置" targets: - instance_id: tri_1 transform: { position: "(-2.0, -1.5)", rotation: "0deg" } - instance_id: tri_2 transform: { position: "(1.5, -2.0)", rotation: "-90deg" } - instance_id: tri_3 transform: { position: "(2.0, 1.5)", rotation: "-180deg" } - instance_id: tri_4 transform: { position: "(-1.5, 2.0)", rotation: "-270deg" } - type: DESTROY description: "移除 c² 方块" animation_style: "FadeOut" targets: - asset_id: c_square - type: CREATE description: "在目标位置创建 a² 和 b² 方块" animation_style: "FadeIn" targets: - asset_id: a_square transform: { position: "(0.5, -0.5)", rotation: "0deg" } - asset_id: b_square transform: { position: "(-0.5, 0.5)", rotation: "0deg" } - event_name: "结束并保持最终画面" type: WAIT duration: 3s

视频信息