Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Benoit Barbot
GraphEditor
Commits
e9884b7e
Commit
e9884b7e
authored
Nov 16, 2020
by
Benoit Barbot
Browse files
prog
parent
0fd94577
Pipeline
#1776
failed with stage
in 32 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
editor/graphDrawing.ml
View file @
e9884b7e
...
...
@@ -100,8 +100,8 @@ module GraphEditor (G: GRAPH ) = struct
let
clean
s
=
let
ctx
=
s
.
ctx
in
let
color
=
CSS
.
Color
.
string_of_t
(
CSS
.
Color
.
rgb
2
0
0
2
0
0
2
0
0
)
in
ctx
##.
fillStyle
:=
(
Js
.
string
color
);
let
color
=
CSS
.
Color
.
string_of_t
(
CSS
.
Color
.
rgb
2
2
0
2
2
0
2
2
0
)
in
ctx
##.
fillStyle
:=
(
Js
.
string
color
);
ctx
##
(
fillRect
0
.
0
0
.
0
(
float
width
)
(
float
height
));
let
colors
=
CSS
.
Color
.
string_of_t
(
CSS
.
Color
.
rgb
0
0
0
)
in
ctx
##.
strokeStyle
:=
(
Js
.
string
colors
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment