Doc'ing new "Maze" magic tool
This commit is contained in:
parent
3ba15f7b70
commit
aa35d18927
21 changed files with 142 additions and 3 deletions
|
|
@ -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>
|
||||
|
|
|
|||
13
magic/magic-docs/en/html/maze.html
Normal file
13
magic/magic-docs/en/html/maze.html
Normal 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 <<a href="mailto:bill@newbreedsoftware.com">bill@newbreedsoftware.com</a>></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>
|
||||
|
|
@ -62,6 +62,7 @@ Painting
|
|||
* Fretwork
|
||||
* Grass
|
||||
* Light
|
||||
* Maze
|
||||
* Metal Paint
|
||||
* Pixels
|
||||
* Rails
|
||||
|
|
|
|||
11
magic/magic-docs/en/maze.txt
Normal file
11
magic/magic-docs/en/maze.txt
Normal 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
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
13
magic/magic-docs/es_ES.UTF-8/html/maze.html
Normal file
13
magic/magic-docs/es_ES.UTF-8/html/maze.html
Normal 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 <<a href="mailto:bill@newbreedsoftware.com">bill@newbreedsoftware.com</a>></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>
|
||||
|
|
@ -62,6 +62,7 @@ Painting
|
|||
* Fretwork
|
||||
* Grass
|
||||
* Light
|
||||
* Maze
|
||||
* Metal Paint
|
||||
* Pixels
|
||||
* Rails
|
||||
|
|
|
|||
11
magic/magic-docs/es_ES.UTF-8/maze.txt
Normal file
11
magic/magic-docs/es_ES.UTF-8/maze.txt
Normal 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
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
13
magic/magic-docs/fr_FR.UTF-8/html/maze.html
Normal file
13
magic/magic-docs/fr_FR.UTF-8/html/maze.html
Normal 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 <<a href="mailto:bill@newbreedsoftware.com">bill@newbreedsoftware.com</a>></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>
|
||||
|
|
@ -64,6 +64,7 @@ Painting
|
|||
* Frise
|
||||
* Herbe
|
||||
* Lumière
|
||||
* Maze
|
||||
* Mousse
|
||||
* Peinture métallique
|
||||
* Pixels
|
||||
|
|
|
|||
11
magic/magic-docs/fr_FR.UTF-8/maze.txt
Normal file
11
magic/magic-docs/fr_FR.UTF-8/maze.txt
Normal 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
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
13
magic/magic-docs/gl_ES.UTF-8/html/maze.html
Normal file
13
magic/magic-docs/gl_ES.UTF-8/html/maze.html
Normal 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 <<a href="mailto:bill@newbreedsoftware.com">bill@newbreedsoftware.com</a>></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>
|
||||
|
|
@ -62,6 +62,7 @@ Painting
|
|||
* Fretwork
|
||||
* Grass
|
||||
* Light
|
||||
* Maze
|
||||
* Metal Paint
|
||||
* Pixels
|
||||
* Rails
|
||||
|
|
|
|||
11
magic/magic-docs/gl_ES.UTF-8/maze.txt
Normal file
11
magic/magic-docs/gl_ES.UTF-8/maze.txt
Normal 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
|
||||
|
|
@ -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>
|
||||
|
|
|
|||
13
magic/magic-docs/ja_JP.UTF-8/html/maze.html
Normal file
13
magic/magic-docs/ja_JP.UTF-8/html/maze.html
Normal 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 <<a href="mailto:bill@newbreedsoftware.com">bill@newbreedsoftware.com</a>></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>
|
||||
|
|
@ -62,6 +62,7 @@ Painting
|
|||
* Fretwork
|
||||
* Grass
|
||||
* Light
|
||||
* Maze
|
||||
* Metal Paint
|
||||
* Pixels
|
||||
* Rails
|
||||
|
|
|
|||
11
magic/magic-docs/ja_JP.UTF-8/maze.txt
Normal file
11
magic/magic-docs/ja_JP.UTF-8/maze.txt
Normal 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
|
||||
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue