Initial commit

master
Adrien W 2 years ago
commit 7c5a02e226

@ -0,0 +1,451 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="8000"
height="5000"
viewBox="0 0 2116.6667 1322.9166"
version="1.1"
id="pastilles"
xml:space="preserve"
inkscape:version="1.0.2 (e86c870879, 2021-01-15)"
sodipodi:docname="Cercles.svg"><metadata
id="metadata57"><rdf:RDF><cc:Work
rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><sodipodi:namedview
id="namedview1"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:showpageshadow="2"
inkscape:pageopacity="0.0"
inkscape:pagecheckerboard="false"
inkscape:deskcolor="#d1d1d1"
inkscape:document-units="px"
inkscape:zoom="0.125"
inkscape:cx="3973.6242"
inkscape:cy="2237.3561"
inkscape:window-width="1920"
inkscape:window-height="1080"
inkscape:window-x="0"
inkscape:window-y="0"
inkscape:window-maximized="1"
inkscape:current-layer="layer1"
inkscape:document-rotation="0"
showgrid="false"
units="px"
lock-margins="false"
fit-margin-top="400"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0" /><defs
id="defs1" /><g
inkscape:label="Calque 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(-772.76941,412.44154)"><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:3.27929;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="1"
cx="901.22113"
cy="788.289"
rx="96.933357"
ry="96.592751" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="5"
cx="1029.8986"
cy="571.52905"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="6"
cx="1016.0817"
cy="413.93869"
rx="38.831364"
ry="38.408379"
inkscape:tile-cx="1000.9954"
inkscape:tile-cy="238.11653"
inkscape:tile-w="78.971536"
inkscape:tile-h="78.125565"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="7"
cx="976.59595"
cy="256.34833"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="15"
cx="1366.5487"
cy="548.24921"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="4"
cx="1223.0504"
cy="676.04724"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="22"
cx="1584.5557"
cy="-18.510092"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="23"
cx="1708.7368"
cy="18.22175"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="28"
cx="1750.1306"
cy="777.96405"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="33"
cx="1979.1759"
cy="271.05823"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="38"
cx="2158.5488"
cy="313.30923"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="42"
cx="2285.4895"
cy="810.8913"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="47"
cx="2368.2771"
cy="85.978477"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="14"
cx="1417.9244"
cy="451.66385"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="2"
cx="1144.7258"
cy="822.30511"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="21"
cx="1547.6248"
cy="182.93939"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="24"
cx="1729.7572"
cy="136.88377"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="29"
cx="1876.015"
cy="833.1557"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="34"
cx="1892.5725"
cy="124.80038"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="43"
cx="2361.7014"
cy="697.74841"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="48"
cx="2516.238"
cy="16.988932"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="8"
cx="1095.0533"
cy="161.05051"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="13"
cx="1317.5231"
cy="344.04016"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="3"
cx="1325.8019"
cy="808.5072"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="20"
cx="1546.5684"
cy="315.39932"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="25"
cx="1745.2583"
cy="316.25659"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="30"
cx="1977.0632"
cy="731.05115"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="35"
cx="1974.3036"
cy="-38.014942"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="39"
cx="2175.7532"
cy="459.56708"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="44"
cx="2338.5686"
cy="559.76935"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="49"
cx="2575.8926"
cy="210.15967"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="9"
cx="1167.0072"
cy="-4.524406"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="12"
cx="1363.3796"
cy="225.37816"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="16"
cx="1446.1671"
cy="722.96014"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="19"
cx="1592.4249"
cy="442.34009"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="26"
cx="1771.7977"
cy="448.71652"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="31"
cx="1959.4493"
cy="573.755"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="36"
cx="2113.9861"
cy="8.8979578"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="40"
cx="2127.7839"
cy="600.30579"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="45"
cx="2323.7144"
cy="374.87735"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="10"
cx="1285.4645"
cy="-4.524406"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="11"
cx="1373.3617"
cy="98.437386"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="17"
cx="1577.5707"
cy="811.26678"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="18"
cx="1624.4836"
cy="629.99164"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="27"
cx="1756.9435"
cy="567.37854"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="32"
cx="1922.5184"
cy="430.25674"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="37"
cx="2121.2085"
cy="168.9537"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="41"
cx="2165.3618"
cy="763.12109"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:1;fill:#f2f2f2;stroke:#ff0000;stroke-width:1.30881;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="46"
cx="2325.4175"
cy="220.34077"
rx="38.831364"
ry="38.408379"
inkscape:tile-x0="961.50963"
inkscape:tile-y0="199.05374" /><ellipse
style="opacity:0.816129;fill:#f2f2f2;stroke:#ff0000;stroke-width:3.27929;stroke-linecap:round;stroke-linejoin:round;stroke-opacity:1"
id="50"
cx="2727.3398"
cy="391.19397"
rx="96.933357"
ry="96.592751" /></g></svg>

