PC-6001 GFX EDITOR | 日本語 · English
v1.1
DOCUMENTATION

PC-6001 GRAPHICS EDITOR

仕様書 & 利用マニュアル / Specification & User Manual
VERSION 1.1 — SINGLE FILE HTML — NO DEPENDENCIES
◆ 目次
  1. 概要
  2. スクリーンモード仕様
  3. パレット
  4. 描画ツール一覧
  5. 利用方法
  6. エクスポート形式
  7. キーボードショートカット
  8. 注意事項
  9. バージョン履歴
01

概要

PC-6001 GFX Editor は、NEC PC-6001 の 3 種類のグラフィックスクリーンモードに対応した、ブラウザ上で動作するピクセルアートエディタです。 外部ライブラリへの依存は一切なく、HTML ファイル 1 枚で完結しています。

PC-6001 実機の VRAM 構造に準拠したデータ形式で、PNG 画像Z80 アセンブラ用 DB テキストの両方をエクスポートできます。 レトロゲーム開発・保存プロジェクト・同人ソフト制作などに活用できます。

ℹ SYSTEM REQUIREMENTS

モダンブラウザ(Chrome / Firefox / Safari / Edge 最新版)。インターネット接続不要。ローカルで開くだけで動作します。

02

スクリーンモード仕様

PC-6001 のグラフィックモードは 3 種類あります。エディタ上部のタブで切り替えます。 モードを切り替えると画面データはリセットされるため、事前に PNG / ASM をエクスポートしてください。

モード 解像度 キャラサイズ グリッド 色指定単位 色数
SCREEN 1 128 × 192 px 8 × 8 px 16 × 24 chars キャラクタ単位 FG/BG 各 16 色
SCREEN 2 128 × 192 px 8 × 1 px 16 × 192 行 行単位(8px 行ごと) FG/BG 各 16 色(同行 2 色制限)
SCREEN 3 64 × 192 px 8 × 8 px 8 × 24 chars キャラクタ単位 FG/BG 各 16 色
SCREEN 1 — セミグラフィック標準モード

最も汎用的なモード。8×8 ピクセルのキャラクタブロック単位で前景色(FG)と背景色(BG)を独立して設定できます。 BASICの SCREEN 1 に相当。同一キャラクタ内は FG/BG の 2 色しか使えませんが、 キャラクタごとに異なる色ペアを設定できるため、実質的に高い表現力を持ちます。

SCREEN 2 — ビットマップ(色衝突注意)

ビットマップ形式で最も細かいドット制御が可能です。ただし1 行(8px)につき FG・BG の 2 色しか使えない制約があります。 これはハードウェアの仕様であり、同じ行に 3 色以上のピクセルを置くと色が崩れます(色衝突)。

⚠ SCREEN 2 色衝突について

エディタは各行の FG/BG 色をパレットで管理していますが、ピクセルを描いた際に自動的にその行の FG 色として扱います。 同じ行に異なる色を置きたい場合は、事前にパレットで FG/BG を設定してから描画してください。 色衝突が発生しているかどうかは、実機またはエミュレータで最終確認することを推奨します。

SCREEN 3 — 低解像度カラーモード

横解像度が 64px に半減する代わりに、SCREEN 1 と同様のキャラクタ単位色指定を維持します。 スプライト的なキャラクタを少ない情報量で表現するのに向いています。

03

パレット

PC-6001 のパレットは 0〜15 番の固定 16 色です。エディタ右パネルに常時表示されています。 左クリックで前景色(FG)、右クリックで背景色(BG)を選択します。

0 黒
1 青
2 赤
3 マゼンタ
4 緑
5 シアン
6 黄
7 白
8 黒(dim)
9 明青
10 明赤
11 明マゼンタ
12 明緑
13 明シアン
14 明黄
15 明白
◆ SCREEN 1/3 でのキャラクタ色設定

ツールで C(キャラ選択) を選び、キャンバス上のキャラクタをクリックすると右パネルにそのキャラの 8×8 ビットグリッドが表示されます。 この状態でパレットの FG/BG を変更すると、選択中キャラクタの色が即時更新されます。

