cercle politique nav is done #2156

This commit is contained in:
2023-07-11 22:55:25 +02:00
parent 28c653dcab
commit 58f77d22e3
7 changed files with 359 additions and 163 deletions

View File

@@ -444,7 +444,7 @@ export default {
let pos = {x:0,y:0};
var r = ray * 0.8; // ray
var dr = r/2; // demi ray
var pcr = 2; // petits cercle rayon
var pcr = 3; // petits cercle rayon
// https://fr.wikipedia.org/wiki/Trigonom%C3%A9trie#/media/Fichier:Unit_circle_angles_color.svg
// https://fr.wikipedia.org/wiki/Identit%C3%A9_trigonom%C3%A9trique_pythagoricienne#Preuve_utilisant_le_cercle_unit%C3%A9
@@ -530,7 +530,7 @@ export default {
new paper.Path.Circle({
center: [0, r],
radius: pcr,
style: style
style: {...style, ...{fillColor: 'rgba(255,255,255,0.9)'}},
}),
new paper.Path.Circle({
center: [r, 0],
@@ -586,36 +586,36 @@ export default {
// haut
new paper.Path({
segments: [
[-2, -dr*1.5 - 2],
[-4, -dr*1.5 - 4],
[0, -dr*1.5],
[-2, -dr*1.5 + 2]
[-4, -dr*1.5 + 4]
],
style: felchesstyle
}),
// bas
new paper.Path({
segments: [
[2, dr*1.5 - 2],
[4, dr*1.5 - 4],
[0, dr*1.5],
[2, dr*1.5 + 2]
[4, dr*1.5 + 4]
],
style: felchesstyle
}),
// gauche
new paper.Path({
segments: [
[-dr*1.5 - 2, 2],
[-dr*1.5 - 4, 4],
[-dr*1.5, 0],
[-dr*1.5 + 2, 2]
[-dr*1.5 + 4, 4]
],
style: felchesstyle
}),
// droite
new paper.Path({
segments: [
[dr*1.5 - 2, -2],
[dr*1.5 - 4, -4],
[dr*1.5, 0],
[dr*1.5 + 2, -2]
[dr*1.5 + 4, -4]
],
style: felchesstyle
}),