@tsparticles/palette-iris 4.0.0-beta.12

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/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,209 @@
1
+ [![banner](https://particles.js.org/images/banner3.png)](https://particles.js.org)
2
+
3
+ # tsParticles Iris Palette
4
+
5
+ [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/@tsparticles/palette-iris/badge)](https://www.jsdelivr.com/package/npm/@tsparticles/palette-iris) [![npmjs](https://badge.fury.io/js/%40tsparticles%2Fpalette-iris.svg)](https://www.npmjs.com/package/@tsparticles/palette-iris) [![npmjs](https://img.shields.io/npm/dt/%40tsparticles%2Fpalette-coloredSmokeAmber)](https://www.npmjs.com/package/@tsparticles/palette-iris) [![GitHub Sponsors](https://img.shields.io/github/sponsors/matteobruni)](https://github.com/sponsors/matteobruni)
6
+
7
+ [tsParticles](https://github.com/tsparticles/tsparticles) palette for colored smoke amber.
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/palettes/main/palettes/fantasy/iris/images/sample.png)](https://particles.js.org/samples/palettes/iris)
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="#1A1000"><rect width="32" height="32" fill="#1A1000" /></svg><br />
24
+ <code>#1A1000</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="#3A2200"><rect width="32" height="32" fill="#3A2200" /></svg><br />
28
+ <code>#3A2200</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="#6B3D00"><rect width="32" height="32" fill="#6B3D00" /></svg><br />
32
+ <code>#6B3D00</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="#A65A00"><rect width="32" height="32" fill="#A65A00" /></svg><br />
36
+ <code>#A65A00</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="#D98A1A"><rect width="32" height="32" fill="#D98A1A" /></svg><br />
40
+ <code>#D98A1A</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="#FFC266"><rect width="32" height="32" fill="#FFC266" /></svg><br />
46
+ <code>#FFC266</code>
47
+ </td>
48
+ <td align="center">
49
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#090500"><rect width="32" height="32" fill="#090500" /></svg><br />
50
+ <code>#090500</code>
51
+ </td>
52
+ <td align="center">
53
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#0A0A0A"><rect width="32" height="32" fill="#0A0A0A" /></svg><br />
54
+ <code>#0A0A0A</code>
55
+ </td>
56
+ <td align="center">
57
+ <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 />
58
+ <code>#F5F7FA</code>
59
+ </td>
60
+ <td align="center">
61
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#90CAF9"><rect width="32" height="32" fill="#90CAF9" /></svg><br />
62
+ <code>#90CAF9</code>
63
+ </td>
64
+ </tr>
65
+ <tr>
66
+ <td align="center">
67
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#5C6BC0"><rect width="32" height="32" fill="#5C6BC0" /></svg><br />
68
+ <code>#5C6BC0</code>
69
+ </td>
70
+ <td align="center">
71
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#7E57C2"><rect width="32" height="32" fill="#7E57C2" /></svg><br />
72
+ <code>#7E57C2</code>
73
+ </td>
74
+ <td align="center">
75
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#EC407A"><rect width="32" height="32" fill="#EC407A" /></svg><br />
76
+ <code>#EC407A</code>
77
+ </td>
78
+ <td align="center">
79
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#FFCA28"><rect width="32" height="32" fill="#FFCA28" /></svg><br />
80
+ <code>#FFCA28</code>
81
+ </td>
82
+ <td align="center">
83
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#26C6DA"><rect width="32" height="32" fill="#26C6DA" /></svg><br />
84
+ <code>#26C6DA</code>
85
+ </td>
86
+ </tr>
87
+ <tr>
88
+ <td align="center">
89
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#FFA500"><rect width="32" height="32" fill="#FFA500" /></svg><br />
90
+ <code>#FFA500</code>
91
+ </td>
92
+ <td align="center">
93
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#FFEFD7"><rect width="32" height="32" fill="#FFEFD7" /></svg><br />
94
+ <code>#FFEFD7</code>
95
+ </td>
96
+ <td align="center">
97
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#000000"><rect width="32" height="32" fill="#000000" /></svg><br />
98
+ <code>#000000</code>
99
+ </td>
100
+ <td align="center">
101
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#FFFFFF"><rect width="32" height="32" fill="#FFFFFF" /></svg><br />
102
+ <code>#FFFFFF</code>
103
+ </td>
104
+ <td align="center">
105
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#F5F5F5"><rect width="32" height="32" fill="#F5F5F5" /></svg><br />
106
+ <code>#F5F5F5</code>
107
+ </td>
108
+ </tr>
109
+ <tr>
110
+ <td align="center">
111
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#1E1E1E"><rect width="32" height="32" fill="#1E1E1E" /></svg><br />
112
+ <code>#1E1E1E</code>
113
+ </td>
114
+ <td align="center">
115
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#252525"><rect width="32" height="32" fill="#252525" /></svg><br />
116
+ <code>#252525</code>
117
+ </td>
118
+ <td align="center">
119
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#E0E0E0"><rect width="32" height="32" fill="#E0E0E0" /></svg><br />
120
+ <code>#E0E0E0</code>
121
+ </td>
122
+ <td align="center">
123
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#A0A0A0"><rect width="32" height="32" fill="#A0A0A0" /></svg><br />
124
+ <code>#A0A0A0</code>
125
+ </td>
126
+ <td align="center">
127
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#404040"><rect width="32" height="32" fill="#404040" /></svg><br />
128
+ <code>#404040</code>
129
+ </td>
130
+ </tr>
131
+ <tr>
132
+ <td align="center">
133
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#1D3557"><rect width="32" height="32" fill="#1D3557" /></svg><br />
134
+ <code>#1D3557</code>
135
+ </td>
136
+ </tr>
137
+ <tr>
138
+ <td colspan="5" align="center">
139
+ <svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#1A1000"><rect width="40" height="40" fill="#1A1000" /></svg><br />
140
+ <strong>Background</strong><br />
141
+ <code>#1A1000</code>
142
+ </td>
143
+ </tr>
144
+ <tr>
145
+ <td colspan="5" align="center">
146
+ <strong>Blend mode:</strong> <code>source-over</code> | <strong>Fill:</strong> <code>true</code>
147
+ </td>
148
+ </tr>
149
+ </tbody>
150
+ </table>
151
+ ## Quick checklist
152
+
153
+ 1. Install `@tsparticles/engine` (or use the CDN bundle below)
154
+ 2. Load a base package (for example `@tsparticles/basic`) and call `loadIrisPalette` before `tsParticles.load(...)`
155
+ 3. Apply the palette plus a minimal particles configuration in your options
156
+
157
+ A palette defines colors, not complete behavior, so pair it with a runtime package and particle options.
158
+
159
+ ## How to use it
160
+
161
+ ### CDN / Vanilla JS / jQuery
162
+
163
+ ```html
164
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/basic@4/tsparticles.basic.bundle.min.js"></script>
165
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/palette-iris@4/tsparticles.palette-coloredSmokeAmber.min.js"></script>
166
+ ```
167
+
168
+ ### Usage
169
+
170
+ Once the scripts are loaded you can set up `tsParticles` like this:
171
+
172
+ ```javascript
173
+ (async engine => {
174
+ await loadBasic(engine);
175
+ await loadIrisPalette(engine);
176
+
177
+ const options = {
178
+ particles: {
179
+ number: { value: 200 },
180
+ shape: { type: "circle" },
181
+ size: { value: { min: 10, max: 15 } },
182
+ move: {
183
+ enable: true,
184
+ speed: 2,
185
+ },
186
+ },
187
+ palette: "iris",
188
+ };
189
+
190
+ await engine.load({
191
+ id: "tsparticles",
192
+ options,
193
+ });
194
+ })(tsParticles);
195
+ ```
196
+
197
+ #### Customization
198
+
199
+ **Important ⚠️**
200
+ You can override all the options defining the properties like in any standard `tsParticles` installation.
201
+
202
+ ### Frameworks with a tsParticles component library
203
+
204
+ Checkout the documentation in the component library repository and call the `loadIrisPalette` function.
205
+
206
+ ## Related docs
207
+
208
+ - Presets and palettes catalog: <https://github.com/tsparticles/palettes>
209
+ - Main docs: <https://particles.js.org/docs/>
@@ -0,0 +1,7 @@
1
+ import { options } from "./options.js";
2
+ const paletteName = "iris";
3
+ export async function loadIrisPalette(engine) {
4
+ await engine.pluginManager.register(e => {
5
+ e.pluginManager.addPalette(paletteName, options);
6
+ });
7
+ }
@@ -0,0 +1,7 @@
1
+ import { options } from "./options.js";
2
+ const paletteName = "iris";
3
+ export async function loadIrisPalette(engine) {
4
+ await engine.pluginManager.register(e => {
5
+ e.pluginManager.addPalette(paletteName, options);
6
+ });
7
+ }
@@ -0,0 +1,19 @@
1
+ export const options = {
2
+ name: "Iris",
3
+ background: "#0a0a0a",
4
+ blendMode: "screen",
5
+ colors: {
6
+ fill: {
7
+ enable: true,
8
+ value: [
9
+ "#F5F7FA",
10
+ "#90CAF9",
11
+ "#5C6BC0",
12
+ "#7E57C2",
13
+ "#EC407A",
14
+ "#FFCA28",
15
+ "#26C6DA",
16
+ ],
17
+ },
18
+ },
19
+ };
@@ -0,0 +1 @@
1
+ { "type": "module" }
package/cjs/index.js ADDED
@@ -0,0 +1,7 @@
1
+ import { options } from "./options.js";
2
+ const paletteName = "iris";
3
+ export async function loadIrisPalette(engine) {
4
+ await engine.pluginManager.register(e => {
5
+ e.pluginManager.addPalette(paletteName, options);
6
+ });
7
+ }
@@ -0,0 +1,7 @@
1
+ import { options } from "./options.js";
2
+ const paletteName = "iris";
3
+ export async function loadIrisPalette(engine) {
4
+ await engine.pluginManager.register(e => {
5
+ e.pluginManager.addPalette(paletteName, options);
6
+ });
7
+ }
package/cjs/options.js ADDED
@@ -0,0 +1,19 @@
1
+ export const options = {
2
+ name: "Iris",
3
+ background: "#0a0a0a",
4
+ blendMode: "screen",
5
+ colors: {
6
+ fill: {
7
+ enable: true,
8
+ value: [
9
+ "#F5F7FA",
10
+ "#90CAF9",
11
+ "#5C6BC0",
12
+ "#7E57C2",
13
+ "#EC407A",
14
+ "#FFCA28",
15
+ "#26C6DA",
16
+ ],
17
+ },
18
+ },
19
+ };
@@ -0,0 +1 @@
1
+ { "type": "commonjs" }
package/esm/index.js ADDED
@@ -0,0 +1,7 @@
1
+ import { options } from "./options.js";
2
+ const paletteName = "iris";
3
+ export async function loadIrisPalette(engine) {
4
+ await engine.pluginManager.register(e => {
5
+ e.pluginManager.addPalette(paletteName, options);
6
+ });
7
+ }
@@ -0,0 +1,7 @@
1
+ import { options } from "./options.js";
2
+ const paletteName = "iris";
3
+ export async function loadIrisPalette(engine) {
4
+ await engine.pluginManager.register(e => {
5
+ e.pluginManager.addPalette(paletteName, options);
6
+ });
7
+ }
package/esm/options.js ADDED
@@ -0,0 +1,19 @@
1
+ export const options = {
2
+ name: "Iris",
3
+ background: "#0a0a0a",
4
+ blendMode: "screen",
5
+ colors: {
6
+ fill: {
7
+ enable: true,
8
+ value: [
9
+ "#F5F7FA",
10
+ "#90CAF9",
11
+ "#5C6BC0",
12
+ "#7E57C2",
13
+ "#EC407A",
14
+ "#FFCA28",
15
+ "#26C6DA",
16
+ ],
17
+ },
18
+ },
19
+ };
@@ -0,0 +1 @@
1
+ { "type": "module" }
package/package.json ADDED
@@ -0,0 +1,117 @@
1
+ {
2
+ "name": "@tsparticles/palette-iris",
3
+ "version": "4.0.0-beta.12",
4
+ "description": "tsParticles iris palette",
5
+ "homepage": "https://particles.js.org",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/tsparticles/tsparticles.git",
9
+ "directory": "palettes/fantasy/iris"
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/palettes/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
+ "sideEffects": false,
85
+ "browser": "browser/index.js",
86
+ "main": "cjs/index.js",
87
+ "module": "esm/index.js",
88
+ "types": "types/index.d.ts",
89
+ "exports": {
90
+ ".": {
91
+ "types": "./types/index.d.ts",
92
+ "browser": "./browser/index.js",
93
+ "import": "./esm/index.js",
94
+ "require": "./cjs/index.js",
95
+ "umd": "./umd/index.js",
96
+ "default": "./cjs/index.js"
97
+ },
98
+ "./package.json": "./package.json",
99
+ "./lazy": {
100
+ "types": "./types/index.lazy.d.ts",
101
+ "browser": "./browser/index.lazy.js",
102
+ "import": "./esm/index.lazy.js",
103
+ "require": "./cjs/index.lazy.js",
104
+ "umd": "./umd/index.lazy.js",
105
+ "default": "./cjs/index.lazy.js"
106
+ }
107
+ },
108
+ "dependencies": {
109
+ "@tsparticles/engine": "4.0.0-beta.12"
110
+ },
111
+ "type": "module",
112
+ "jsdelivr": "tsparticles.palette-colored-smoke-amber.min.js",
113
+ "unpkg": "tsparticles.palette-colored-smoke-amber.min.js",
114
+ "publishConfig": {
115
+ "access": "public"
116
+ }
117
+ }