This website works better with JavaScript.
Home
Help
Sign In
nomis
/
lamp
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
drawing settings
master
n0m1s
6 years ago
parent
e2b58d2256
commit
af519196bb
Signed by:
nomis
GPG Key ID:
BC0454CAD76FE803
1 changed files
with
4 additions
and
2 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-2
html/illumination_curve.js
+ 4
- 2
html/illumination_curve.js
View File
@ -1,6 +1,8 @@
var
canvasParams
=
{
var
canvasParams
=
{
h
:
1000
,
h
:
1000
,
w
:
2000
w
:
2000
,
lineWidth
:
10
,
handleRadius
:
40
}
;
}
;
/
*
*
/
*
*
@ -50,7 +52,7 @@ class IlluminationPoint {
class
Drawer
{
class
Drawer
{
constructor
(
context
)
{
constructor
(
context
)
{
this
.
draw
=
context
;
this
.
draw
=
context
;
this
.
draw
.
lineWidth
=
10
;
this
.
draw
.
lineWidth
=
canvasParams
.
lineWidth
;
}
}
bezier
(
p1
,
c1
,
c2
,
p2
)
{
bezier
(
p1
,
c1
,
c2
,
p2
)
{
Write
Preview
Loading…
Cancel
Save