chiffre, chiffre, chibre, chiffre

This commit is contained in:
_N3m0 2024-03-12 10:11:34 +01:00
parent 57e637a0ae
commit 226b88500a
18 changed files with 644 additions and 64 deletions

View File

@ -1,6 +1,9 @@
all:
gcc -Wall -Wextra -ggdb main.c -o mineur -lraylib
release:
gcc -Wall -Wextra -O3 main.c -o mineur -lraylib
run: all
./mineur

155
main.c
View File

@ -34,17 +34,25 @@ int screen_width = 500;
int screen_height = 550;
Rectangle menu;
Vec2i nb_cell = {9, 9}; // 9-9 16-16 16-30
int grid_len = 0;
Rectangle grid = {0};
Image tile_image_orig = {0};
Texture tile_texture = {0};
Image tile_hover_image_orig = {0};
Texture tile_hover_texture = {0};
Image mine_image_orig = {0};
Texture mine_texture = {0};
#define INIT_TEXTURE(img, tex) \
Image img = {0}; \
Texture tex = {0}
INIT_TEXTURE(tile_image_orig, tile_texture);
INIT_TEXTURE(tile_hover_image_orig, tile_hover_texture);
INIT_TEXTURE(mine_image_orig, mine_texture);
INIT_TEXTURE(t1_image_orig, t1_texture);
INIT_TEXTURE(t2_image_orig, t2_texture);
INIT_TEXTURE(t3_image_orig, t3_texture);
INIT_TEXTURE(t4_image_orig, t4_texture);
INIT_TEXTURE(t5_image_orig, t5_texture);
INIT_TEXTURE(t6_image_orig, t6_texture);
INIT_TEXTURE(t7_image_orig, t7_texture);
INIT_TEXTURE(t8_image_orig, t8_texture);
void screen_resize_handle(void)
{
@ -59,17 +67,42 @@ void screen_resize_handle(void)
grid_len, grid_len
};
Image tile_copy = ImageCopy(tile_image_orig);
ImageResize(&tile_copy, grid.width/nb_cell.x, grid.height/nb_cell.y);
tile_texture = LoadTextureFromImage(tile_copy);
#define RESIZE_TEXTURE(name, copy, orig) \
do { \
Image copy = ImageCopy(orig); \
ImageResize(&(copy), grid.width/game_size.x, grid.height/game_size.y);\
name = LoadTextureFromImage(copy); \
} while (0)
Image tile_hover_copy = ImageCopy(tile_hover_image_orig);
ImageResize(&tile_hover_copy, grid.width/nb_cell.x, grid.height/nb_cell.y);
tile_hover_texture = LoadTextureFromImage(tile_hover_copy);
RESIZE_TEXTURE(tile_texture, tile_copy, tile_image_orig);
RESIZE_TEXTURE(tile_hover_texture, tile_hover_copy, tile_hover_image_orig);
RESIZE_TEXTURE(mine_texture, mine_copy, mine_image_orig);
RESIZE_TEXTURE(t1_texture, t1_copy, t1_image_orig);
RESIZE_TEXTURE(t2_texture, t2_copy, t2_image_orig);
RESIZE_TEXTURE(t3_texture, t3_copy, t3_image_orig);
RESIZE_TEXTURE(t4_texture, t4_copy, t4_image_orig);
RESIZE_TEXTURE(t5_texture, t5_copy, t5_image_orig);
RESIZE_TEXTURE(t6_texture, t6_copy, t6_image_orig);
RESIZE_TEXTURE(t7_texture, t7_copy, t7_image_orig);
RESIZE_TEXTURE(t8_texture, t8_copy, t8_image_orig);
}
Image mine_copy = ImageCopy(mine_image_orig);
ImageResize(&mine_copy, grid.width/nb_cell.x, grid.height/nb_cell.y);
mine_texture = LoadTextureFromImage(mine_copy);
int count_bomb(int x, int y)
{
int count = 0;
for (int i=-1; i<=1; i++) {
if (x+i < 0 || x+i > game_size.x)
continue;
for (int j=-1; j<=1; j++) {
if (y+j < 0 || y+j > game_size.y)
continue;
if (i == 0 && j == 0)
continue;
if (game[y+j][x+i] == 'X')
count++;
}
}
return count;
}
void fill_game(GameType type)
@ -115,24 +148,6 @@ void fill_game(GameType type)
}
}
int count_bomb(int x, int y)
{
int count = 0;
for (int i=-1; i<=1; i++) {
if (x+i < 0 || x+i > game_size.x)
continue;
for (int j=-1; j<=1; j++) {
if (y+j < 0 || y+j > game_size.y)
continue;
if (i == 0 && j == 0)
continue;
if (game[y+j][x+i] == 'X')
count++;
}
}
return count;
}
int main(void)
{
srand(time(NULL));
@ -143,6 +158,15 @@ int main(void)
tile_image_orig = LoadImage("ressources/tile.png");
tile_hover_image_orig = LoadImage("ressources/tile_hover.png");
mine_image_orig = LoadImage("ressources/mine.png");
mine_image_orig = LoadImage("ressources/mine.png");
t1_image_orig = LoadImage("ressources/1.png");
t2_image_orig = LoadImage("ressources/2.png");
t3_image_orig = LoadImage("ressources/3.png");
t4_image_orig = LoadImage("ressources/4.png");
t5_image_orig = LoadImage("ressources/5.png");
t6_image_orig = LoadImage("ressources/6.png");
t7_image_orig = LoadImage("ressources/7.png");
t8_image_orig = LoadImage("ressources/8.png");
InitWindow(screen_width, screen_height, "mineur");
SetTargetFPS(60);
@ -162,40 +186,43 @@ int main(void)
if (IsKeyPressed(KEY_R)) {
fill_game(BEGINNER);
}
if (IsKeyPressed(KEY_P)) {
for (int x=0; x<game_size.x; x++) {
for (int y=0; y<game_size.y; y++) {
printf("%c", game[y][x]);
}
printf("\n");
}
}
DrawRectangleRec(menu, RED);
DrawRectangleRec(grid, (Color) {
.r = 0xFF, .g = 0xDA, .b = 0x2E, .a = 255
.r = 255, .g = 240, .b = 172, .a = 255
});
for (int x=0; x<nb_cell.x; x++) {
for (int y=0; y<nb_cell.y; y++) {
for (int x=0; x<game_size.x; x++) {
for (int y=0; y<game_size.y; y++) {
Texture *tex;
switch (game[y][x]) {
case '0':
DrawTexture(
tile_texture,
grid.x + grid.width/nb_cell.x * x,
grid.y + grid.height/nb_cell.y * y,
WHITE
);
break;
case 'X':
DrawTexture(
mine_texture,
grid.x + grid.width/nb_cell.x * x,
grid.y + grid.height/nb_cell.y * y,
WHITE
);
break;
default:
DrawTexture(
tile_hover_texture,
grid.x + grid.width/nb_cell.x * x,
grid.y + grid.height/nb_cell.y * y,
WHITE
);
break;
case 'X': tex = &mine_texture; break;
case '0': tex = &tile_texture; break;
case '1': tex = &t1_texture; break;
case '2': tex = &t2_texture; break;
case '3': tex = &t3_texture; break;
case '4': tex = &t4_texture; break;
case '5': tex = &t5_texture; break;
case '6': tex = &t6_texture; break;
case '7': tex = &t7_texture; break;
case '8': tex = &t8_texture; break;
}
DrawTexture(
*tex,
grid.x + grid.width/ game_size.x * x,
grid.y + grid.height/game_size.y * y,
WHITE
);
}
}
@ -206,13 +233,13 @@ int main(void)
// boundary
mouse_x = max(mouse_x, grid_x);
mouse_x = min(mouse_x, grid_x + grid.width - (grid_len/nb_cell.x));
mouse_x = min(mouse_x, grid_x + grid.width - (grid_len/game_size.x));
mouse_y = max(mouse_y, grid_y);
mouse_y = min(mouse_y, grid_y + grid.height - (grid_len/nb_cell.y));
mouse_y = min(mouse_y, grid_y + grid.height - (grid_len/game_size.y));
// remove extra
mouse_x -= (mouse_x - grid_x) % (grid_len/nb_cell.x);
mouse_y -= (mouse_y - grid_y) % (grid_len/nb_cell.y);
mouse_x -= (mouse_x - grid_x) % (grid_len/game_size.x);
mouse_y -= (mouse_y - grid_y) % (grid_len/game_size.y);
if (IsMouseButtonDown(MOUSE_BUTTON_LEFT)) {
DrawTexture(mine_texture, mouse_x, mouse_y, WHITE);

BIN
ressources/1.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

79
ressources/1.svg Normal file
View File

@ -0,0 +1,79 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="500"
height="500"
viewBox="0 0 132.29166 132.29167"
version="1.1"
id="svg5"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
sodipodi:docname="1.svg"
inkscape:export-filename="1.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview7"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#505050"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="1"
inkscape:cx="294"
inkscape:cy="328"
inkscape:window-width="1912"
inkscape:window-height="1047"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs2">
<rect
x="137.35104"
y="83.684087"
width="309.27104"
height="362.64471"
id="rect1795" />
<rect
x="55.793692"
y="69.013199"
width="409.85632"
height="448.47004"
id="rect1789" />
</defs>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="fill:#fff0ad;fill-opacity:1;stroke:#ffffff;stroke-width:0;stroke-linecap:square;stroke-linejoin:bevel;paint-order:markers fill stroke"
id="rect234"
width="159.2903"
height="154.68806"
x="-6.7865376"
y="-9.3086634" />
<text
xml:space="preserve"
transform="matrix(17.947322,0,0,13.380409,-986.84069,-946.08083)"
id="text1787"
style="white-space:pre;shape-inside:url(#rect1789);display:inline;fill:#0006fa;fill-opacity:1;stroke:#ffffff;stroke-width:0;stroke-linecap:square;stroke-linejoin:bevel;paint-order:markers fill stroke"><tspan
x="55.792969"
y="79.932174"
id="tspan1839">1</tspan></text>
<text
xml:space="preserve"
transform="scale(0.26458333)"
id="text1793"
style="white-space:pre;shape-inside:url(#rect1795);display:inline;fill:#fff0ad;fill-opacity:1;stroke:#ffffff;stroke-width:0;stroke-linecap:square;stroke-linejoin:bevel;paint-order:markers fill stroke" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.5 KiB

BIN
ressources/2.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

68
ressources/2.svg Normal file
View File

@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="500"
height="500"
viewBox="0 0 132.29166 132.29167"
version="1.1"
id="svg1844"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
sodipodi:docname="2.svg"
inkscape:export-filename="2.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview1846"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#505050"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="0.74653479"
inkscape:cx="267.90446"
inkscape:cy="258.5278"
inkscape:window-width="1912"
inkscape:window-height="1047"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs1841">
<rect
x="-354.93449"
y="-164.66569"
width="234.35169"
height="361.38902"
id="rect1956" />
</defs>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="fill:#fff0ad;fill-opacity:1;stroke:#ffffff;stroke-width:0;stroke-linecap:square;stroke-linejoin:bevel;paint-order:markers fill stroke"
id="rect1900"
width="192.87526"
height="170.00661"
x="-15.961968"
y="-8.8664379" />
<text
xml:space="preserve"
transform="matrix(14.977342,0,0,14.018472,5337.5407,2281.5761)"
id="text1954"
style="white-space:pre;shape-inside:url(#rect1956);display:inline;fill:#19fa00;fill-opacity:1;stroke:#ffffff;stroke-width:0;stroke-linecap:square;stroke-linejoin:bevel;paint-order:markers fill stroke"><tspan
x="-354.93359"
y="-153.74751"
id="tspan3926">2</tspan></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
ressources/3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

65
ressources/3.svg Normal file
View File

@ -0,0 +1,65 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="500"
height="500"
viewBox="0 0 132.29166 132.29167"
version="1.1"
id="svg3938"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
sodipodi:docname="3.svg"
inkscape:export-filename="3.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview3940"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#505050"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="0.77593294"
inkscape:cx="224.24618"
inkscape:cy="257.75423"
inkscape:window-width="1912"
inkscape:window-height="1047"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs3935" />
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="fill:#fff0ad;stroke:#ffffff;stroke-width:0;stroke-linecap:square;stroke-linejoin:bevel;paint-order:markers fill stroke;fill-opacity:1"
id="rect4111"
width="251.10229"
height="207.15346"
x="-39.437996"
y="-32.701351" />
<text
xml:space="preserve"
style="font-size:160.179px;fill:#fa001f;fill-opacity:1;stroke:#ffffff;stroke-width:0;stroke-linecap:square;stroke-linejoin:bevel;paint-order:markers fill stroke"
x="19.380919"
y="127.32623"
id="text4478"
transform="scale(1.0680599,0.9362771)"><tspan
sodipodi:role="line"
id="tspan4476"
style="fill:#fa001f;fill-opacity:1;stroke-width:0"
x="19.380919"
y="127.32623">3</tspan></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
ressources/4.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

68
ressources/4.svg Normal file
View File

@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="500"
height="500"
viewBox="0 0 132.29166 132.29167"
version="1.1"
id="svg3931"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
sodipodi:docname="4.svg"
inkscape:export-filename="4.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview3933"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#505050"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="1"
inkscape:cx="-56"
inkscape:cy="166"
inkscape:window-width="1912"
inkscape:window-height="1047"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs3928">
<rect
x="-392.17978"
y="-199.50633"
width="153.85567"
height="236.78264"
id="rect5316" />
</defs>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="fill:#fff0ad;fill-opacity:1;stroke:#ffffff;stroke-width:0;stroke-linecap:square;stroke-linejoin:bevel;paint-order:markers fill stroke"
id="rect4634"
width="132.27899"
height="132.27914"
x="0.00044075371"
y="-0.00064484926" />
<text
xml:space="preserve"
transform="matrix(13.386557,0,0,13.251157,5266.9296,2620.6944)"
id="text5314"
style="white-space:pre;shape-inside:url(#rect5316);display:inline;fill:#69fa00;fill-opacity:1;stroke:#ffffff;stroke-width:0;stroke-linecap:square;stroke-linejoin:bevel;paint-order:markers fill stroke"><tspan
x="-392.17969"
y="-188.58736"
id="tspan5417">4</tspan></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
ressources/5.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

68
ressources/5.svg Normal file
View File

@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="500"
height="500"
viewBox="0 0 132.29166 132.29167"
version="1.1"
id="svg5452"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
sodipodi:docname="5.svg"
inkscape:export-filename="5.png"
inkscape:export-xdpi="95.999992"
inkscape:export-ydpi="95.999992"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview5454"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#505050"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="0.74653479"
inkscape:cx="146.00793"
inkscape:cy="211.64452"
inkscape:window-width="1912"
inkscape:window-height="1047"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs5449">
<rect
x="-589.53225"
y="-184.68439"
width="144.44122"
height="229.89621"
id="rect5514" />
</defs>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="fill:#fff0ad;fill-opacity:1;stroke:#ffffff;stroke-width:0;stroke-linecap:square;stroke-linejoin:bevel;paint-order:markers fill stroke"
id="rect5508"
width="132.29167"
height="132.29167"
x="5e-07"
y="5e-07" />
<text
xml:space="preserve"
transform="matrix(15.980616,0,0,13.158342,9434.182,2409.7958)"
id="text5512"
style="white-space:pre;shape-inside:url(#rect5514);display:inline;fill:#fa9100;fill-opacity:1;stroke:#ffffff;stroke-width:0;stroke-linecap:square;stroke-linejoin:bevel;paint-order:markers fill stroke"><tspan
x="-589.53125"
y="-173.76509"
id="tspan5552">5</tspan></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB

BIN
ressources/6.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

68
ressources/6.svg Normal file
View File

@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="500"
height="500"
viewBox="0 0 132.29167 132.29167"
version="1.1"
id="svg5557"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
sodipodi:docname="6.svg"
inkscape:export-filename="6.png"
inkscape:export-xdpi="95.999992"
inkscape:export-ydpi="95.999992"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview5559"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#505050"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="0.74653479"
inkscape:cx="124.57557"
inkscape:cy="298.71347"
inkscape:window-width="1912"
inkscape:window-height="1047"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs5554">
<rect
x="-551.28617"
y="-78.490006"
width="208.94731"
height="405.59769"
id="rect5773" />
</defs>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="fill:#fff0ad;fill-opacity:1;stroke:#ffffff;stroke-width:0;stroke-linecap:square;stroke-linejoin:bevel;paint-order:markers fill stroke"
id="rect5613"
x="9.1740668e-07"
y="9.1740668e-07"
height="132.29167"
width="132.29167" />
<text
xml:space="preserve"
transform="matrix(15.111534,0,0,12.74056,8342.1938,982.08879)"
id="text5771"
style="white-space:pre;shape-inside:url(#rect5773);display:inline;fill:#fa00fa;fill-opacity:1;stroke:#ffffff;stroke-width:0;stroke-linecap:square;stroke-linejoin:bevel;paint-order:markers fill stroke"><tspan
x="-551.28711"
y="-67.571732"
id="tspan5811">6</tspan></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
ressources/7.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

68
ressources/7.svg Normal file
View File

@ -0,0 +1,68 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="500"
height="500"
viewBox="0 0 132.29166 132.29167"
version="1.1"
id="svg5816"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
sodipodi:docname="7.svg"
inkscape:export-filename="7.png"
inkscape:export-xdpi="95.999992"
inkscape:export-ydpi="95.999992"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview5818"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#505050"
inkscape:document-units="mm"
showgrid="false"
inkscape:zoom="0.74653479"
inkscape:cx="231.73736"
inkscape:cy="310.76917"
inkscape:window-width="1912"
inkscape:window-height="1047"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs5813">
<rect
x="-508.92457"
y="-26.134747"
width="414.73463"
height="475.82867"
id="rect5928" />
</defs>
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="fill:#fff0ad;fill-opacity:1;stroke:#ffffff;stroke-width:0;stroke-linecap:square;stroke-linejoin:bevel;paint-order:markers fill stroke"
id="rect5872"
width="132.29167"
height="132.29167"
x="6.2107762e-07"
y="6.2107762e-07" />
<text
xml:space="preserve"
transform="matrix(13.574325,0,0,11.716537,6930.5443,296.93453)"
id="text5926"
style="white-space:pre;shape-inside:url(#rect5928);display:inline;fill:#000000;fill-opacity:1;stroke:#ffffff;stroke-width:0;stroke-linecap:square;stroke-linejoin:bevel;paint-order:markers fill stroke"><tspan
x="-508.92383"
y="-15.216263"
id="tspan5966">7</tspan></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.2 KiB

BIN
ressources/8.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

66
ressources/8.svg Normal file
View File

@ -0,0 +1,66 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
width="500"
height="500"
viewBox="0 0 132.29166 132.29167"
version="1.1"
id="svg5971"
inkscape:version="1.2.2 (b0a8486541, 2022-12-01)"
sodipodi:docname="8.svg"
inkscape:export-filename="8.png"
inkscape:export-xdpi="95.999992"
inkscape:export-ydpi="95.999992"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns="http://www.w3.org/2000/svg"
xmlns:svg="http://www.w3.org/2000/svg">
<sodipodi:namedview
id="namedview5973"
pagecolor="#505050"
bordercolor="#eeeeee"
borderopacity="1"
inkscape:showpageshadow="0"
inkscape:pageopacity="0"
inkscape:pagecheckerboard="0"
inkscape:deskcolor="#505050"
inkscape:document-units="mm"
showgrid="false"
showguides="false"
inkscape:zoom="0.74653479"
inkscape:cx="226.37927"
inkscape:cy="274.60207"
inkscape:window-width="1912"
inkscape:window-height="1047"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1" />
<defs
id="defs5968" />
<g
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1">
<rect
style="fill:#fff0ad;fill-opacity:1;stroke:#ffffff;stroke-width:0;stroke-linecap:square;stroke-linejoin:bevel;paint-order:markers fill stroke"
id="rect6027"
width="132.29167"
height="132.29166"
x="2.6031119e-06"
y="2.6031119e-06" />
<text
xml:space="preserve"
style="font-size:164.79px;fill:#838383;fill-opacity:1;stroke:#ffffff;stroke-width:0;stroke-linecap:square;stroke-linejoin:bevel;paint-order:markers fill stroke"
x="12.046442"
y="131.92133"
id="text6135"
transform="scale(1.0989589,0.90995214)"><tspan
sodipodi:role="line"
id="tspan6133"
style="fill:#838383;fill-opacity:1;stroke-width:0"
x="12.046442"
y="131.92133">8</tspan></text>
</g>
</svg>

After

Width:  |  Height:  |  Size: 2.1 KiB