04

描画ツール一覧

左端のツールバー、または以下のキーボードショートカットで選択します。
左クリック=FG色で描画 / 右クリック=BG色で描画

✏️
ペン P
1ドット単位でフリーハンド描画。ドラッグで連続描画。
🧹
消しゴム E
BG色で塗りつぶします。実質ペンのBG描画と同等。
🪣
塗りつぶし F
クリックした点と同色の連続領域をFG色で塗り替えます(フラッドフィル)。
直線 L
ドラッグでブレゼンハム直線を引きます。マウスアップで確定。
矩形(枠) R
ドラッグで矩形の枠線を描きます。
矩形(塗り) Shift+R
ドラッグで塗りつぶし矩形を描きます。
💧
スポイト I
クリックしたピクセルのパレット番号をFG色(右クリックはBG色)に取得。
キャラ選択 C
SCR1/3専用。クリックしたキャラクタを右パネルで編集可能にします。
05

利用方法

基本ワークフロー
スクリーンモードを選択
ヘッダー上部の SCR1 / SCR2 / SCR3 タブをクリック。モード切り替え時はデータが消去されるため注意。
パレットで色を設定
右パネルのパレットを左クリック(FG)または右クリック(BG)で選択。SCR1/3 はキャラ選択ツールで各キャラの色を個別に設定可能。
ツールを選んで描画
ペン・塗りつぶし・直線・矩形などを駆使して作図。ズームはパネルの+/−ボタンで変更。グリッド表示の ON/OFF も切り替え可能。
エクスポート
「PNG ダウンロード」で画像を、「ASM テキスト (DB)」でアセンブラ用テキストをそれぞれ保存。
SCR1 / SCR3 — キャラクタ色の設定手順
  1. ツールバーで C(キャラ選択)を選ぶ
  2. キャンバス上の編集したいキャラクタブロックをクリック
  3. 右パネルの「CHAR EDIT」に 8×8 グリッドが現れる
  4. パレットで FG 色(左クリック)と BG 色(右クリック)を変更 → 即時反映
  5. グリッドのセルを直接クリックして ON/OFF することも可能
PNG の読み込み

「PNG 読み込み…」ボタンで PNG ファイルを取り込めます。 読み込み時に各ピクセルの RGB 値を PC-6001 パレット 16 色の中から最近傍色に変換して表示します。 大きな画像は自動的に現在のモードの解像度(SCR1/2: 128×192、SCR3: 64×192)に縮小されます。

Undo / Redo

最大 50 段の Undo を保持しています。Ctrl+Z で Undo、Ctrl+Y で Redo。 右パネルの「↩ Undo」「↪ Redo」ボタンでも操作できます。 モード切り替えや全消去(CLR)はUndoスタックをリセットします。

06

エクスポート形式

PNG エクスポート

実寸サイズ(SCR1/2: 128×192px、SCR3: 64×192px)の PNG ファイルを生成します。 ファイル名は pc6001_scr1.png のようにモード番号付きになります。 パレット色をそのまま使用した RGB PNG です。

ASM テキスト エクスポート(SCR1 / SCR3)

SCREEN 1 / 3 の場合、パターンデータカラーデータを分けて出力します。

; PC-6001 SCREEN 1 VRAM Data
; ── Pattern Data (3072 bytes) ──
GFX_PATTERN:
    DB  000H, 07EH, 042H, 042H, 042H, 07EH, 000H, 000H  ; CHAR(0,0)
    DB  000H, 000H, 000H, 000H, 000H, 000H, 000H, 000H  ; CHAR(1,0)
    ...
; ── Color Data (384 bytes, upper nibble=FG lower=BG) ──
GFX_COLOR:
    DB  070H, 070H, 070H, 070H, 070H, 070H, 070H, 070H
