Doc'ing new "Maze" magic tool

This commit is contained in:
Bill Kendrick 2023-01-21 03:23:18 -08:00
parent 3ba15f7b70
commit aa35d18927
21 changed files with 142 additions and 3 deletions

View file

@ -66,6 +66,7 @@
<li><a href="fretwork.html">Fretwork</a></li>
<li><a href="grass.html">Grass</a></li>
<li><a href="light.html">Light</a></li>
<li><a href="maze.html">Maze</a></li>
<li><a href="metal_paint.html">Metal Paint</a></li>
<li><a href="pixels.html">Pixels</a></li>
<li><a href="rails.html">Rails</a></li>

View file

@ -0,0 +1,13 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<body><html><head><title>Tux Paint "Magic" Tool: Maze</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#FF0000" alink="#FF00FF">
<h1 align="center">Tux Paint "Magic" Tool: Maze</h1>
<h2 align="center">Group: Painting</h2>
<h3 align="center">Author:
Bill Kendrick &lt;<a href="mailto:bill@newbreedsoftware.com">bill@newbreedsoftware.com</a>&gt;</h3>
<p>Click and drag to construct a maze on your picture.</p>
<hr size="1" noshade />
<p align="center">Tux Paint 0.9.29</p>
</body></html>

View file

@ -62,6 +62,7 @@ Painting
* Fretwork
* Grass
* Light
* Maze
* Metal Paint
* Pixels
* Rails

View file

@ -0,0 +1,11 @@
Tux Paint "Magic" Tool: Maze
Group: Painting
Author: Bill Kendrick <bill@newbreedsoftware.com>
Click and drag to construct a maze on your picture.
----------------------------------------------------------------------
Tux Paint 0.9.29

View file

@ -66,6 +66,7 @@
<li><a href="fretwork.html">Fretwork</a></li>
<li><a href="grass.html">Grass</a></li>
<li><a href="light.html">Light</a></li>
<li><a href="maze.html">Maze</a></li>
<li><a href="metal_paint.html">Metal Paint</a></li>
<li><a href="pixels.html">Pixels</a></li>
<li><a href="rails.html">Rails</a></li>

View file

@ -0,0 +1,13 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<body><html><head><title>Tux Paint "Magic" Tool: Maze</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#FF0000" alink="#FF00FF">
<h1 align="center">Tux Paint "Magic" Tool: Maze</h1>
<h2 align="center">Group: Painting</h2>
<h3 align="center">Author:
Bill Kendrick &lt;<a href="mailto:bill@newbreedsoftware.com">bill@newbreedsoftware.com</a>&gt;</h3>
<p>Click and drag to construct a maze on your picture.</p>
<hr size="1" noshade />
<p align="center">Tux Paint 0.9.29</p>
</body></html>

View file

@ -62,6 +62,7 @@ Painting
* Fretwork
* Grass
* Light
* Maze
* Metal Paint
* Pixels
* Rails

View file

@ -0,0 +1,11 @@
Tux Paint "Magic" Tool: Maze
Group: Painting
Author: Bill Kendrick <bill@newbreedsoftware.com>
Click and drag to construct a maze on your picture.
----------------------------------------------------------------------
Tux Paint 0.9.29

View file

@ -68,6 +68,7 @@
<li><a href="fretwork.html">Frise</a></li>
<li><a href="grass.html">Herbe</a></li>
<li><a href="light.html">Lumière</a></li>
<li><a href="maze.html">Maze</a></li>
<li><a href="foam.html">Mousse</a></li>
<li><a href="metal_paint.html">Peinture métallique</a></li>
<li><a href="pixels.html">Pixels</a></li>

View file

@ -0,0 +1,13 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<body><html><head><title>Tux Paint "Magic" Tool: Maze</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#FF0000" alink="#FF00FF">
<h1 align="center">Tux Paint "Magic" Tool: Maze</h1>
<h2 align="center">Group: Painting</h2>
<h3 align="center">Author:
Bill Kendrick &lt;<a href="mailto:bill@newbreedsoftware.com">bill@newbreedsoftware.com</a>&gt;</h3>
<p>Click and drag to construct a maze on your picture.</p>
<hr size="1" noshade />
<p align="center">Tux Paint 0.9.29</p>
</body></html>

View file

@ -64,6 +64,7 @@ Painting
* Frise
* Herbe
* Lumière
* Maze
* Mousse
* Peinture métallique
* Pixels

View file

@ -0,0 +1,11 @@
Tux Paint "Magic" Tool: Maze
Group: Painting
Author: Bill Kendrick <bill@newbreedsoftware.com>
Click and drag to construct a maze on your picture.
----------------------------------------------------------------------
Tux Paint 0.9.29

