Skip to content
| Marketplace
Sign in
Visual Studio Code>Visualization>Rok Sprite LiteNew to Visual Studio Code? Get it now.
Rok Sprite Lite

Rok Sprite Lite

RokRage

|
35 installs
| (0) | Free
Create pixel art and sprite animations in VS Code. Edit PNGs, manage frame strips, and export numbered animation frames.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Rok Sprite Lite

Create pixel art and sprite animations directly in VS Code. Edit PNG files, organize animation frames, and export numbered PNG sequences.

Rok Sprite Lite player animation workspace

Example artwork: Pixel Platformer Pack by Disarmed Games, licensed under CC BY 4.0.

Start an image

  1. Right-click a folder in Explorer.
  2. Select Rok Sprite Lite: New Image….
  3. Enter the width and height.
  4. Choose a PNG filename.

The same command is available in the Command Palette before an editor is open. The toolbar also includes New Image… and Open….

To try the player frames, run Rok Sprite Lite: Open Example Animation… from the Command Palette. Choose a location for the working copy. The example opens with 20 frames and four named animations.

Save and export

The toolbar groups file actions, resize controls, and animation settings. Settings and Help are at the right.

  • Save → Save updates the current PNG or .rokpixel file.
  • Cmd/Ctrl+S saves directly.
  • Save → Save As… offers PNG and optional .rokpixel source files.
  • Open… loads another image in its own editor.

Export… provides three choices:

Choice Output
Single frame One PNG of the selected frame
Animation One numbered PNG per frame in the selected strip
Full image / sprite sheet One PNG of the complete canvas

Animation exports use names such as player_0001.png, player_0002.png, and player_0003.png. Each export starts at 0001. Existing numbered files require confirmation before replacement.

Rok Sprite Lite animation export dialog

Animation frames

The bottom strip shows frame thumbnails, named animation tabs, and a scrub slider. Select a thumbnail or drag the slider to choose the frame to edit. The floating preview plays independently of the editing frame. Drag its header to move it.

  • Play/Pause starts or pauses the preview.
  • Stop stops playback and returns the preview to the strip start.
  • Previous/Next selects another editing frame.
  • + adds a blank frame directly after the active strip.
  • Duplicate Selected Frame adds a copy after the active strip.
  • A thumbnail dragged onto + creates a new copy.
  • A thumbnail dragged onto another frame replaces that frame's pixels with a copy.
  • Delete Selected Frame shows a warning before deletion. At least one frame must remain.

Copies retain their source pixels. Copy, replacement, and deletion support Undo. New frames shift later atlas tiles and strip ranges together. Unrelated tiles stay outside the active animation.

Use Animation… or Strips… to edit names, frame ranges, speed, and playback mode. Each strip supports 1–30 fps, Loop, Ping Pong, and Once. Strip ranges can overlap.

Rok Sprite Lite named animation strips

Drawing and navigation

  • Pencil, eraser, line, and outline/filled rectangles and ellipses.
  • Flood fill and foreground-to-transparent gradient.
  • Eyedropper, selection, move/copy, flip, and rotate.
  • Pixel grid, zoom, pan, minimap, and 64-step Undo/Redo.

Double-click Rectangle or Ellipse to switch between outline and filled shapes. Right-click and drag to erase pixels without changing the selected tool. With Select/Move active, hold Option/Alt and drag a selection to place a copy.

The canvas fits into view on open. Use the wheel or trackpad to zoom and middle-drag to pan. Drag the minimap header to move it. Drag its corner to change its size in steps. The minimap position and scale are saved in the editor preferences.

Resize

Resize… → Canvas changes the image bounds with anchored cropping or expansion. Resize… → Image scales the image by percentage with Nearest neighbor or Bilinear sampling. Image scaling disables atlas mode. Undo restores the previous image and atlas settings.

Rok Sprite Lite percentage resizing

Palettes and settings

Double-click a palette swatch to change its color. Use + to add a color. The swatch area scrolls without a visible scrollbar. Small indicators show hidden colors above or below it.

Settings includes 14 bundled palettes, Lospec .hex import, and a saved palette library. Use Save current as new to store an edited palette under another name. Palettes support up to 64 colors.

Indexed palette mode is off by default. In this mode, swatch edits recolor matching pixels. A palette switch maps pixels to the closest palette colors after confirmation. Pixel transparency is preserved, and palette remapping supports Undo.

Rok Sprite Lite palette management

Other preferences include zoom steps, wheel sensitivity, workspace background, minimap size, atlas tile size, and new-image size.

Keyboard and mouse controls

Control Action
B / E / L Pencil / Eraser / Line
R / Shift+R Rectangle / Filled rectangle
O / Shift+O Ellipse / Filled ellipse
F / G / I / S Fill / Gradient / Eyedropper / Select-Move
Space over the canvas Pick the color beneath the pointer
Right-click and drag Erase pixels
Option/Alt + selection drag Copy the selection
Cmd/Ctrl+S Save
Cmd/Ctrl+Z / Cmd/Ctrl+Shift+Z Undo / Redo
Delete / Backspace Delete the pixel selection
Apostrophe (') Toggle the pixel grid
Middle-click and drag Pan the canvas

The ? button opens the in-editor guide.

Formats and limits

  • Requires VS Code 1.95 or later.
  • PNG is the default editable image format.
  • PNG saves include atlas and animation metadata. Other image tools can remove this metadata.
  • .rokpixel is an optional JSON source format for pixels and animation settings.
  • JPEG, WebP, GIF, and BMP open as imported canvases. Use Save As to write PNG or .rokpixel files.
  • Animated GIFs import a single frame. Animation export produces numbered PNGs, not animated GIF files.
  • The editing limit is 1024 pixels per image edge. New images start at 8 pixels per edge.
  • Unconfigured atlases default to 16 × 16 tiles when the image dimensions permit. Saved settings take priority.
  • Atlas frames are square. They share the same tile size within one image.

Rok Sprite Lite works locally. Marketplace screenshots load from the public RokRage gallery. The extension package also contains local screenshot copies.

Artwork credit

The player artwork in the example and screenshots is from Pixel Platformer Pack by Disarmed Games.

  • Original asset pack
  • Disarmed Games
  • Creative Commons Attribution 4.0 International

The example rearranges the supplied Idle, Run, Punch, and Hit sheets into a 20-frame atlas. The artwork pixels are unchanged. Screenshots show enlarged editor views with nearest-neighbor scaling. The extension code uses the MIT license. The artwork retains its separate license. Disarmed Games does not endorse this extension.

The package includes full attribution in THIRD_PARTY_NOTICES.md.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft