Browse Source

drawing settings

master
n0m1s 6 years ago
parent
commit
af519196bb
Signed by: nomis GPG Key ID: BC0454CAD76FE803
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      html/illumination_curve.js

+ 4
- 2
html/illumination_curve.js View File

@ -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) {


Loading…
Cancel
Save