セクションサイズ (SCR1)内容
GFX_PATTERN 16×24×8 = 3072 bytes 各キャラクタの 8 行 × 8 ビット。MSB = 左端ドット。
GFX_COLOR 16×24 = 384 bytes 上位 4 ビット = FG、下位 4 ビット = BG(パレット番号 0〜15)
ASM テキスト エクスポート(SCR2)

SCREEN 2 の場合、ビットマップデータ行カラーデータに分かれます。

; ── Bitmap Data (3072 bytes) ──
GFX_BITMAP:
    DB  0FFH, 000H, 07EH, 042H, 042H, 07EH, 000H, 0FFH  ; Y=0
    DB  000H, 000H, 000H, 000H, 000H, 000H, 000H, 000H  ; Y=1
    ...
; ── Color Data (192 bytes, upper nibble=FG lower=BG) ──
GFX_COLOR:
    DB  070H, 070H, 070H, 070H, 070H, 070H, 070H, 070H
セクションサイズ内容
GFX_BITMAP 128/8 × 192 = 3072 bytes 各行 16 バイト。MSB = 左端ドット。1 = FG色ドット。
GFX_COLOR 192 bytes 行ごとの FG/BG 色(上位 4 ビット = FG)
07

キーボードショートカット

キー機能
Pペンツール
E消しゴム
F塗りつぶし
L直線
R矩形(枠)
Shift+R矩形(塗り)
Iスポイト
Cキャラ選択
Ctrl+ZUndo(50段)
Ctrl+YRedo
08

注意事項・既知の制限

  • 本エディタは PC-6001 の VRAM 構造を参考にした近似実装です。実機との完全な互換性は保証しません。特に色表示は実機モニタとは異なる場合があります。
  • PNG 読み込み時のパレット変換は最近傍 RGB 距離によるため、元画像の再現精度には限界があります。
  • SCREEN 2 の色衝突制約はエディタ上では完全には強制されません。実機・エミュレータでの動作確認を推奨します。
  • データはブラウザセッション内のみ保持されます。ページを閉じると失われます。作業が完了したら必ずエクスポートしてください。
  • ファイルの保存・読み込み機能(.gfxなど独自形式)は現バージョンでは未実装です。
09

バージョン履歴

バージョンリリース変更内容
v1.1 2026-04-01 実アスペクト比対応
PC-6001 の TV/モニタ出力(4:3)に合わせてドット描画を修正。 SCREEN 1/2 はドット横幅を縦の2倍(2:1)、SCREEN 3 は4倍(4:1)に変更。 マウス座標逆変換・グリッド描画も同様に対応。 スクリーン情報パネルに「ドット比」を表示追加。
v1.0 2026-04-01 初期リリース
SCREEN 1 / 2 / 3 全モード対応。ペン・消しゴム・塗りつぶし・直線・矩形(枠/塗り)・スポイト・キャラ選択の8ツール実装。 PC-6001 固定16色パレット。Undo/Redo 50段。PNG・Z80 DB形式ASMエクスポート。 PNG読み込み(最近傍パレット変換)。グリッド表示 ON/OFF。ズーム ×1〜×8。 キーボードショートカット対応。シングルファイルHTML・外部依存なし。
ENGLISH
01

Overview

PC-6001 GFX Editor is a browser-based pixel art editor that supports all three graphics screen modes of the NEC PC-6001 home computer. It runs entirely from a single HTML file with no external dependencies.

The editor outputs data in a format faithful to the PC-6001's VRAM structure, exporting both PNG images and Z80 assembler DB text. Suitable for retro game development, preservation projects, and homebrew software creation.

ℹ SYSTEM REQUIREMENTS

Any modern browser (Chrome / Firefox / Safari / Edge latest). No internet connection required. Just open the HTML file locally.

02

Screen Mode Specifications

The PC-6001 has three distinct graphics modes. Switch between them using the tabs at the top of the editor. Switching modes resets all canvas data — export your work first.

