Motion Prompt #060|分段控制器 · Segmented control
一排相连按钮用于切换视图
部分附加信息、来源说明或示例仍显示原文。
来源:import:liubai_public_20261104 · https://github.com/Shanvision-star/liubai-prompt-library/blob/25f0137e36a8fae46aebace86b18cdfeff624a99/bundled-library/entries/PRM-0302/original.md · 授权:MIT License Copyright (c) 2026 Shohei Ohtaki Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
使用示例提示词正文
请使用“Segmented control”(セグメントコントロール),它是“UI component names”中的一个名称。 Motion Prompt #060 定义:一排连在一起的按钮,用来切换视图 示例展示:点击日、周或月,蓝色选中块横向滑动,下方柱状图的高度随之变化。 规格: - 卡片为542×191,循环4.5 s。灰色底座300×40、圆角半径10,位于(121,12),分为三段宽100的日、周、月选项(日文)。 - 选中块为蓝色92×32、圆角半径8、阴影模糊6;选中文字为白色。 - 光标1.0 s点击周,2.1 s点击月,3.3 s点击日;选中块每次用0.25 s按easeInOutCubic滑动。 - 下方柱状图有七根宽34、横向位置间隔58 px的柱,第六根蓝色。柱高随选中项在三组数据间变化(约30–85、40–100、60–115),使用相同缓动同步变化。 何时使用:在同一内容的二至四种视图间切换,例如日、周、月。 参考实现(Canvas 2D,画面仅由时间决定的函数):https://showheyohtaki.github.io/motion-prompt/api/v1/en/e/060.txt 共享辅助代码:https://showheyohtaki.github.io/motion-prompt/api/v1/kit/ui.js 请保持参考实现的形状、时间安排和缓动数值不变,只调整文字、颜色和素材,以适配我正在制作的项目。
使用示例
示例输入
请实现“分段控制器 · Segmented control”:一排相连按钮用于切换视图
示意结果
下方是来源作者提供的静态画面和可播放动效参考,并非本站对该提示词调用模型生成的结果。
提示词仅供参考,请结合实际场景调整,并核实 AI 生成结果。