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.
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
- Install Blockenberg. Install from WordPress.org and activate the plugin.
- Insert the block. Edit a page, click +, search for “Pixel Art Editor”, insert it. Category: Interactive.
- Configure inspector controls that exist on this block. Open Content. Set “Grid Columns”, “Grid Rows”, “Show Grid Lines”, “Show Download Button”.
- 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
| Control | What the code does |
|---|---|
| Grid Columns | Numeric range control in the inspector. Range 8–64. block.json default: 32. Saved as `gridCols`. |
| Grid Rows | Numeric range control in the inspector. Range 8–64. block.json default: 32. Saved as `gridRows`. |
| Show Grid Lines | On/off toggle in the inspector. On by default. Saved as `showGrid`. |
| Show Download Button | On/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 Background | Color control in the inspector. block.json default: #ffffff. Saved as `canvasBg`. |
| Grid Line Color | Color control in the inspector. block.json default: #e5e7eb. Saved as `gridLineColor`. |
| Section Background | Color control in the inspector. block.json default: #f8fafc. Saved as `sectionBg`. |
| Title Color | Color control in the inspector. block.json default: #1e1b4b. Saved as `titleColor`. |
| Accent Color | Color control in the inspector. block.json default: #6366f1. Saved as `accentColor`. |
What the front-end script actually does
- The view script reads HTML data attributes: data-opts.
- Drawing happens on a canvas element after the page loads.
When this is the right block
- An interactive pixel art canvas. Visitors paint, fill, and erase pixels then download their creation as a PNG — that is the job of Pixel Art Editor, not a generic content block.
- Use it when you need the editor control labeled “Grid Columns”, which exists on this block’s inspector.
- It matches pages about pixel, art, draw.
- Inserter grouping: quizzes, games, and click-to-reveal experiences.
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
2048 Game
The classic sliding-tile 2048 puzzle. Swipe or use arrow keys to merge tiles and reach the 2048 tile.
Analog Clock
A beautiful live analog clock rendered with SVG. Fully customizable: clock style, timezone, colors, size, and optional date/time labels.
Bingo Card
Interactive 5×5 Bingo card with number calling, win detection, and celebration animations.
Content Score
Visual content or SEO scoring card with circular gauge, color-coded criteria rows, and overall grade.
Dice Roller
Interactive dice roller supporting d4, d6, d8, d10, d12, d20 and d100. Roll multiple dice, see individual results, totals, and past roll history.
Drawing Canvas
A fully interactive freehand drawing canvas with multiple tools, undo, and download — right in your page.
Get Blockenberg
Install Blockenberg from WordPress.org, then insert Pixel Art Editor from the Gutenberg inserter.