
Nonograma
Pintas casillas de una cuadrícula siguiendo los números de cada fila y columna, que dicen cuántos tramos seguidos de casillas pintadas hay y de qué largo. Deduces casilla a casilla, sin adivinar, hasta que aparece un dibujo escondido.
También se llama: Picross, pintar por números, hanjie, logigrama, griddler
Esta es una ficha básica: tiene la definición y la clasificación. Las fichas completas suman historia, juegos y una demo.
Demo propia
Controles. Clic o toque en una casilla para pintarla; arrastra para pintar varias seguidas. Clic derecho, la tecla X o el botón de modo para marcar con una ✕ las casillas que sabes vacías. Z o el botón Deshacer deshace el último trazo, y R o Reiniciar borra la cuadrícula.
Abrir en pantalla completaTres nonogramas que crecen de 5 × 5 a 10 × 10 casillas. Los números de cada fila y columna dicen cuántos tramos seguidos de casillas pintadas hay y de qué largo, y con eso deduces el dibujo sin adivinar. Al resolver cada uno, el dibujo aparece en color.
Hecha con Kaplay, en unas 155 líneas de JavaScript.
Cómo está hecha
Configuración
Se crea el juego con tamaño fijo y se eligen los colores de la casilla vacía, la pintada y las pistas. No hacen falta botones táctiles en pantalla, porque los botones de modo, deshacer y reiniciar se dibujan dentro del juego.
// Played with the mouse or a finger, so it needs no touch buttons: the mode, // undo and restart buttons are drawn inside the game. kaplay({ width: 640, height: 360, letterbox: true, pixelDensity, background: [24, 26, 38], buttons: { start: { keyboard: ["space", "enter"] } }, }); const PAPER = rgb(236, 232, 220); // an empty cell const INK = rgb(40, 44, 64); // a filled cell const CLUE = rgb(225, 228, 240); const CLUE_DONE = rgb(110, 115, 140); // a clue whose line already matchesLos puzles
Cada solución está dibujada como texto: un punto es una casilla vacía y cualquier letra, una pintada. La letra solo decide el color del dibujo al final (r rojo, w crema, b marrón, g verde); las pistas no la tienen en cuenta. Para crear un puzle nuevo basta con dibujarlo aquí.
// Each solution is drawn as text: "." is empty and any letter is filled. // The letter only sets the colour shown when the picture is revealed; the // clues ignore it. The puzzles grow in size, and each one can be solved // line by line without guessing (see the exercises). const PALETTE = { r: rgb(214, 64, 74), w: rgb(236, 196, 120), b: rgb(122, 78, 44), g: rgb(70, 160, 84) }; const PUZZLES = [ { name: { es: "Corazón", en: "Heart" }, rows: [".r.r.", "rrrrr", "rrrrr", ".rrr.", "..r.."] }, { name: { es: "Casa", en: "House" }, rows: ["...r...", "..rrr..", ".rrrrr.", "rrrrrrr", ".w...w.", ".w.b.w.", ".wwbww."] }, { name: { es: "Árbol", en: "Tree" }, rows: ["....gg....", "...gggg...", "..gggggg..", ".gggggggg.", "..gggggg..", ".gggggggg.", "gggggggggg", "....bb....", "....bb....", "...bbbb..."] }, ];Las pistas
La función runs cuenta los tramos seguidos de casillas pintadas de una línea. Con ella se calculan las pistas a partir de la solución, así nunca pueden contradecir al dibujo, y con la misma función se comprueba lo que va pintando el jugador.
// A clue lists the lengths of the runs of filled cells in a line, in order. // They are computed from the solution, never typed by hand, so they can't // disagree with the picture. An empty line has the clue "0". function runs(line) { const lengths = line.join("").split(/0+/).filter(Boolean).map((s) => s.length); return lengths.length ? lengths : [0]; } const sameRuns = (a, b) => a.join() === b.join();El tablero
El tamaño de la casilla se ajusta para que cualquier cuadrícula quepa en el mismo espacio, dejando sitio a la izquierda y arriba para las pistas. Todo se redibuja en cada fotograma a partir del estado, y una pista se apaga cuando su línea ya coincide. Cada cinco casillas hay una línea más gruesa que ayuda a contar, como en los nonogramas impresos.
// The grid sits so its top-left corner leaves room for the row clues on the // left and the column clues on top. Cells are redrawn every frame from // `grid`, which keeps the drawing and the state from ever disagreeing. const CELL = Math.floor(220 / Math.max(W, H)); const X0 = 250 - (W * CELL) / 2 + 40, Y0 = 336 - H * CELL; const cellAt = (p) => { const x = Math.floor((p.x - X0) / CELL), y = Math.floor((p.y - Y0) / CELL); return x >= 0 && y >= 0 && x < W && y < H ? { x, y } : null; }; const line = (i, isRow) => (isRow ? grid[i] : grid.map((r) => r[i])).map((v) => (v === 1 ? 1 : 0)); add([text(t(puzzle.name).replace(/./g, "?"), { size: 13, font: FONT }), pos(20, 16), color(CLUE_DONE), "title"]); add([text(t({ es: `Nonograma ${level + 1} de ${PUZZLES.length}`, en: `Nonogram ${level + 1} of ${PUZZLES.length}` }), { size: 20, font: FONT }), pos(20, 34)]); onDraw(() => { for (let y = 0; y < H; y++) { const done = sameRuns(runs(line(y, true)), rowClues[y]); drawText({ text: rowClues[y].join(" "), size: 14, font: FONT, pos: vec2(X0 - 8, Y0 + y * CELL + CELL / 2), anchor: "right", color: done ? CLUE_DONE : CLUE }); } for (let x = 0; x < W; x++) { const done = sameRuns(runs(line(x, false)), colClues[x]); drawText({ text: colClues[x].join("\n"), size: 14, font: FONT, align: "center", lineSpacing: 1, pos: vec2(X0 + x * CELL + CELL / 2, Y0 - 6), anchor: "bot", color: done ? CLUE_DONE : CLUE }); } for (let y = 0; y < H; y++) for (let x = 0; x < W; x++) { const p = vec2(X0 + x * CELL, Y0 + y * CELL); const v = grid[y][x]; const fill = solved ? (PALETTE[puzzle.rows[y][x]] ?? PAPER) : v === 1 ? INK : PAPER; drawRect({ pos: p, width: CELL, height: CELL, color: fill, outline: { width: 1, color: rgb(150, 150, 165) } }); if (v === 2 && !solved) { const a = p.add(CELL * 0.28), b = p.add(CELL * 0.72); drawLine({ p1: a, p2: b, width: 2, color: rgb(170, 90, 90) }); drawLine({ p1: vec2(a.x, b.y), p2: vec2(b.x, a.y), width: 2, color: rgb(170, 90, 90) }); } } // a thicker line every five cells helps count, as in printed nonograms for (let i = 5; i < Math.max(W, H); i += 5) { if (i < W) drawLine({ p1: vec2(X0 + i * CELL, Y0), p2: vec2(X0 + i * CELL, Y0 + H * CELL), width: 2, color: INK }); if (i < H) drawLine({ p1: vec2(X0, Y0 + i * CELL), p2: vec2(X0 + W * CELL, Y0 + i * CELL), width: 2, color: INK }); } });Pintar y marcar
Un trazo decide al empezar qué hace (pintar, marcar con ✕ o borrar si la casilla ya estaba así) y lo repite en cada casilla por la que arrastras, sin pisar las del otro tipo. Antes de cada trazo se guarda una copia de la cuadrícula para poder deshacerlo. La ✕ no cuenta para la solución, es solo una nota del jugador, pero en este género es tan importante como pintar.
// A stroke starts on a cell and decides once what to do (fill, mark or // clear); dragging repeats that action on every cell you pass over. Right // click, or the Mark button on touch screens, marks an X instead of filling. let markMode = false; let stroke = null; // the value a drag writes, or null when not dragging function button(label, y, action) { const b = add([rect(150, 34, { radius: 4 }), pos(470, y), color(60, 66, 96), outline(2, rgb(120, 126, 160)), area()]); const l = b.add([text(label, { size: 15, font: FONT }), pos(75, 17), anchor("center")]); b.onClick(action); return l; } const modeLabel = button("", 120, () => (markMode = !markMode)); button(t({ es: "Deshacer (Z)", en: "Undo (Z)" }), 164, undo); button(t({ es: "Reiniciar (R)", en: "Restart (R)" }), 208, restart); onUpdate(() => (modeLabel.text = markMode ? t({ es: "Modo: marcar ✕", en: "Mode: mark ✕" }) : t({ es: "Modo: pintar ■", en: "Mode: fill ■" }))); function begin(mark) { const c = cellAt(mousePos()); if (!c || solved) return; history.push(grid.map((r) => [...r])); const want = mark ? 2 : 1; stroke = grid[c.y][c.x] === want ? 0 : want; // pressing on the same state clears it apply(); } function apply() { const c = cellAt(mousePos()); if (stroke === null || !c) return; // a drag never overwrites the other state (filling skips X marks and back) if (stroke === 0 || grid[c.y][c.x] === 0) grid[c.y][c.x] = stroke; } onMousePress("left", () => begin(markMode)); onMousePress("right", () => begin(true)); onMouseMove(apply); onMouseRelease(() => { if (stroke !== null) (stroke = null), check(); }); function undo() { if (history.length && !solved) grid = history.pop(); } function restart() { if (solved) return; history.push(grid.map((r) => [...r])); grid = grid.map((r) => r.map(() => 0)); } onKeyPress("z", undo); onKeyPress("r", restart); onKeyPress("x", () => (markMode = !markMode));Comprobar la solución
Al soltar cada trazo se comparan todas las filas y columnas con sus pistas. Se comparan los tramos y no las casillas exactas, así que si un puzle tuviera dos soluciones se aceptaría cualquiera. Al resolverlo se revela el nombre y el dibujo en color.
// The puzzle is solved when every line matches its clues. Comparing runs // instead of the exact cells also accepts another picture with the same // clues, the fair rule if a puzzle ever had two solutions. X marks don't // count: they are only notes. Solving reveals the picture in colour. function check() { const ok = rowClues.every((c, y) => sameRuns(runs(line(y, true)), c)) && colClues.every((c, x) => sameRuns(runs(line(x, false)), c)); if (!ok) return; solved = true; get("title")[0].text = t(puzzle.name); get("title")[0].color = rgb(255, 220, 140); add([text(t({ es: "¡Resuelto!", en: "Solved!" }), { size: 26, font: FONT }), pos(545, 280), anchor("center"), color(255, 220, 140)]); add([text(t({ es: "Pulsa espacio o toca", en: "Press space or tap" }), { size: 13, font: FONT }), pos(545, 310), anchor("center")]); const next = () => go(level + 1 < PUZZLES.length ? "game" : "end", level + 1); wait(0.5, () => { onButtonPress("start", next); onClick(next); }); }Escenas
Título, juego y fin. La escena del juego recibe el número de puzle, y al resolver uno se pasa al siguiente con espacio o un toque.
function screen(title, subtitle) { add([text(title, { size: 32, font: FONT, align: "center" }), pos(center().sub(0, 60)), anchor("center")]); add([text(subtitle, { size: 16, font: FONT, align: "center", width: 560, lineSpacing: 4 }), pos(center().add(0, 30)), anchor("center"), color(200, 205, 230)]); onButtonPress("start", () => go("game", 0)); onClick(() => go("game", 0)); } scene("title", () => screen( t({ es: "Nonograma", en: "Nonogram" }), t({ es: "Los números de cada fila y columna dicen cuántos tramos seguidos de casillas pintadas hay, y en qué orden. Pinta las casillas hasta descubrir el dibujo.\nClic para pintar, clic derecho o modo ✕ para marcar las vacías. Pulsa espacio o toca para empezar.", en: "The numbers on each row and column tell you how many runs of filled cells there are, and in what order. Fill in cells until the picture appears.\nClick to fill, right-click or ✕ mode to mark empty cells. Press space or tap to start.", }), ), ); scene("end", () => screen( t({ es: "¡Tres dibujos descubiertos!", en: "Three pictures revealed!" }), t({ es: "Pulsa espacio para jugar otra vez.", en: "Press space to play again." }), ), ); go("title");
Qué simplificamos
- Solo hay tres puzles pequeños y en blanco y negro. Los juegos del género traen cientos, con cuadrículas de hasta 25 × 20 o más, y algunos usan pistas de colores.
- El juego no avisa de los errores ni tiene límite de tiempo, como el modo libre de Picross. En Mario's Picross, en cambio, cada error resta minutos.
- No hay pistas automáticas, guardado ni teclado para moverse por la cuadrícula; todo se juega con el ratón o el dedo.
Para modificarla
- Dibuja un puzle nuevo de 8 × 8 en la región puzzles. Resuélvelo tú sin mirar el dibujo y comprueba si en algún momento tuviste que adivinar. Si fue así, cambia alguna casilla hasta que se pueda resolver solo con lógica.
- Añade un contador de errores que sume uno cada vez que pintas una casilla que no está en la solución, como en Mario's Picross.
- Escribe un programa que resuelva una línea probando todas las formas de colocar sus tramos y quedándose con las casillas que coinciden en todas. Úsalo para comprobar si un puzle tiene solución única.
Código completo
// Nonogram demo
// Engine: Kaplay 3001 (https://kaplayjs.com). MIT licence.
import kaplay from "../../vendor/kaplay.mjs";
import { t, FONT, pixelDensity } from "../common.js";
// #region setup
// Played with the mouse or a finger, so it needs no touch buttons: the mode,
// undo and restart buttons are drawn inside the game.
kaplay({
width: 640,
height: 360,
letterbox: true, pixelDensity,
background: [24, 26, 38],
buttons: { start: { keyboard: ["space", "enter"] } },
});
const PAPER = rgb(236, 232, 220); // an empty cell
const INK = rgb(40, 44, 64); // a filled cell
const CLUE = rgb(225, 228, 240);
const CLUE_DONE = rgb(110, 115, 140); // a clue whose line already matches
// #endregion
// #region puzzles
// Each solution is drawn as text: "." is empty and any letter is filled.
// The letter only sets the colour shown when the picture is revealed; the
// clues ignore it. The puzzles grow in size, and each one can be solved
// line by line without guessing (see the exercises).
const PALETTE = { r: rgb(214, 64, 74), w: rgb(236, 196, 120), b: rgb(122, 78, 44), g: rgb(70, 160, 84) };
const PUZZLES = [
{ name: { es: "Corazón", en: "Heart" }, rows: [".r.r.", "rrrrr", "rrrrr", ".rrr.", "..r.."] },
{ name: { es: "Casa", en: "House" },
rows: ["...r...", "..rrr..", ".rrrrr.", "rrrrrrr", ".w...w.", ".w.b.w.", ".wwbww."] },
{ name: { es: "Árbol", en: "Tree" },
rows: ["....gg....", "...gggg...", "..gggggg..", ".gggggggg.", "..gggggg..",
".gggggggg.", "gggggggggg", "....bb....", "....bb....", "...bbbb..."] },
];
// #endregion
// #region clues
// A clue lists the lengths of the runs of filled cells in a line, in order.
// They are computed from the solution, never typed by hand, so they can't
// disagree with the picture. An empty line has the clue "0".
function runs(line) {
const lengths = line.join("").split(/0+/).filter(Boolean).map((s) => s.length);
return lengths.length ? lengths : [0];
}
const sameRuns = (a, b) => a.join() === b.join();
// #endregion
scene("game", (level) => {
const puzzle = PUZZLES[level];
const solution = puzzle.rows.map((r) => [...r].map((c) => (c === "." ? 0 : 1)));
const H = solution.length, W = solution[0].length;
const rowClues = solution.map(runs);
const colClues = [...Array(W)].map((_, x) => runs(solution.map((r) => r[x])));
// cell states: 0 empty, 1 filled, 2 marked with an X (known to be empty)
let grid = [...Array(H)].map(() => Array(W).fill(0));
const history = []; // grids before each stroke, for undo
let solved = false;
// #region board
// The grid sits so its top-left corner leaves room for the row clues on the
// left and the column clues on top. Cells are redrawn every frame from
// `grid`, which keeps the drawing and the state from ever disagreeing.
const CELL = Math.floor(220 / Math.max(W, H));
const X0 = 250 - (W * CELL) / 2 + 40, Y0 = 336 - H * CELL;
const cellAt = (p) => {
const x = Math.floor((p.x - X0) / CELL), y = Math.floor((p.y - Y0) / CELL);
return x >= 0 && y >= 0 && x < W && y < H ? { x, y } : null;
};
const line = (i, isRow) => (isRow ? grid[i] : grid.map((r) => r[i])).map((v) => (v === 1 ? 1 : 0));
add([text(t(puzzle.name).replace(/./g, "?"), { size: 13, font: FONT }), pos(20, 16), color(CLUE_DONE), "title"]);
add([text(t({ es: `Nonograma ${level + 1} de ${PUZZLES.length}`, en: `Nonogram ${level + 1} of ${PUZZLES.length}` }),
{ size: 20, font: FONT }), pos(20, 34)]);
onDraw(() => {
for (let y = 0; y < H; y++) {
const done = sameRuns(runs(line(y, true)), rowClues[y]);
drawText({ text: rowClues[y].join(" "), size: 14, font: FONT, pos: vec2(X0 - 8, Y0 + y * CELL + CELL / 2),
anchor: "right", color: done ? CLUE_DONE : CLUE });
}
for (let x = 0; x < W; x++) {
const done = sameRuns(runs(line(x, false)), colClues[x]);
drawText({ text: colClues[x].join("\n"), size: 14, font: FONT, align: "center", lineSpacing: 1,
pos: vec2(X0 + x * CELL + CELL / 2, Y0 - 6), anchor: "bot", color: done ? CLUE_DONE : CLUE });
}
for (let y = 0; y < H; y++)
for (let x = 0; x < W; x++) {
const p = vec2(X0 + x * CELL, Y0 + y * CELL);
const v = grid[y][x];
const fill = solved ? (PALETTE[puzzle.rows[y][x]] ?? PAPER) : v === 1 ? INK : PAPER;
drawRect({ pos: p, width: CELL, height: CELL, color: fill, outline: { width: 1, color: rgb(150, 150, 165) } });
if (v === 2 && !solved) {
const a = p.add(CELL * 0.28), b = p.add(CELL * 0.72);
drawLine({ p1: a, p2: b, width: 2, color: rgb(170, 90, 90) });
drawLine({ p1: vec2(a.x, b.y), p2: vec2(b.x, a.y), width: 2, color: rgb(170, 90, 90) });
}
}
// a thicker line every five cells helps count, as in printed nonograms
for (let i = 5; i < Math.max(W, H); i += 5) {
if (i < W) drawLine({ p1: vec2(X0 + i * CELL, Y0), p2: vec2(X0 + i * CELL, Y0 + H * CELL), width: 2, color: INK });
if (i < H) drawLine({ p1: vec2(X0, Y0 + i * CELL), p2: vec2(X0 + W * CELL, Y0 + i * CELL), width: 2, color: INK });
}
});
// #endregion
// #region input
// A stroke starts on a cell and decides once what to do (fill, mark or
// clear); dragging repeats that action on every cell you pass over. Right
// click, or the Mark button on touch screens, marks an X instead of filling.
let markMode = false;
let stroke = null; // the value a drag writes, or null when not dragging
function button(label, y, action) {
const b = add([rect(150, 34, { radius: 4 }), pos(470, y), color(60, 66, 96), outline(2, rgb(120, 126, 160)), area()]);
const l = b.add([text(label, { size: 15, font: FONT }), pos(75, 17), anchor("center")]);
b.onClick(action);
return l;
}
const modeLabel = button("", 120, () => (markMode = !markMode));
button(t({ es: "Deshacer (Z)", en: "Undo (Z)" }), 164, undo);
button(t({ es: "Reiniciar (R)", en: "Restart (R)" }), 208, restart);
onUpdate(() => (modeLabel.text = markMode ? t({ es: "Modo: marcar ✕", en: "Mode: mark ✕" }) : t({ es: "Modo: pintar ■", en: "Mode: fill ■" })));
function begin(mark) {
const c = cellAt(mousePos());
if (!c || solved) return;
history.push(grid.map((r) => [...r]));
const want = mark ? 2 : 1;
stroke = grid[c.y][c.x] === want ? 0 : want; // pressing on the same state clears it
apply();
}
function apply() {
const c = cellAt(mousePos());
if (stroke === null || !c) return;
// a drag never overwrites the other state (filling skips X marks and back)
if (stroke === 0 || grid[c.y][c.x] === 0) grid[c.y][c.x] = stroke;
}
onMousePress("left", () => begin(markMode));
onMousePress("right", () => begin(true));
onMouseMove(apply);
onMouseRelease(() => {
if (stroke !== null) (stroke = null), check();
});
function undo() {
if (history.length && !solved) grid = history.pop();
}
function restart() {
if (solved) return;
history.push(grid.map((r) => [...r]));
grid = grid.map((r) => r.map(() => 0));
}
onKeyPress("z", undo);
onKeyPress("r", restart);
onKeyPress("x", () => (markMode = !markMode));
// #endregion
// #region check
// The puzzle is solved when every line matches its clues. Comparing runs
// instead of the exact cells also accepts another picture with the same
// clues, the fair rule if a puzzle ever had two solutions. X marks don't
// count: they are only notes. Solving reveals the picture in colour.
function check() {
const ok = rowClues.every((c, y) => sameRuns(runs(line(y, true)), c)) &&
colClues.every((c, x) => sameRuns(runs(line(x, false)), c));
if (!ok) return;
solved = true;
get("title")[0].text = t(puzzle.name);
get("title")[0].color = rgb(255, 220, 140);
add([text(t({ es: "¡Resuelto!", en: "Solved!" }), { size: 26, font: FONT }), pos(545, 280), anchor("center"), color(255, 220, 140)]);
add([text(t({ es: "Pulsa espacio o toca", en: "Press space or tap" }), { size: 13, font: FONT }), pos(545, 310), anchor("center")]);
const next = () => go(level + 1 < PUZZLES.length ? "game" : "end", level + 1);
wait(0.5, () => {
onButtonPress("start", next);
onClick(next);
});
}
// #endregion
});
// #region scenes
function screen(title, subtitle) {
add([text(title, { size: 32, font: FONT, align: "center" }), pos(center().sub(0, 60)), anchor("center")]);
add([text(subtitle, { size: 16, font: FONT, align: "center", width: 560, lineSpacing: 4 }), pos(center().add(0, 30)),
anchor("center"), color(200, 205, 230)]);
onButtonPress("start", () => go("game", 0));
onClick(() => go("game", 0));
}
scene("title", () =>
screen(
t({ es: "Nonograma", en: "Nonogram" }),
t({
es: "Los números de cada fila y columna dicen cuántos tramos seguidos de casillas pintadas hay, y en qué orden. Pinta las casillas hasta descubrir el dibujo.\nClic para pintar, clic derecho o modo ✕ para marcar las vacías. Pulsa espacio o toca para empezar.",
en: "The numbers on each row and column tell you how many runs of filled cells there are, and in what order. Fill in cells until the picture appears.\nClick to fill, right-click or ✕ mode to mark empty cells. Press space or tap to start.",
}),
),
);
scene("end", () =>
screen(
t({ es: "¡Tres dibujos descubiertos!", en: "Three pictures revealed!" }),
t({ es: "Pulsa espacio para jugar otra vez.", en: "Press space to play again." }),
),
);
go("title");
// #endregionHistoria
- 1987
Non Ishida y Tetsuya Nishio inventan por separado en Japón el puzle de pintar casillas según números. El nombre «nonograma» une «Non», por su creadora, y «grama», de diagrama.
Nonogram (Wikipedia) - 1995OrigenMario's Picross
Los nonogramas nacieron en papel en Japón en 1987. Mario's Picross, de Nintendo para Game Boy, los llevó a la consola con límite de tiempo y penalización por error, y su nombre, Picross, se usa hoy como sinónimo del puzle.
Nonogram (Wikipedia) - 2007Picross DS
Picross DS lleva el género a la pantalla táctil, con cuadrículas de 5 × 5 a 25 × 20 y puzles nuevos que se descargaban cada dos semanas.
Nonogram (Wikipedia) - 2009Picross 3D
Picross 3D, de HAL Laboratory, añade un tercer eje. Ya no pintas casillas, sino que talas cubos de un bloque hasta descubrir una figura.
Picross 3D (Wikipedia)
Juegos de referencia
1995
Mario's Picross
Mario pica la piedra de cuadrículas de nonograma para revelar dibujos. Cada puzle tiene un límite de tiempo, y cada error o cada pista pedida te resta minutos.
2007
Picross DS
Nonogramas para la pantalla táctil, de 5 × 5 a 25 × 20 casillas. El modo normal te avisa de cada error con una penalización de tiempo y el modo libre no te dice nada.
2009
Picross 3D
Los números están en las caras de un bloque de cubos. Lo giras y rompes los cubos que sobran hasta que aparece una figura en tres dimensiones.