View file

@ -66,6 +66,7 @@
<li><a href="fretwork.html">Fretwork</a></li>
<li><a href="grass.html">Grass</a></li>
<li><a href="light.html">Light</a></li>
<li><a href="maze.html">Maze</a></li>
<li><a href="metal_paint.html">Metal Paint</a></li>
<li><a href="pixels.html">Pixels</a></li>
<li><a href="rails.html">Rails</a></li>

View file

@ -0,0 +1,13 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<body><html><head><title>Tux Paint "Magic" Tool: Maze</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#FF0000" alink="#FF00FF">
<h1 align="center">Tux Paint "Magic" Tool: Maze</h1>
<h2 align="center">Group: Painting</h2>
<h3 align="center">Author:
Bill Kendrick &lt;<a href="mailto:bill@newbreedsoftware.com">bill@newbreedsoftware.com</a>&gt;</h3>
<p>Click and drag to construct a maze on your picture.</p>
<hr size="1" noshade />
<p align="center">Tux Paint 0.9.29</p>
</body></html>

View file

@ -62,6 +62,7 @@ Painting
* Fretwork
* Grass
* Light
* Maze
* Metal Paint
* Pixels
* Rails

View file

@ -0,0 +1,11 @@
Tux Paint "Magic" Tool: Maze
Group: Painting
Author: Bill Kendrick <bill@newbreedsoftware.com>
Click and drag to construct a maze on your picture.
----------------------------------------------------------------------
Tux Paint 0.9.29

View file

@ -66,6 +66,7 @@
<li><a href="fretwork.html">Fretwork</a></li>
<li><a href="grass.html">Grass</a></li>
<li><a href="light.html">Light</a></li>
<li><a href="maze.html">Maze</a></li>
<li><a href="metal_paint.html">Metal Paint</a></li>
<li><a href="pixels.html">Pixels</a></li>
<li><a href="rails.html">Rails</a></li>

View file

@ -0,0 +1,13 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<body><html><head><title>Tux Paint "Magic" Tool: Maze</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body bgcolor="#FFFFFF" text="#000000" link="#0000FF" vlink="#FF0000" alink="#FF00FF">
<h1 align="center">Tux Paint "Magic" Tool: Maze</h1>
<h2 align="center">Group: Painting</h2>
<h3 align="center">Author:
Bill Kendrick &lt;<a href="mailto:bill@newbreedsoftware.com">bill@newbreedsoftware.com</a>&gt;</h3>
<p>Click and drag to construct a maze on your picture.</p>
<hr size="1" noshade />
<p align="center">Tux Paint 0.9.29</p>
</body></html>

View file

@ -62,6 +62,7 @@ Painting
* Fretwork
* Grass
* Light
* Maze
* Metal Paint
* Pixels
* Rails

View file

@ -0,0 +1,11 @@
Tux Paint "Magic" Tool: Maze
Group: Painting
Author: Bill Kendrick <bill@newbreedsoftware.com>
Click and drag to construct a maze on your picture.
----------------------------------------------------------------------
Tux Paint 0.9.29

View file

@ -135,7 +135,7 @@ int maze_requires_colors(magic_api * api ATTRIBUTE_UNUSED,
int maze_modes(magic_api * api ATTRIBUTE_UNUSED,
int which ATTRIBUTE_UNUSED)
{
return MODE_PAINT /* | MODE_FULLSCREEN FIXME */;
return MODE_PAINT | MODE_FULLSCREEN;
}
void maze_shutdown(magic_api * api ATTRIBUTE_UNUSED)
@ -177,7 +177,17 @@ maze_click(magic_api * api, int which, int mode,
if (mode == MODE_PAINT) {
maze_drag(api, which, canvas, snapshot, x, y, x, y, update_rect);
} else {
/* FIXME */
Uint32 color;
memset(maze_mask, 1, (canvas->w * canvas->h));
color = SDL_MapRGB(canvas->format, maze_r, maze_g, maze_b);
// memset(maze_color, color, (sizeof(Uint32) * (canvas->w * canvas->h))); // FIXME: Why doesn't this work? -bjk 2023.01.21
for (y = 0; y < canvas->h; y++)
for (x = 0; x < canvas->w; x++)
maze_color[y * canvas->w + x] = color;
maze_release(api, which, canvas, snapshot, x, y, update_rect);
}
}
@ -282,7 +292,6 @@ maze_release(magic_api * api, int which ATTRIBUTE_UNUSED,
iter++;
}
while (state != STATE_DONE && iter < 10000);
if (iter >= 10000) printf("OUCH\n");
/* Draw the maze onto the canvas */
for (y = 0; y < canvas->h; y++) {