How terrain is drawn
Each tileset is five files. A tile id in the map file leads through them to pixels:
MTXM tile id ──(bits 4–14)──▶ CV5 group ──(bits 0–3)──▶ VX4 megatile
VX4 megatile ──▶ 16 minitile refs (bit 0 = flipped) ──▶ VR4 8×8 bitmaps ──▶ WPE palette
Bit 15 of a tile id is not part of the tile. The game files it as a creep flag, but a tile with it set plays as the plain tile: no creep shows and no Zerg building can go there. The editor draws such a tile as the tile the other bits name.
A tile is a 32×32 megatile made of sixteen 8×8 minitiles, each an index into the tileset's 256-colour palette. The CV5 groups megatiles into terrain types with their variations and edge pieces, which is where the terrain palette's list of terrains comes from. The VF4 holds each minitile's walkability and height, which the elevation and buildability overlays, the placement checks and the Walkability plugin all read.
The editor draws each tileset once into one large image, the atlas, and draws the map by copying tiles out of it. Only the tileset the open map uses is decoded; the others are fetched into the browser's cache in the background so a later map opens faster.
Water and lava#
The graphics are indexed colour, and StarCraft animates water and lava by rotating a few short bands of the palette every eight game frames, about a third of a second at the Fastest speed. The band tables per tileset are the game's own; Space Platform and Installation have none. View ▸ Animate Water turns the animation on, and Preferences ▸ View sets the speed from a quarter to four times the game's. The minimap and the far zoom levels, which draw average tile colours, do not animate.
Remastered graphics#

View ▸ Remastered Graphics draws the terrain, units and sprites from StarCraft: Remastered's own pictures in place of the classic ones, and switches back at any time. It needs game data from a Remastered installation; with a 1.16 copy the option says so and the classic graphics stay. Installing from Remastered turns the option on; from then on it is yours, and the View menu remembers it from one session to the next.
Terrain. Remastered keeps one picture per megatile, 64 pixels square where the classic one is 32, numbered as the same installation's tile tables are. So the map is untouched, and so is everything the editor works out from the tiles (walkability, height, buildability, the terrain brushes): only where a megatile's pixels come from changes. Each picture is decoded the first time it is drawn. Turning the option on loads the tileset's Remastered file once (3 to 21 MB); the classic terrain keeps drawing until it has arrived.
Units and sprites. Where the classic game has a GRP per image, Remastered has a sprite sheet whose frame N is the GRP's frame N. So the animation scripts, facings and positions are the same, and only the pixels differ. A second picture marks what takes the player's colour. About 780 of the 885 images the editor uses have a Remastered sprite; the rest, and any whose file has not arrived yet, are drawn from their GRP, so the two can appear side by side.
At 100% zoom both are drawn at half their size, at 200% pixel for pixel, where the classic graphics are each pixel doubled. The tile palette, doodad and unit thumbnails, the paste preview and an exported map image follow the same option. A plugin that asks for a unit's or a sprite's picture is always given the classic one.
Water and lava. Remastered does not rotate the palette. It draws the ground and then bends the picture: water is the ground seen through two layers of ripples drifting across the map, and lava the ground seen through heat, which shows on whatever glows red and leaves dark rock alone. A table per tileset says which megatiles take the effect, and a mask for each says where on it, so a shoreline tile moves on its water side only. The editor does the same with View ▸ Animate Water on. On Ashworld the effect is lava, on the other tilesets water; Space Platform and Installation have neither. Desert's tar is left still, as in the game.
How far the picture bends and how the ripples drift are the game's own figures. How large the ripples are and how fast they change are not in its files, so they can be adjusted: Preferences ▸ View ▸ Graphics ▸ Water and lava has the bend, the glint, the two ripple sizes, their rate and the lava's heat, and the water speed on the same page applies to both. This needs WebGL, which every current browser has; without it the water and lava are drawn still. An exported map image is always still.

Three things differ from the game:
- The water's glint comes from the ripples alone; the game places a highlight by the middle of the screen, which in an editor would follow the window about.
- The sprites are drawn flat, without the game's lighting.
- The minimap and the far zoom levels keep the classic average colours.