Interactive · Gutenberg

Pixel Art Editor block for WordPress

An interactive pixel art canvas. Visitors paint, fill, and erase pixels then download their creation as a PNG.

Get Blockenberg

Free Gutenberg block in Blockenberg. The inspector controls and front-end behavior on this page come from this block’s source, not a shared stub.

Get Blockenberg

What it actually does

An interactive pixel art canvas. Visitors paint, fill, and erase pixels then download their creation as a PNG.

Inspector panels on this block: Content, Canvas Settings. Those titles come from index.js, not from a shared template.

Where to find it

Gutenberg inserter → Interactive → search “Pixel Art Editor” (block name `blockenberg/pixel-art` in block.json). Style it in the sidebar after insert.

How to use Pixel Art Editor block for WordPress

  1. Install Blockenberg. Install from WordPress.org and activate the plugin.
  2. Insert the block. Edit a page, click +, search for “Pixel Art Editor”, insert it. Category: Interactive.
  3. Configure inspector controls that exist on this block. Open Content. Set “Grid Columns”, “Grid Rows”, “Show Grid Lines”, “Show Download Button”.
  4. Check the published page. The view script reads HTML data attributes: data-opts. The block editor preview may not run the same view script.

Inspector controls from this block’s code

ControlWhat the code does
Grid ColumnsNumeric range control in the inspector. Range 8–64. block.json default: 32. Saved as `gridCols`.
Grid RowsNumeric range control in the inspector. Range 8–64. block.json default: 32. Saved as `gridRows`.
Show Grid LinesOn/off toggle in the inspector. On by default. Saved as `showGrid`.
Show Download ButtonOn/off toggle in the inspector. On by default. Saved as `showDownload`.
Cell Size (px)Numeric range control in the inspector. Range 6–40. block.json default: 16. Saved as `cellSize`.
Canvas BackgroundColor control in the inspector. block.json default: #ffffff. Saved as `canvasBg`.
Grid Line ColorColor control in the inspector. block.json default: #e5e7eb. Saved as `gridLineColor`.
Section BackgroundColor control in the inspector. block.json default: #f8fafc. Saved as `sectionBg`.
Title ColorColor control in the inspector. block.json default: #1e1b4b. Saved as `titleColor`.
Accent ColorColor control in the inspector. block.json default: #6366f1. Saved as `accentColor`.

What the front-end script actually does

When this is the right block

Notes from the implementation

viewScript: this folder’s frontend.js is enqueued on the front end for this block.

FAQ

How do I add the Pixel Art Editor block in WordPress?

Install Blockenberg from WordPress.org, edit a page in the block editor, click +, and search for “Pixel Art Editor”. It sits under Interactive. After insert, open Content and set “Grid Columns”, “Grid Rows”, “Show Grid Lines”, “Show Download Button”.

What makes Pixel Art Editor different from other Blockenberg blocks?

An interactive pixel art canvas. Visitors paint, fill, and erase pixels then download their creation as a PNG. Inspector labels on this block include “Grid Columns”, “Grid Rows”, “Show Grid Lines”, “Show Download Button”.

Is the Pixel Art Editor Gutenberg block free?

Yes. Pixel Art Editor ships inside Blockenberg. Get the plugin from WordPress.org — no paid add-on is required for this block.

Can I style Pixel Art Editor to match my theme?

Yes. Blockenberg’s shared typography and color panels apply here, plus any block-specific style controls listed on this page (panels: Content, Canvas Settings).

Related interactive blocks

Get Blockenberg

Install Blockenberg from WordPress.org, then insert Pixel Art Editor from the Gutenberg inserter.

Get Blockenberg