-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from jonmmease/jonmmease/initial_gradients
Add support for gradients
- Loading branch information
Showing
104 changed files
with
62,192 additions
and
991 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
157 changes: 157 additions & 0 deletions
157
sg2d-vega-test-data/vega-scenegraphs/gradients/arc_gradient.sg.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,157 @@ | ||
{ | ||
"width": 210, | ||
"height": 210, | ||
"origin": [ | ||
5, | ||
5 | ||
], | ||
"scenegraph": { | ||
"clip": false, | ||
"interactive": true, | ||
"items": [ | ||
{ | ||
"items": [ | ||
{ | ||
"clip": false, | ||
"interactive": true, | ||
"items": [ | ||
{ | ||
"x": 100, | ||
"y": 100, | ||
"outerRadius": 80, | ||
"innerRadius": 20, | ||
"startAngle": 5, | ||
"endAngle": 7, | ||
"fill": { | ||
"x1": 0, | ||
"y1": 1, | ||
"x2": 1, | ||
"y2": 1, | ||
"gradient": "linear", | ||
"stops": [ | ||
{ | ||
"offset": 0, | ||
"color": "yellow" | ||
}, | ||
{ | ||
"offset": 0.4, | ||
"color": "yellow" | ||
}, | ||
{ | ||
"offset": 0.6, | ||
"color": "darkgreen" | ||
}, | ||
{ | ||
"offset": 1, | ||
"color": "darkgreen" | ||
} | ||
] | ||
}, | ||
"fillOpacity": 0.6, | ||
"stroke": { | ||
"x1": 0, | ||
"y1": 0, | ||
"x2": 1, | ||
"y2": 1, | ||
"gradient": "linear", | ||
"stops": [ | ||
{ | ||
"offset": 0, | ||
"color": "orange" | ||
}, | ||
{ | ||
"offset": 0.4, | ||
"color": "orange" | ||
}, | ||
{ | ||
"offset": 0.6, | ||
"color": "purple" | ||
}, | ||
{ | ||
"offset": 1, | ||
"color": "purple" | ||
} | ||
] | ||
}, | ||
"strokeWidth": 4 | ||
}, | ||
{ | ||
"x": 100, | ||
"y": 100, | ||
"outerRadius": 80, | ||
"innerRadius": 20, | ||
"startAngle": 8, | ||
"endAngle": 9, | ||
"fill": { | ||
"x1": 0, | ||
"y1": 0, | ||
"x2": 1, | ||
"y2": 1, | ||
"gradient": "linear", | ||
"stops": [ | ||
{ | ||
"offset": 0, | ||
"color": "orange" | ||
}, | ||
{ | ||
"offset": 0.4, | ||
"color": "orange" | ||
}, | ||
{ | ||
"offset": 0.6, | ||
"color": "purple" | ||
}, | ||
{ | ||
"offset": 1, | ||
"color": "purple" | ||
} | ||
] | ||
}, | ||
"fillOpacity": 0.6, | ||
"stroke": { | ||
"x1": 0, | ||
"y1": 1, | ||
"x2": 1, | ||
"y2": 1, | ||
"gradient": "linear", | ||
"stops": [ | ||
{ | ||
"offset": 0, | ||
"color": "yellow" | ||
}, | ||
{ | ||
"offset": 0.4, | ||
"color": "yellow" | ||
}, | ||
{ | ||
"offset": 0.6, | ||
"color": "darkgreen" | ||
}, | ||
{ | ||
"offset": 1, | ||
"color": "darkgreen" | ||
} | ||
] | ||
}, | ||
"strokeWidth": 4 | ||
} | ||
], | ||
"marktype": "arc", | ||
"name": "marks", | ||
"role": "mark", | ||
"zindex": 0 | ||
} | ||
], | ||
"fill": "transparent", | ||
"x": 0, | ||
"y": 0, | ||
"width": 200, | ||
"height": 200 | ||
} | ||
], | ||
"marktype": "group", | ||
"name": "root", | ||
"role": "frame", | ||
"zindex": 0 | ||
} | ||
} |
Binary file added
BIN
+58.3 KB
sg2d-vega-test-data/vega-scenegraphs/gradients/area_line_with_gradient.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.