---
title: "Pixel Wizard"
description: "An 11-second canvas animation of a pixel-art wizard casting a spell."
canonical: "https://potto.ai/ur/videos/pixel-wizard"
language: "ur"
datePublished: "2026-09-22"
---

# Pixel Wizard

An 11-second canvas animation of a pixel-art wizard casting a spell.

A pixel-art wizard casts a spell in a loop, moving through idle, charge, cast, and recover. The scene uses vanilla JavaScript and Canvas 2D on a 128 by 96 pixel grid, with a night sky, stars, a moon, and a stone floor. The clip runs about 11 seconds.

- [آرٹیکل](https://potto.ai/ur/videos/article.md)
- از majidmanzarpour
- لمبائی اور تناسب: 0:11 · 1:1
- شائع 22 ستمبر، 2026
- اصل دیکھیں: https://x.com/majidmanzarpour/status/2102476258948927543

## پرومپٹ

```text
Create a single self-contained HTML file that renders an animated pixel art wizard casting a spell, using vanilla JavaScript and Canvas 2D. No external assets, libraries, or network requests.

RENDERING
- Draw everything to an offscreen canvas at a fixed logical resolution of 128x96, then blit to a fullscreen display canvas scaled by the largest integer factor that fits the window, centered, with imageSmoothingEnabled = false and CSS image-rendering: pixelated.
- All drawing snaps to integer coordinates on the logical canvas. No sub-pixel positions, anti-aliasing, gradients, or shadowBlur.
- Fixed palette of ~24 hex colors: deep blues/purples for night sky, warm robe tones, 3-4 bright magic colors. Every pixel comes from this palette.

CHARACTER
- Build the wizard procedurally from filled rects and pixel runs, ~24x32 logical pixels: pointed hat with a bend, long beard, two-shade robe with darker outline, staff with a gem at the tip.
- Parameterize the pose (staff angle, arm raise, head tilt, robe sway). Animate parameters smoothly, then quantize to the pixel grid each frame so motion reads at an 8-12 fps pixel animation feel even though the loop runs at 60fps.

ANIMATION
- Looping state machine: IDLE (2-frame bob, beard sway) -> CHARGE (staff raises, gem flickers, sparks spiral inward) -> CAST (bright burst, projectile fires across the scene, 1-2 pixel screen shake) -> RECOVER (settle back). Ease pose parameters between keyframes.
- Pooled allocation-free particle system: preallocate and reuse. Sparks orbit the gem during CHARGE, explode outward on CAST, each particle stepping its palette index from white to magic color to dark before despawn. Snap particle positions to the grid when drawing.
- Fixed 60hz timestep update with rAF rendering. Zero object allocation inside the loop.

SCENE
- Minimal background: dark sky, a few twinkling 1px stars, moon, stone floor line. Character silhouette must read clearly.
- Subtle 1px rim light on the wizard from the gem, brightening during CHARGE and CAST.

QUALITY BAR
- Crisp pixels at any window size, seamless loop, stable 60fps, readable silhouette. Should look like a polished 16-bit sprite animation, not vector shapes scaled down.
```

## Pixel Wizard کے اکثر پوچھے گئے سوالات

Pixel Wizard کیسے بنا، اس کا پرامپٹ کیا کہتا ہے، اور Potto سے ایسی ہی آرٹیکل ویڈیو کیسے بنائیں۔

### Pixel Wizard کیا ہے؟

Pixel Wizard زمرہ آرٹیکل کی ایک موشن گرافکس ویڈیو ہے، majidmanzarpour کی بنائی ہوئی۔ An 11-second canvas animation of a pixel-art wizard casting a spell.

### Pixel Wizard کیسے بنا؟

Pixel Wizard بنانے والے نے ٹولز نہیں لکھے۔ یہ Potto پر آرٹیکل کی اے آئی موشن گرافکس ویڈیوز کے مجموعے کا حصہ ہے۔

### کیا Pixel Wizard کا پرومپٹ دستیاب ہے؟

ہاں۔ Pixel Wizard کا پورا پرومپٹ اسی صفحے پر ہے۔ اسے کاپی کریں، یا یہ پرومپٹ استعمال کریں پر کلک کر کے Potto کے ورک اسپیس میں کھولیں۔

### Pixel Wizard کتنی لمبی ہے، اور اس کا تناسب کیا ہے؟

Pixel Wizard کی مدت 0:11 ہے، فریم 1:1۔

### کیا میں Potto سے Pixel Wizard جیسی آرٹیکل ویڈیو بنا سکتا ہوں؟

ہاں۔ یہ پرومپٹ استعمال کریں پر کلک کریں تاکہ Pixel Wizard کا پرومپٹ Potto کے ورک اسپیس میں لوڈ ہو۔ Potto اپنا ورژن رینڈر کرتا ہے، اور ایکسپورٹ سے پہلے متن اور انداز بدل سکتے ہیں۔

### Pixel Wizard کی اصل کہاں دیکھوں؟

Pixel Wizard پہلے اس کے تخلیق کار نے پوسٹ کیا۔ اصل دیکھیں پر کلک کریں تاکہ وہ پوسٹ نئے ٹیب میں کھلے۔

### Pixel Wizard جیسی مزید آرٹیکل ویڈیوز کہاں ملیں گی؟

Potto پر آرٹیکل کا مجموعہ دیکھیں: 111 ویڈیوز، ہر ایک کے ساتھ پرومپٹ، تفصیل اور ماخذ۔