After

Width:  |  Height:  |  Size: 17 KiB

@ -0,0 +1,51 @@
id,posx,posy,rx
0,871.34241,452.9252,97
1,1114.847,486.94131,39
2,1295.9231,473.1434,39
3,1193.1716,340.68347,39
4,1000.0198,236.16524,39
5,979.21808,77.237282,39
6,946.71722,-79.015465,39
7,1065.1746,-174.31331,39
8,1137.1284,-339.88821,39
9,1255.5857,-339.88821,39
10,1343.4829,-236.92642,39
11,1333.5009,-109.98565,39
12,1287.6443,8.6763725,39
13,1388.0457,116.30006,39
14,1336.6699,212.88544,39
15,1416.2883,387.59634,39
16,1547.6919,475.90298,39
17,1594.6049,294.62784,39
18,1562.5461,106.97628,39
19,1516.6896,-19.964481,39
20,1517.746,-152.42442,39
21,1554.6769,-353.8739,39
22,1678.858,-317.14206,39
23,1699.8784,-198.48003,39
24,1715.3795,-19.107201,39
25,1741.9189,113.35272,39
26,1727.0648,232.01474,39
27,1720.2517,442.60028,39
28,1846.1361,497.7919,39
29,1947.1843,395.68738,39
30,1929.5706,238.3912,39
31,1892.6396,94.89296,39
32,1949.2971,-64.305588,39
33,1862.6936,-210.56342,39
34,1944.4248,-373.37875,39
35,2084.1072,-326.46585,39
36,2091.3296,-166.41011,39
37,2128.6699,-22.054552,39
38,2145.8743,124.20329,39
39,2097.905,264.94199,39
40,2135.4829,427.75729,39
41,2255.6106,475.5275,39
42,2331.8225,362.38464,39
43,2308.6897,224.40555,39
44,2293.8354,39.513561,39
45,2295.5386,-115.02303,39
46,2338.3982,-249.38533,39
47,2486.3591,-318.37488,39
48,2546.0137,-125.20415,39
49,2697.4609,55.830173,97
1 id posx posy rx
2 0 871.34241 452.9252 97
3 1 1114.847 486.94131 39
4 2 1295.9231 473.1434 39
5 3 1193.1716 340.68347 39
6 4 1000.0198 236.16524 39
7 5 979.21808 77.237282 39
8 6 946.71722 -79.015465 39
9 7 1065.1746 -174.31331 39
10 8 1137.1284 -339.88821 39
11 9 1255.5857 -339.88821 39
12 10 1343.4829 -236.92642 39
13 11 1333.5009 -109.98565 39
14 12 1287.6443 8.6763725 39
15 13 1388.0457 116.30006 39
16 14 1336.6699 212.88544 39
17 15 1416.2883 387.59634 39
18 16 1547.6919 475.90298 39
19 17 1594.6049 294.62784 39
20 18 1562.5461 106.97628 39
21 19 1516.6896 -19.964481 39
22 20 1517.746 -152.42442 39
23 21 1554.6769 -353.8739 39
24 22 1678.858 -317.14206 39
25 23 1699.8784 -198.48003 39
26 24 1715.3795 -19.107201 39
27 25 1741.9189 113.35272 39
28 26 1727.0648 232.01474 39
29 27 1720.2517 442.60028 39
30 28 1846.1361 497.7919 39
31 29 1947.1843 395.68738 39
32 30 1929.5706 238.3912 39
33 31 1892.6396 94.89296 39
34 32 1949.2971 -64.305588 39
35 33 1862.6936 -210.56342 39
36 34 1944.4248 -373.37875 39
37 35 2084.1072 -326.46585 39
38 36 2091.3296 -166.41011 39
39 37 2128.6699 -22.054552 39
40 38 2145.8743 124.20329 39
41 39 2097.905 264.94199 39
42 40 2135.4829 427.75729 39
43 41 2255.6106 475.5275 39
44 42 2331.8225 362.38464 39
45 43 2308.6897 224.40555 39
46 44 2293.8354 39.513561 39
47 45 2295.5386 -115.02303 39
48 46 2338.3982 -249.38533 39
49 47 2486.3591 -318.37488 39
50 48 2546.0137 -125.20415 39
51 49 2697.4609 55.830173 97

