1 | /**
|
2 | * Define theme "a". Simple rect.
|
3 | * @function a
|
4 | * @param {number} width - Image width
|
5 | * @param {number} height - Image height
|
6 | * @param {string} color1 - Shape color 1.
|
7 | * @param {string} color2 - Shape color 2.
|
8 | * @returns {string} - SVG string.
|
9 | */
|
10 |
|
11 |
|
12 | const _svg = require('./_svg')
|
13 |
|
14 | /** @lends a */
|
15 | function a (width, height, color1, color2) {
|
16 | return _svg(width, height, {
|
17 | rect: [ ,
|
18 | {
|
19 | '@': {
|
20 | x: 0,
|
21 | y: 0,
|
22 | width: width,
|
23 | height: height,
|
24 | fill: color2
|
25 | }
|
26 | },
|
27 | {
|
28 | '@': {
|
29 | x: 0,
|
30 | y: 0,
|
31 | width: width,
|
32 | height: height,
|
33 | fill: color1
|
34 | }
|
35 | }
|
36 | ]
|
37 | })
|
38 | }
|
39 | a.$reversed = false
|
40 |
|
41 | module.exports = a
|