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
734ce39d
Commit
734ce39d
authored
Nov 17, 2020
by
Benoit Barbot
Browse files
fix color
parent
e9884b7e
Pipeline
#1780
failed with stage
in 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
editor/graphDrawing.ml
View file @
734ce39d
...
...
@@ -100,9 +100,10 @@ module GraphEditor (G: GRAPH ) = struct
let
clean
s
=
let
ctx
=
s
.
ctx
in
let
color
=
CSS
.
Color
.
string_of_t
(
CSS
.
Color
.
rgb
220
220
220
)
in
(*
let color = CSS.Color.string_of_t (CSS.Color.rgb 220 220 220) in
ctx##.fillStyle := (Js.string color);
ctx
##
(
fillRect
0
.
0
0
.
0
(
float
width
)
(
float
height
));
ctx##(fillRect 0.0 0.0 (float width) (float height));*)
ctx
##
(
clearRect
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