Fractal -- sound & icon
This commit is contained in:
parent
28bc50efab
commit
259f423da9
6 changed files with 17 additions and 6 deletions
|
|
@ -180,6 +180,15 @@ June 17, 2002 - September 17, 2024
|
|||
Creative Commons Attribution 4.0 by Luis Humanoide
|
||||
<https://freesound.org/people/humanoide9000/>
|
||||
|
||||
Fractals magic tool
|
||||
by Bill Kendrick <bill@newbreedsoftware.com>
|
||||
|
||||
Fractals sound effect
|
||||
"100_Glitch808"
|
||||
<https://freesound.org/people/DigitalUnderglow/sounds/742975/>
|
||||
Creative Commons 0 by DigitalUnderglow
|
||||
<https://freesound.org/people/DigitalUnderglow/>
|
||||
|
||||
Bloom magic tool
|
||||
by Bill Kendrick <bill@newbreedsoftware.com>
|
||||
|
||||
|
|
|
|||
|
|
@ -17,12 +17,14 @@ https://tuxpaint.org/
|
|||
<https://freesound.org/people/humanoide9000/>
|
||||
+ Closes https://sourceforge.net/p/tuxpaint/feature-requests/257/
|
||||
|
||||
* WIP "Fractal", a set of freehand drawing tools that
|
||||
* "Fractal", a set of freehand drawing tools that
|
||||
recursively draw variations of the strokes
|
||||
+ Bill Kendrick <bill@newbreedsoftware.com>
|
||||
+ Sound effect "100_Glitch808"
|
||||
Creative Commons 0 by DigitalUnderglow
|
||||
<https://freesound.org/people/DigitalUnderglow/>
|
||||
+ TODO - Document
|
||||
+ Closes https://sourceforge.net/p/tuxpaint/feature-requests/260/
|
||||
+ TODO: Icon
|
||||
+ TODO: Sound effect
|
||||
|
||||
* Magic Tool Improvements:
|
||||
------------------------
|
||||
|
|
|
|||
BIN
docs/html/images/magic_examples/fractals.png
Normal file
BIN
docs/html/images/magic_examples/fractals.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 51 KiB |
BIN
magic/icons/fractals.png
Normal file
BIN
magic/icons/fractals.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 552 B |
BIN
magic/sounds/fractals.ogg
Normal file
BIN
magic/sounds/fractals.ogg
Normal file
Binary file not shown.
|
|
@ -104,7 +104,7 @@ int fractal_init(magic_api * api, Uint8 disabled_features ATTRIBUTE_UNUSED, Uint
|
|||
{
|
||||
char fname[1024];
|
||||
|
||||
snprintf(fname, sizeof(fname), "%ssounds/magic/xor.ogg", api->data_directory); // FIXME
|
||||
snprintf(fname, sizeof(fname), "%ssounds/magic/fractals.ogg", api->data_directory);
|
||||
fractal_snd = Mix_LoadWAV(fname);
|
||||
|
||||
return (1);
|
||||
|
|
@ -119,7 +119,7 @@ SDL_Surface *fractal_get_icon(magic_api * api, int ATTRIBUTE_UNUSED which)
|
|||
{
|
||||
char fname[1024];
|
||||
|
||||
snprintf(fname, sizeof(fname), "%simages/magic/xor.png", api->data_directory); // FIXME
|
||||
snprintf(fname, sizeof(fname), "%simages/magic/fractals.png", api->data_directory);
|
||||
|
||||
return (IMG_Load(fname));
|
||||
}
|
||||
|
|
@ -299,7 +299,7 @@ void fractal_release(magic_api * api, int which,
|
|||
update_rect->w = canvas->w;
|
||||
update_rect->h = canvas->h;
|
||||
|
||||
api->playsound(fractal_snd, (x * 255) / canvas->w, 255);
|
||||
api->stopsound();
|
||||
}
|
||||
|
||||
void fractal_shutdown(magic_api * api ATTRIBUTE_UNUSED)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue