ویدیوئی
پرامپت ویدیو
موشن گرافی
ذرات و پارتیکل
Claude (HTML / CSS / JavaScript)
16:9
8s loop
پرامپت افکت پارتیکل متن با Claude؛ هزاران ذره که متن فارسی را میسازند
قیمت
رایگان
—·۰·DrPrompt

با این پرامپت افکت پارتیکل متن با Claude میتوانید یک افکت پارتیکل که هزاران ذرهی نورانی فیروزهای، بنفش و صورتی در مدار بیضی میچرخند، به هم میرسند و متن فارسی را میسازند، کمی میدرخشند و بعد منفجر میشوند و دوباره به چرخش برمیگردند بسازید. پرامپت انگلیسی را کپی کنید، بخشهای داخل [ ] را با متن، رنگ و نام برند خودتان عوض کنید و در Claude بچسبانید. Claude یک فایل HTML کامل تحویل میدهد؛ آن را با پسوند .html ذخیره و در مرورگر باز کنید، بعد صفحه را ضبط کنید یا فریمبهفریم خروجی MP4 بگیرید.
You are a creative coder specialised in generative motion. Build a PARTICLE TEXT FORMATION effect as a single HTML file using Canvas 2D. CONTENT - The word or short phrase the particles form: [متن اصلی، مثلا: رویا بساز] (Persian, Vazirmatn 900, ~210px). - A caption that fades in under the formed text: [جمله زیرنویس]. HOW TO BUILD IT - After document.fonts.ready, draw the text once on an offscreen canvas (textAlign center, direction rtl), read getImageData and sample every 4th pixel whose alpha > 128 -> each sample becomes one particle target (about 3-5k particles). - Make the system STATELESS: each particle has seeded constants (orbit radius 120-540, phase, angular speed of ±1 or ±2 turns per loop, wobble phase, delay 0-0.6 s, burst angle, size). Its position is a pure function of t: swirl(t) = an elliptical orbit around the center (x radius x1.45, y radius x0.75) with a slow radius wobble; k(t) = form progress (easeInOutCubic in, easeInOutCubic out, per-particle delay); pos(t) = lerp(swirl(t), target, k) + radial burst offset during the explosion + a tiny shimmer when formed. This makes window.seek(t) frame-accurate and the loop seamless. - Draw each particle as a short streak from pos(t - 0.045) to pos(t) with round caps, globalCompositeOperation = 'lighter'. Alpha and width grow as k -> 1 so the formed text reads clearly. - Color: gradient by x position across [رنگهای برند، پیشفرض #00E5FF -> #7C5CFF -> #FF4ECD]. - Background: dark navy radial gradient #121735 -> #05060F; add a soft violet radial bloom behind the formed text. TIMING: DURATION = 8 s, 60 fps, seamless loop. SCENE BREAKDOWN - 0.0-1.2 particles swirl in the elliptical vortex. - 1.2-3.2 they converge to their text targets (per-particle delay gives an organic build). - 3.0-5.0 the text holds and shimmers; bloom on; caption rises 12px and fades in at 3.0-3.7, out at 4.8-5.2. - 5.0-6.9 explosion: k goes back to 0 while each particle is pushed outward along its burst angle with a sin(pi*p) * 90px offset. - 6.9-8.0 back to the swirl, matching t = 0 exactly. TECHNICAL RULES - One self-contained .html file: inline <style> and <script>, vanilla JavaScript, no frameworks, no build step, no external images. The only external request allowed is Google Fonts (Vazirmatn) with a system-font fallback. - Fixed 1280x720 stage (16:9) that scales to fit any window (letterbox, keep aspect ratio). Optional: a CONFIG flag for a 1080x1920 vertical version for Reels/Stories. - Drive everything from ONE clock: a function render(t) where t = seconds inside the loop (0 <= t < DURATION). Use requestAnimationFrame + performance.now() (time-based, never frame-counting), target 60 fps. Expose window.seek = t => render(t) so the animation can be exported frame by frame. - Seamless loop: the frame at t = DURATION must be identical to the frame at t = 0. - Write tiny helpers: clamp, seg(t, start, end) -> 0..1 progress, lerp, a seeded random (mulberry32) and the easing functions you use (easeOutCubic, easeInOutCubic, easeOutBack, ...). Keep randomness seeded so every play looks the same. - Persian / RTL: <html dir="rtl" lang="fa">. Animate Persian text per word or per line, never per letter (splitting letters or letter-spacing breaks the joined Persian script). Use Persian digits. - Respect prefers-reduced-motion: render one static hero frame instead of animating. - No real people, no real brand logos or trademarks. DELIVER Return only the complete HTML file in one code block, then a 3-line note listing the constants to edit (texts, colors, durations).
پرامپتهای مرتبط
امتیاز و نظرات
— · 0 امتیاز
امتیاز شما