From af519196bb8d3255351a82e32818d0ed06c74563 Mon Sep 17 00:00:00 2001 From: n0m1s Date: Thu, 27 Feb 2020 22:27:29 +0100 Subject: [PATCH] drawing settings --- html/illumination_curve.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/html/illumination_curve.js b/html/illumination_curve.js index 329bd09..a55feb5 100644 --- a/html/illumination_curve.js +++ b/html/illumination_curve.js @@ -1,6 +1,8 @@ var canvasParams = { h: 1000, - w: 2000 + w: 2000, + lineWidth : 10, + handleRadius : 40 }; /** @@ -50,7 +52,7 @@ class IlluminationPoint { class Drawer { constructor(context) { this.draw = context; - this.draw.lineWidth = 10; + this.draw.lineWidth = canvasParams.lineWidth; } bezier(p1, c1, c2, p2) {