This file contains hidden or 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
| const hex2rgb = (hex, alpha) => { | |
| const r = parseInt(hex.slice(1, 3), 16); | |
| const g = parseInt(hex.slice(3, 5), 16); | |
| const b = parseInt(hex.slice(5, 7), 16); | |
| return { r, g, b }; | |
| }; |
This file contains hidden or 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
| const rgb2hex = (r, g, b) => { | |
| var rgb = b | (g << 8) | (r << 16); | |
| return '#' + (0x1000000 + rgb).toString(16).slice(1) | |
| } |
This file contains hidden or 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
| --- | |
| version: 1.0 | |
| domains: | |
| - colorswall.com | |
| url_patterns: | |
| - colorswall.com/* | |
| timestamp: '2018-07-30T12:59:22Z' | |
| id: w74A | |
| redirect_url: https://colorswall.com/ | |
| shared_via: StyleURL - (https://styleurl.app) import and export CSS changes from Chrome |
This file contains hidden or 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
| head: { | |
| title: 'ColorsWall.com', | |
| meta: [ | |
| { hid: 'http-equiv-cache-control', 'http-equiv': 'Cache-Control', content: 'no-cache, no-store, must-revalidate' }, | |
| { hid: 'http-equiv-pragma', 'http-equiv': 'Pragma', content: 'no-cache' }, | |
| { hid: 'http-equiv-expires', 'http-equiv': 'Expires', content: '0' }, | |
| ] | |
| } |
This file contains hidden or 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
| head: { | |
| __dangerouslyDisableSanitizers: ['script'], | |
| script: [{ | |
| innerHTML: ` | |
| console.log('Hello Script') | |
| `, | |
| type: 'application/ld+json', | |
| body: true | |
| }], | |
| }, |
This file contains hidden or 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
| const getRandomArbitrary = (min, max) => parseInt(Math.random() * (max - min) + min, 10) | |
| const generateRandomRGBColor = () => | |
| `rgb(${getRandomArbitrary(0, 255)}, ${getRandomArbitrary(0, 255)}, ${getRandomArbitrary(0, 255)})`; | |
| // generateRandomRGBColor() | |
| // Result rgb(101, 216, 215) |
This file contains hidden or 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
| https://colorswall.com //Place to store color palettes |