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
// result table | |
var B = []; | |
var utilities = [3, 4, 2, 3]; | |
var weights = [3, 2, 4, 1]; | |
// max weight | |
var W = 9; | |
// init table |
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
<!doctype html> | |
<html> | |
<body> | |
<canvas id="bezier" width="500px" height="500px" style="border: 1px solid black"></canvas> | |
<script> | |
let canvas = document.getElementById('bezier'); | |
let ctx = canvas.getContext('2d'); | |
const SCALE = 100; |