Mode Resolution Char Size Grid Color Unit Colors
SCREEN 1 128 × 192 px 8 × 8 px 16 × 24 chars Per character FG + BG each 16 colors
SCREEN 2 128 × 192 px 8 × 1 px 16 × 192 rows Per 8px row 2 colors per row (FG+BG)
SCREEN 3 64 × 192 px 8 × 8 px 8 × 24 chars Per character FG + BG each 16 colors
SCREEN 1 — Standard Semi-Graphic Mode

The most versatile mode. Foreground (FG) and background (BG) colors are assigned independently per 8×8 character block. Equivalent to BASIC's SCREEN 1. While only 2 colors are available within a single character cell, each character can have a different color pair, providing strong overall expressiveness.

SCREEN 2 — Bitmap Mode (Beware of Color Clashing)

Offers the finest dot-level control in bitmap format. However, only FG and BG colors are allowed per 8-pixel row. This is a hardware limitation — placing 3 or more colors in the same row will cause color corruption (color clash).

⚠ SCREEN 2 COLOR CLASH

The editor tracks FG/BG per row in the palette, but does not fully enforce the 2-color hardware constraint during painting. Set your row's FG and BG colors in the palette before drawing if you need color control per row. Always verify the final result on real hardware or an emulator.

SCREEN 3 — Low-Resolution Color Mode

Horizontal resolution is halved to 64px, but character-unit color assignment (same as SCREEN 1) is retained. Well-suited for sprite-like characters with minimal data.

03

Palette

The PC-6001 uses a fixed 16-color palette (indices 0–15), always visible in the right panel. Left-click a swatch to set the foreground color (FG); right-click to set the background color (BG).

0 Black
1 Blue
2 Red
3 Magenta
4 Green
5 Cyan
6 Yellow
7 White
8 Black(dim)
9 Bright Blue
10 Bright Red
11 Bright Magenta
12 Bright Green
13 Bright Cyan
14 Bright Yellow
15 Bright White
◆ PER-CHARACTER COLOR (SCREEN 1/3)

Select the C (Char Select) tool and click a character block on the canvas. The right panel will show an 8×8 bit grid for that character. Changing FG/BG in the palette instantly updates that character's colors.

04

Drawing Tools

Select tools from the left toolbar or via keyboard shortcuts.
Left-click = draw with FG color / Right-click = draw with BG color

✏️
Pen P
Freehand drawing one pixel at a time. Hold and drag for continuous strokes.
🧹
Eraser E
Paints with BG color, effectively erasing. Functionally equivalent to pen in BG mode.
🪣
Fill F
Flood-fills a contiguous region of the same color with the current FG color.
Line L
Drag to draw a Bresenham line. Confirms on mouse release.
Rectangle R
Drag to draw an outlined rectangle.
Filled Rect Shift+R
Drag to draw a solid filled rectangle.
💧
Eyedropper I
Picks the palette index of the clicked pixel as FG (right-click = BG).
Char Select C
SCR1/3 only. Click a character block to open it in the per-character editor.
05

How to Use

Basic Workflow
Choose a Screen Mode
Click SCR1 / SCR2 / SCR3 tabs at the top. Note: switching modes clears all canvas data.
Set Colors in the Palette
Left-click a swatch for FG, right-click for BG. In SCR1/3, use the Char Select tool to assign colors per character block.
Draw with Tools
Use pen, fill, line, and rectangle tools to create your graphic. Adjust zoom level and toggle grid visibility in the right panel.
Export Your Work
Click "PNG ダウンロード" for a PNG image, or "ASM テキスト (DB)" for an assembler-ready text file.
Setting Per-Character Colors (SCR1 / SCR3)
  1. Select the C (Char Select) tool from the toolbar
  2. Click on any character block on the canvas
  3. The "CHAR EDIT" 8×8 grid appears in the right panel
  4. Left-click a palette swatch to change FG, right-click for BG — instantly reflected
  5. You can also click individual cells in the 8×8 grid to toggle pixels on/off
Loading a PNG

Click "PNG 読み込み…" to import a PNG file. Each pixel's RGB value is mapped to the nearest PC-6001 palette color. Images larger than the current mode's resolution (SCR1/2: 128×192, SCR3: 64×192) are scaled down automatically.

