-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Expérimentation sur la fusion de couleurs #53
- Loading branch information
1 parent
e6f73f4
commit 4f11f1d
Showing
3 changed files
with
83 additions
and
18 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,16 +3,15 @@ | |
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<script src="https://cdn.jsdelivr.net/npm/d3@7/+esm" type="module" defer></script> | ||
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/gridjs.production.min.js" type="module" defer></script> | ||
<script src="lib/fabric.min.js"></script> | ||
<script src="mission.js" defer type="module"></script> | ||
<link rel="stylesheet" href="./bordure.css"> | ||
<link rel="stylesheet" href="./style.css"> | ||
<link rel="stylesheet" href="https://unpkg.com/gridjs/dist/theme/mermaid.min.css"> | ||
<title>Analyse de SparQL</title> | ||
|
||
<script type="module"> | ||
import {recupererDonnees, executeSPARQLRequest, recupererEtAfficherTableau, nodelink_creator, nodeAlreadyExist, buildNodes, linkAlreadyExist, buildLinks, buildLegend} from "./mission.js" | ||
import {recupererDonnees, executeSPARQLRequest, fusion_couleurs, recupererEtAfficherTableau, nodelink_creator, buildNodes, buildLinks, buildLegend} from "./mission.js" | ||
|
||
document.addEventListener('DOMContentLoaded', function() { | ||
let boutonEnvoyer = document.querySelector('#recolt_request') | ||
|
@@ -63,7 +62,17 @@ | |
|
||
recupererEtAfficherTableau(dataset_nodelink) | ||
|
||
nodelink_creator(dataset_nodelink) | ||
const liste_test_couleur = { | ||
CouleurA : {valeurs : [255, 0, 0], poids : 0.5}, | ||
CouleurB : {valeurs : [200, 120, 130], poids : 0.2}, | ||
CouleurC : {valeurs : [0, 230, 140], poids : 0.3} | ||
} | ||
|
||
const liste_poids = [0.5, 0.3, 0.2] | ||
|
||
fusion_couleurs(liste_test_couleur) | ||
|
||
//nodelink_creator(dataset_nodelink) | ||
|
||
//recupererEtAfficherTableau(dataset, edge_test) | ||
//recupererEtAfficherTableau(dataset_nodelink) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters