@tsparticles/palette-monochrome-noir 4.0.0-alpha.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/361.min.js ADDED
@@ -0,0 +1 @@
1
+ "use strict";(this.webpackChunk_tsparticles_palette_monochrome_noir=this.webpackChunk_tsparticles_palette_monochrome_noir||[]).push([[361],{361(o,e,t){t.d(e,{options:()=>r});let r={name:"Monochrome Noir",blendMode:"source-over",background:"#050506",fill:!0,colors:["#0B0B0C","#1C1D20","#3A3D44","#7A808C","#C7CCD6","#F5F7FA"]}}}]);
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2020 Matteo Bruni
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,143 @@
1
+ [![banner](https://particles.js.org/images/banner3.png)](https://particles.js.org)
2
+
3
+ # tsParticles Monochrome Noir Palette
4
+
5
+ [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/@tsparticles/palette-monochrome-noir/badge)](https://www.jsdelivr.com/package/npm/@tsparticles/palette-monochrome-noir) [![npmjs](https://badge.fury.io/js/@tsparticles/palette-monochrome-noir.svg)](https://www.npmjs.com/package/@tsparticles/palette-monochrome-noir) [![npmjs](https://img.shields.io/npm/dt/@tsparticles/palette-monochrome-noir)](https://www.npmjs.com/package/@tsparticles/palette-monochrome-noir) [![GitHub Sponsors](https://img.shields.io/github/sponsors/matteobruni)](https://github.com/sponsors/matteobruni)
6
+
7
+ [tsParticles](https://github.com/tsparticles/tsparticles) palette for monochrome noir.
8
+
9
+ [![Discord](https://particles.js.org/images/discord.png)](https://discord.gg/hACwv45Hme) [![Telegram](https://particles.js.org/images/telegram.png)](https://t.me/tsparticles)
10
+
11
+ [![tsParticles Product Hunt](https://api.producthunt.com/widgets/embed-image/v1/featured.svg?post_id=186113&theme=light)](https://www.producthunt.com/posts/tsparticles?utm_source=badge-featured&utm_medium=badge&utm_souce=badge-tsparticles") <a href="https://www.buymeacoffee.com/matteobruni"><img src="https://img.buymeacoffee.com/button-api/?text=Buy me a beer&emoji=🍺&slug=matteobruni&button_colour=5F7FFF&font_colour=ffffff&font_family=Arial&outline_colour=000000&coffee_colour=FFDD00"></a>
12
+
13
+ ## Sample
14
+
15
+ [![demo](https://raw.githubusercontent.com/tsparticles/presets/main/palettes/monochromeNoir/images/sample.png)](https://particles.js.org/samples/palettes/monochrome-noir)
16
+
17
+ ## Colors
18
+
19
+ <table>
20
+ <tbody>
21
+ <tr>
22
+ <td align="center">
23
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#0B0B0C"><rect width="32" height="32" fill="#0B0B0C" /></svg><br />
24
+ <code>#0B0B0C</code>
25
+ </td>
26
+ <td align="center">
27
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#1C1D20"><rect width="32" height="32" fill="#1C1D20" /></svg><br />
28
+ <code>#1C1D20</code>
29
+ </td>
30
+ <td align="center">
31
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#3A3D44"><rect width="32" height="32" fill="#3A3D44" /></svg><br />
32
+ <code>#3A3D44</code>
33
+ </td>
34
+ <td align="center">
35
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#7A808C"><rect width="32" height="32" fill="#7A808C" /></svg><br />
36
+ <code>#7A808C</code>
37
+ </td>
38
+ <td align="center">
39
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#C7CCD6"><rect width="32" height="32" fill="#C7CCD6" /></svg><br />
40
+ <code>#C7CCD6</code>
41
+ </td>
42
+ </tr>
43
+ <tr>
44
+ <td align="center">
45
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#F5F7FA"><rect width="32" height="32" fill="#F5F7FA" /></svg><br />
46
+ <code>#F5F7FA</code>
47
+ </td>
48
+ </tr>
49
+ <tr>
50
+ <td colspan="5" align="center">
51
+ <svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#050506"><rect width="40" height="40" fill="#050506" /></svg><br />
52
+ <strong>Background</strong><br />
53
+ <code>#050506</code>
54
+ </td>
55
+ </tr>
56
+ <tr>
57
+ <td colspan="5" align="center">
58
+ <strong>Blend mode:</strong> <code>source-over</code> | <strong>Fill:</strong> <code>true</code>
59
+ </td>
60
+ </tr>
61
+ </tbody>
62
+ </table>
63
+
64
+ ## Quick checklist
65
+
66
+ 1. Install `@tsparticles/engine` (or use the CDN bundle below)
67
+ 2. Call the package loader function(s) before `tsParticles.load(...)`
68
+ 3. Apply the package options in your `tsParticles.load(...)` config
69
+
70
+ ## How to use it
71
+
72
+ ### CDN / Vanilla JS / jQuery
73
+
74
+ ```html
75
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/palette-monochrome-noir@3/tsparticles.palette.monochrome-noir.bundle.min.js"></script>
76
+ ```
77
+
78
+ ### Usage
79
+
80
+ Once the scripts are loaded you can set up `tsParticles` like this:
81
+
82
+ ```javascript
83
+ (async () => {
84
+ await loadMonochromeNoirPalette(tsParticles);
85
+
86
+ await tsParticles.load({
87
+ id: "tsparticles",
88
+ options: {
89
+ palette: "monochrome-noir",
90
+ },
91
+ });
92
+ })();
93
+ ```
94
+
95
+ #### Customization
96
+
97
+ **Important ⚠️**
98
+ You can override all the options defining the properties like in any standard `tsParticles` installation.
99
+
100
+ ```javascript
101
+ tsParticles.load({
102
+ id: "tsparticles",
103
+ options: {
104
+ particles: {
105
+ shape: {
106
+ type: "square", // starting from v2, this require the square shape script
107
+ },
108
+ },
109
+ palette: "monochrome-noir",
110
+ },
111
+ });
112
+ ```
113
+
114
+ Like in the sample above, the circles will be replaced by squares.
115
+
116
+ ### Frameworks with a tsParticles component library
117
+
118
+ Checkout the documentation in the component library repository and call the `loadMonochromeNoirPalette` function instead of `loadFull`, `loadSlim` or similar functions.
119
+
120
+ The options shown above are valid for all the component libraries.
121
+
122
+ ## Common pitfalls
123
+
124
+ - Calling `tsParticles.load(...)` before `loadMonochromeNoirPalette(...)`
125
+ - Verify required peer packages before enabling advanced options
126
+ - Change one option group at a time to isolate regressions quickly
127
+
128
+ ## Related docs
129
+
130
+ - Presets and palettes catalog: <https://github.com/tsparticles/presets>
131
+ - Main docs: <https://particles.js.org/docs/>
132
+
133
+ ---
134
+
135
+ ```mermaid
136
+ flowchart TD
137
+
138
+ subgraph pr [Palettes]
139
+ pamonochromeNoir[Monochrome Noir]
140
+ end
141
+
142
+ e[tsParticles Engine] --> pamonochromeNoir
143
+ ```
@@ -0,0 +1,7 @@
1
+ const paletteName = "monochrome-noir";
2
+ export async function loadMonochromeNoirPalette(engine) {
3
+ await engine.pluginManager.register(async (e) => {
4
+ const { options } = await import("./options.js");
5
+ e.pluginManager.addPalette(paletteName, options);
6
+ });
7
+ }
@@ -0,0 +1,14 @@
1
+ export const options = {
2
+ name: "Monochrome Noir",
3
+ blendMode: "source-over",
4
+ background: "#050506",
5
+ fill: true,
6
+ colors: [
7
+ "#0B0B0C",
8
+ "#1C1D20",
9
+ "#3A3D44",
10
+ "#7A808C",
11
+ "#C7CCD6",
12
+ "#F5F7FA",
13
+ ],
14
+ };
@@ -0,0 +1 @@
1
+ { "type": "module" }
package/cjs/index.js ADDED
@@ -0,0 +1,7 @@
1
+ const paletteName = "monochrome-noir";
2
+ export async function loadMonochromeNoirPalette(engine) {
3
+ await engine.pluginManager.register(async (e) => {
4
+ const { options } = await import("./options.js");
5
+ e.pluginManager.addPalette(paletteName, options);
6
+ });
7
+ }
package/cjs/options.js ADDED
@@ -0,0 +1,14 @@
1
+ export const options = {
2
+ name: "Monochrome Noir",
3
+ blendMode: "source-over",
4
+ background: "#050506",
5
+ fill: true,
6
+ colors: [
7
+ "#0B0B0C",
8
+ "#1C1D20",
9
+ "#3A3D44",
10
+ "#7A808C",
11
+ "#C7CCD6",
12
+ "#F5F7FA",
13
+ ],
14
+ };
@@ -0,0 +1 @@
1
+ { "type": "commonjs" }
@@ -0,0 +1,30 @@
1
+ /*!
2
+ * Author : Matteo Bruni
3
+ * MIT license: https://opensource.org/licenses/MIT
4
+ * Demo / Generator : https://particles.js.org/
5
+ * GitHub : https://www.github.com/matteobruni/tsparticles
6
+ * How to use? : Check the GitHub README
7
+ * v4.0.0-alpha.5
8
+ */
9
+ "use strict";
10
+ /*
11
+ * ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
12
+ * This devtool is neither made for production nor for readable output files.
13
+ * It uses "eval()" calls to create a separate source file in the browser devtools.
14
+ * If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
15
+ * or disable the default devtool with "devtool: false".
16
+ * If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
17
+ */
18
+ (this["webpackChunk_tsparticles_palette_monochrome_noir"] = this["webpackChunk_tsparticles_palette_monochrome_noir"] || []).push([["dist_browser_options_js"],{
19
+
20
+ /***/ "./dist/browser/options.js"
21
+ /*!*********************************!*\
22
+ !*** ./dist/browser/options.js ***!
23
+ \*********************************/
24
+ (__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
25
+
26
+ eval("{__webpack_require__.r(__webpack_exports__);\n/* harmony export */ __webpack_require__.d(__webpack_exports__, {\n/* harmony export */ options: () => (/* binding */ options)\n/* harmony export */ });\nconst options = {\n name: \"Monochrome Noir\",\n blendMode: \"source-over\",\n background: \"#050506\",\n fill: true,\n colors: [\n \"#0B0B0C\",\n \"#1C1D20\",\n \"#3A3D44\",\n \"#7A808C\",\n \"#C7CCD6\",\n \"#F5F7FA\"\n ]\n};\n\n\n//# sourceURL=webpack://@tsparticles/palette-monochrome-noir/./dist/browser/options.js?\n}");
27
+
28
+ /***/ }
29
+
30
+ }]);
package/esm/index.js ADDED
@@ -0,0 +1,7 @@
1
+ const paletteName = "monochrome-noir";
2
+ export async function loadMonochromeNoirPalette(engine) {
3
+ await engine.pluginManager.register(async (e) => {
4
+ const { options } = await import("./options.js");
5
+ e.pluginManager.addPalette(paletteName, options);
6
+ });
7
+ }
package/esm/options.js ADDED
@@ -0,0 +1,14 @@
1
+ export const options = {
2
+ name: "Monochrome Noir",
3
+ blendMode: "source-over",
4
+ background: "#050506",
5
+ fill: true,
6
+ colors: [
7
+ "#0B0B0C",
8
+ "#1C1D20",
9
+ "#3A3D44",
10
+ "#7A808C",
11
+ "#C7CCD6",
12
+ "#F5F7FA",
13
+ ],
14
+ };
@@ -0,0 +1 @@
1
+ { "type": "module" }
package/package.json ADDED
@@ -0,0 +1,108 @@
1
+ {
2
+ "name": "@tsparticles/palette-monochrome-noir",
3
+ "version": "4.0.0-alpha.5",
4
+ "description": "tsParticles monochrome noir palette",
5
+ "homepage": "https://particles.js.org",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/tsparticles/presets.git",
9
+ "directory": "palettes/monochromeNoir"
10
+ },
11
+ "keywords": [
12
+ "front-end",
13
+ "frontend",
14
+ "tsparticles",
15
+ "particles.js",
16
+ "particlesjs",
17
+ "particles",
18
+ "particle",
19
+ "canvas",
20
+ "jsparticles",
21
+ "xparticles",
22
+ "particles-js",
23
+ "particles-bg",
24
+ "particles-bg-vue",
25
+ "particles-ts",
26
+ "particles.ts",
27
+ "react-particles-js",
28
+ "react-particles.js",
29
+ "react-particles",
30
+ "react",
31
+ "reactjs",
32
+ "vue-particles",
33
+ "ngx-particles",
34
+ "angular-particles",
35
+ "particleground",
36
+ "vue",
37
+ "vuejs",
38
+ "preact",
39
+ "preactjs",
40
+ "jquery",
41
+ "angularjs",
42
+ "angular",
43
+ "typescript",
44
+ "javascript",
45
+ "animation",
46
+ "web",
47
+ "html5",
48
+ "web-design",
49
+ "webdesign",
50
+ "css",
51
+ "html",
52
+ "css3",
53
+ "animated",
54
+ "background",
55
+ "confetti",
56
+ "canvas",
57
+ "fireworks",
58
+ "fireworks-js",
59
+ "confetti-js",
60
+ "confettijs",
61
+ "fireworksjs",
62
+ "canvas-confetti",
63
+ "tsparticles-palette"
64
+ ],
65
+ "author": "Matteo Bruni <matteo.bruni@me.com>",
66
+ "license": "MIT",
67
+ "bugs": {
68
+ "url": "https://github.com/tsparticles/presets/issues"
69
+ },
70
+ "funding": [
71
+ {
72
+ "type": "github",
73
+ "url": "https://github.com/sponsors/matteobruni"
74
+ },
75
+ {
76
+ "type": "github",
77
+ "url": "https://github.com/sponsors/tsparticles"
78
+ },
79
+ {
80
+ "type": "buymeacoffee",
81
+ "url": "https://www.buymeacoffee.com/matteobruni"
82
+ }
83
+ ],
84
+ "jsdelivr": "tsparticles.palette.monochrome-noir.min.js",
85
+ "unpkg": "tsparticles.palette.monochrome-noir.min.js",
86
+ "browser": "browser/index.js",
87
+ "main": "cjs/index.js",
88
+ "module": "esm/index.js",
89
+ "types": "types/index.d.ts",
90
+ "exports": {
91
+ ".": {
92
+ "types": "./types/index.d.ts",
93
+ "browser": "./browser/index.js",
94
+ "import": "./esm/index.js",
95
+ "require": "./cjs/index.js",
96
+ "umd": "./umd/index.js",
97
+ "default": "./cjs/index.js"
98
+ },
99
+ "./package.json": "./package.json"
100
+ },
101
+ "dependencies": {
102
+ "@tsparticles/engine": "^4.0.0-beta.8"
103
+ },
104
+ "publishConfig": {
105
+ "access": "public"
106
+ },
107
+ "type": "module"
108
+ }