@ -0,0 +1,192 @@
PImage backgroundImage;
Equipe[] equipes;
int nombreEquipes = 50;
void setup() {
size(displayWidth, displayHeight);
fullScreen(1);
randomSeed(3);
frameRate(30);
colorMode(HSB, 255);
rectMode(CENTER);
noStroke();
backgroundImage = loadImage("backgroundImage.jpg");
image(backgroundImage, 0, 0, displayWidth, displayHeight);
equipes = new Equipe[nombreEquipes];
for (int i = 0 ; i < equipes.length; i++) {
equipes[i] = new Equipe(i);
}
}
class Equipe {
int id, score, pos_x, pos_y, radius;
String membres;
color couleur;
Pion pion;
Equipe(int id) {
this.id = id;
this.score = 0;
//float randomHue = random(255);
//float randomSaturation = random(100,255);
//float randomBrightness = random(80,255);
//color inverseText = color(float(255)-randomHue, float(255)-randomSaturation, float(255)-randomBrightness);
//this.couleur = color(randomHue, randomSaturation, randomBrightness);
//this.pion = new Pion(this.id, this.couleur, inverseText);
// générer un pion pour l'équipe
this.pion = new Pion(this.id, color(0), color(255));
// récupérer les valeurs de positionnement initial du pion
this.pos_x = this.pion.pos_x;
this.pos_y = this.pion.pos_y;
this.radius = this.pion.radius;
// afficher l'emplacement de l'équipe avant le pion
this.update();
}
void update() {
color bgColor = color(100, 100, 200);
color textColor = color(200, 100, 200);
fill(bgColor);
float radius = this.radius;
circle(this.pos_x,this.pos_y,radius);
fill(textColor);
float textSize = this.radius/4*3;
textSize(textSize);
float pos_x = this.id<9? this.pos_x-radius/5: this.pos_x-radius/3;
text(this.id+1, pos_x, this.pos_y+radius/5);
this.pion.update();
}
}
class Pion {
int id, pos_x, pos_y, radius;
color fond, texte;
boolean hovered, dragged;
Pion(int id, color fond, color texte) {
this.id = id;
this.fond = fond;
this.texte = texte;
this.radius = 30;
this.pos_x = floor(displayWidth/nombreEquipes)*id+radius;
this.pos_y = 30;
this.hovered = false;
this.dragged = false;
}
void update() {
color bgColor = this.dragged? color(40, 250, 250): this.hovered? this.texte: this.fond;
color textColor = this.dragged? color(210, 10, 10): this.hovered? this.fond: this.texte;
stroke(bgColor);
strokeWeight(0.5);
fill(bgColor);
float radius = this.radius; //this.dragged? this.radius*1.4: this.hovered? this.radius*1.2: this.radius;
circle(this.pos_x,this.pos_y,radius);
fill(textColor);
float textSize = this.radius/4*3; //this.dragged? this.radius*0.75: this.hovered? this.radius*0.75: this.radius*0.75;
textSize(textSize);
float pos_x = this.id<9? this.pos_x-radius/5: this.pos_x-radius/3;
text(this.id+1, pos_x, this.pos_y+radius/5);
}
void dragStart() {
this.dragged = true;
}
void dragStop() {
this.dragged = false;
}
void hoverStart() {
this.hovered = true;
}
void hoverStop() {
this.hovered = false;
}
}
void mouseDragged() {
for (int i = 0 ; i < equipes.length; i++) {
Pion p = equipes[i].pion;
if (p.dragged) {
p.pos_x = mouseX;
p.pos_y = mouseY;
break;
}
}
}
void mouseMoved() {
for (int i = 0 ; i < equipes.length; i++) {
Equipe e = equipes[i];
Pion p = e.pion;
float distPion = dist(p.pos_x, p.pos_y, mouseX, mouseY);
float distEquipe = dist(e.pos_x, e.pos_y, mouseX, mouseY);
float threshold = p.radius/2;
if (distPion>threshold && distEquipe>threshold && (p.hovered || p.dragged)) {
p.dragStop();
p.hoverStop();
} else if (distPion<=threshold && !p.hovered) {
println(p.id+1);
p.hoverStart();
} else if (distEquipe<=threshold && !p.dragged) {
println(p.id+1);
p.dragStart();
}
//if (distPion<p.radius/2 && !p.hovered) {
// println(p.id+1);
// p.hoverStart();
//} else if(distPion>=p.radius/2 && p.hovered) {
// p.hoverStop();
//} else if(distEquipe<e.radius/2 && !p.hovered) {
// println(p.id+1);
// p.dragStart();
//} else if(distEquipe>=e.radius/2 && p.hovered) {
// p.dragStop();
//}
}
}
void mousePressed() {
//println(mouseX, mouseY);
for (int i = 0 ; i < equipes.length; i++) {
Pion p = equipes[i].pion;
float d = dist(p.pos_x, p.pos_y, mouseX, mouseY);
if (d<p.radius/2) {
println(p.id+1);
p.dragStart();
break;
}
}
}
void mouseReleased() {
for (int i = 0 ; i < equipes.length; i++) {
Pion p = equipes[i].pion;
if (p.dragged) {
p.dragStop();
}
}
}
void draw()
{
image(backgroundImage, 0, 0, displayWidth, displayHeight);
for (int i = 0 ; i < equipes.length; i++) {
equipes[i].update();
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 MiB

Loading…
Cancel
Save