Undo / Redo

Up to 50 undo steps are kept in memory. Use Ctrl+Z to undo and Ctrl+Y to redo. The "↩ Undo" and "↪ Redo" buttons in the right panel provide the same functionality. The undo stack is cleared when switching modes or using the "CLR" (clear all) function.

06

Export Formats

PNG Export

Generates a PNG at native resolution (128×192 for SCR1/2, 64×192 for SCR3). The filename is pc6001_scr1.png (mode number appended). Colors are rendered using the PC-6001 palette RGB values directly.

ASM Text Export — SCREEN 1 / SCREEN 3

Outputs pattern data and color data as separate labeled blocks.

; PC-6001 SCREEN 1 VRAM Data
; ── Pattern Data (3072 bytes) ──
GFX_PATTERN:
    DB  000H, 07EH, 042H, 042H, 042H, 07EH, 000H, 000H  ; CHAR(0,0)
    DB  000H, 000H, 000H, 000H, 000H, 000H, 000H, 000H  ; CHAR(1,0)
    ...
; ── Color Data (384 bytes) ──
GFX_COLOR:
    DB  070H, 070H, ...  ; upper nibble=FG, lower nibble=BG
SectionSize (SCR1)Contents
GFX_PATTERN 16×24×8 = 3072 bytes 8 rows × 8 bits per character. MSB = leftmost pixel.
GFX_COLOR 16×24 = 384 bytes Upper 4 bits = FG index, Lower 4 bits = BG index (0–15).
ASM Text Export — SCREEN 2

Outputs bitmap data and row color data.

; ── Bitmap Data (3072 bytes) ──
GFX_BITMAP:
    DB  0FFH, 000H, ...  ; Y=0, 16 bytes per row
; ── Color Data (192 bytes) ──
GFX_COLOR:
    DB  070H, ...  ; per row: upper nibble=FG, lower=BG
SectionSizeContents
GFX_BITMAP 128/8 × 192 = 3072 bytes 16 bytes per row. MSB = leftmost pixel. 1 = FG dot.
GFX_COLOR 192 bytes (1 per row) Upper 4 bits = FG index, Lower 4 bits = BG index.
07

Keyboard Shortcuts

KeyAction
PPen tool
EEraser
FFlood fill
LLine tool
RRectangle (outline)
Shift+RRectangle (filled)
IEyedropper
CCharacter select
Ctrl+ZUndo (up to 50 steps)
Ctrl+YRedo
08

Notes & Known Limitations

  • This editor is an approximate implementation based on the PC-6001 VRAM structure. Full hardware compatibility is not guaranteed. Color rendering may differ from an actual monitor.
  • PNG import uses nearest-neighbor RGB distance for palette conversion; faithfulness to the original image is limited.
  • SCREEN 2 color clash constraints are not fully enforced in the editor. Always verify on real hardware or an emulator.
  • Data is held in browser memory only and will be lost when the page is closed. Always export before closing.
  • A native project file save/load feature (custom format) is not yet implemented.
09

Version History

VersionReleasedChanges
v1.1 2026-04-01 Correct pixel aspect ratio
Pixel rendering now matches the PC-6001's actual TV/monitor output (4:3 screen). SCREEN 1/2 dots are drawn 2× wider than tall (2:1); SCREEN 3 dots are 4× wider (4:1). Mouse coordinate inverse-transform and grid drawing updated accordingly. "Dot ratio" added to the Screen Info panel.
v1.0 2026-04-01 Initial release
Full support for SCREEN 1 / 2 / 3 modes. Eight drawing tools: pen, eraser, flood fill, line, rectangle (outline/filled), eyedropper, character select. Fixed 16-color PC-6001 palette. Undo/Redo up to 50 steps. PNG and Z80 DB-format ASM export. PNG import with nearest-neighbor palette conversion. Grid display toggle. Zoom ×1–×8. Full keyboard shortcut support. Single-file HTML, no external dependencies.