File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ npm install javascript-color-gradient
2020Then import the module into your JavaScript:
2121
2222``` javascript
23- import { Gradient } from " javascript-color-gradient" ;
23+ import Gradient from " javascript-color-gradient" ;
2424```
2525
2626## Demo
@@ -43,7 +43,7 @@ import { Gradient } from "javascript-color-gradient";
4343Using 2 colors and default (10) midpoints to generate an array of hex color values:
4444
4545``` javascript
46- import { Gradient } from " javascript-color-gradient" ;
46+ import Gradient from " javascript-color-gradient" ;
4747
4848const gradientArray = new Gradient ()
4949 .setColorGradient (" #3F2CAF" , " e9446a" )
@@ -70,7 +70,7 @@ console.log(gradientArray);
7070Using two colors and default (10) midpoints to return single hex color value corresponding to the provided index:
7171
7272``` javascript
73- import { Gradient } from " javascript-color-gradient" ;
73+ import Gradient from " javascript-color-gradient" ;
7474
7575const colorAtIndexTwo = new Gradient ()
7676 .setColorGradient (" #3F2CAF" , " e9446a" )
You can’t perform that action at this time.
0 commit comments