OCaml Forge
SCM

Detail: [#1052] Path filling behavior inconsistent between cairo and graphics

Bugs: Browse | Download .csv | Monitor

[#1052] Path filling behavior inconsistent between cairo and graphics

Date:
2011-11-07 21:41
Priority:
3
State:
Open
Submitted by:
Pierre Hauweele (antegallya)
Assigned to:
Nobody (None)
Hardware:
None
Resolution:
None
Severity:
None
Version:
None
Component:
None
Operating System:
None
Product:
None
 
URL:
Summary:
Path filling behavior inconsistent between cairo and graphics

Detailed description
The following code doesn't have the same the same behavior with the cairo or the graphics backend.
In cairo, the second subpath is extruded from the whole fill. In graphics, it's not the case : the second subpath is also filled.

We should first define which behavior we really expect.
Note that implementing cairo's behavior in graphics will be more troublesome than making graphics' behavior the default.

module B = Archimedes.Backend
let () =
let bk = B.make ["graphics"; "hold"] 500. 500. in
B.move_to bk 0. 0.;
B.line_to bk 500. 0.;
B.line_to bk 500. 500.;
B.line_to bk 0. 500.;
B.close_path bk;
B.move_to bk 100. 100.;
B.line_to bk 100. 400.;
B.line_to bk 400. 100.;
B.close_path bk;
B.fill bk;
B.close bk

Followup

No Followups Have Been Posted

Attached Files:

Changes:

No Changes Have Been Made to This Item