UNPKG
fur-shapes
Version:
latest (2.1.2)
2.1.2
2.1.1
2.1.0
2.0.4
2.0.2
2.0.1
2.0.0
1.0.6
1.0.5
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
Shapes for fur.
github.com/fur-repo/fur-shapes
fur-labo/fur-shapes
fur-shapes
/
example
/
example-usage.js
11 lines
(7 loc)
•
249 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
'use strict'
const
furShapes =
require
(
'fur-shapes'
)
const
fs =
require
(
'fs'
)
let
themeA = furShapes.
a
(
256
,
215
,
'#38E'
)
let
themeB = furShapes.
b
(
512
,
256
,
'#E00'
) fs.
writeFileSync
(
'shape-01.svg'
, themeA) fs.
writeFileSync
(
'shape-02.svg'
, themeB)