Add more fill and stroke node tests

This commit is contained in:
Matthias Clasen
2023-08-25 23:10:04 -04:00
parent 61756ab39d
commit c1e6e8e2a7
5 changed files with 42 additions and 0 deletions

View File

@@ -295,6 +295,8 @@ node_parser_tests = [
'empty-transform.ref.node',
'fill.node',
'fill.ref.node',
'fill2.node',
'fill2.ref.node',
'glshader.node',
'glshader.ref.node',
'glshader.errors',

View File

@@ -0,0 +1,4 @@
fill {
path: "M 0 0 O 10 10 20 20 5";
fill-rule: even-odd;
}

View File

@@ -0,0 +1,9 @@
fill {
child: color {
bounds: 0 0 20 20;
color: rgb(255,0,204);
}
path: "\
M 0 0 O 10 10, 20 20, 5";
fill-rule: even-odd;
}

View File

@@ -0,0 +1,10 @@
stroke {
child: color { bounds: 0 0 100 100; color: red; }
path: "M 10, 10 L 90, 90 M 90, 10 L 10, 90";
line-width: 2.5;
line-cap: butt;
line-join: miter;
miter-limit: 3.1;
dash: 0 1 4.5 10;
dash-offset: 2.1;
}

View File

@@ -0,0 +1,17 @@
stroke {
child: color {
bounds: 0 0 100 100;
color: rgb(255,0,0);
}
path: "\
M 10 10\
L 90 90\
M 90 10\
L 10 90";
line-width: 2.5;
line-cap: butt;
line-join: miter;
miter-limit: 3.1;
dash: 0 1 4.5 10;
dash-offset: 2.1;
}