Motion Prompt #062|范围滑块 · Range slider(中文译文)
双滑块选择最小值与最大值;中文译文,效果未实测。
来源:import:liubai_versions_20261104 · https://github.com/Shanvision-star/liubai-prompt-library/blob/25f0137e36a8fae46aebace86b18cdfeff624a99/bundled-library/entries/PRM-0304/translation-zh.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:
使用示例提示词正文
请使用“Range slider”(レンジスライダー),它是“UI component names”中的一个名称。 Motion Prompt #062 定义:同一条轨道上的两个手柄用于选择最小值和最大值 示例展示:价格滑杆的左手柄向右、右手柄向左拖动以收窄范围,随后两个手柄回到原位。 规格: - 卡片为542×191,循环4.5 s。轨道x=54–488、高8,位于y=120;两手柄之间的部分为蓝色,范围¥0–¥10,000。 - 手柄白色,半径13,蓝色边缘3 px;拖动中半径变15,并带半径24的浅蓝光环。 - 低值手柄在1.0–1.6 s从0.1→0.3(¥1,000→¥3,000),3.55–3.9 s返回。高值手柄在2.1–2.6 s从1.0→0.8(¥10,000→¥8,000),2.95–3.3 s返回。全部使用easeInOutCubic。 - 每个手柄上方有高28的数值气泡,拖动时为蓝底白字。右上角以蓝色显示“¥1,000 – ¥10,000”范围,并按¥100步长更新。 - 光标始终位于所拖动的手柄上,在1.0、2.1、2.95、3.55 s按下。 何时使用:按最低值和最高值筛选价格、日期、尺寸等范围。 参考实现(Canvas 2D,画面仅由时间决定的函数):https://showheyohtaki.github.io/motion-prompt/api/v1/en/e/062.txt 共享辅助代码:https://showheyohtaki.github.io/motion-prompt/api/v1/kit/ui.js 请保持参考实现的形状、时间安排和缓动数值不变,只调整文字、颜色和素材,以适配我正在制作的项目。
使用示例
示例输入
请实现“范围滑块 · Range slider”:双滑块选择最小值与最大值;中文译文,效果未实测。
示意结果
下方是来源作者提供的静态画面和可播放动效参考,并非本站对该提示词调用模型生成的结果。
提示词仅供参考,请结合实际场景调整,并核实 AI 生成结果。