@tsparticles/palette-super-mario-bros 4.0.0-beta.16

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,121 @@
1
+ [![banner](https://particles.js.org/images/banner3.png)](https://particles.js.org)
2
+
3
+ # tsParticles Super Mario Bros Palette
4
+
5
+ [![jsDelivr](https://data.jsdelivr.com/v1/package/npm/@tsparticles/palette-super-mario-bros/badge)](https://www.jsdelivr.com/package/npm/@tsparticles/palette-super-mario-bros) [![npmjs](https://badge.fury.io/js/%40tsparticles%2Fpalette-super-mario-bros.svg)](https://www.npmjs.com/package/@tsparticles/palette-super-mario-bros) [![npmjs](https://img.shields.io/npm/dt/%40tsparticles%2Fpalette-super-mario-bros)](https://www.npmjs.com/package/@tsparticles/palette-super-mario-bros) [![GitHub Sponsors](https://img.shields.io/github/sponsors/matteobruni)](https://github.com/sponsors/matteobruni)
6
+
7
+ [tsParticles](https://github.com/tsparticles/tsparticles) palette inspired by the classic Super Mario Bros game.
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/gaming/super-mario-bros/images/sample.png)](https://particles.js.org/samples/palettes/super-mario-bros)
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="#D13D2E"><rect width="32" height="32" fill="#D13D2E" /></svg><br />
24
+ <code>#D13D2E</code><br />
25
+ Mario Red
26
+ </td>
27
+ <td align="center">
28
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#5AA345"><rect width="32" height="32" fill="#5AA345" /></svg><br />
29
+ <code>#5AA345</code><br />
30
+ Pipe Green
31
+ </td>
32
+ <td align="center">
33
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#EC6486"><rect width="32" height="32" fill="#EC6486" /></svg><br />
34
+ <code>#EC6486</code><br />
35
+ Pink
36
+ </td>
37
+ <td align="center">
38
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#F3CB4E"><rect width="32" height="32" fill="#F3CB4E" /></svg><br />
39
+ <code>#F3CB4E</code><br />
40
+ Coin Yellow
41
+ </td>
42
+ <td align="center">
43
+ <svg width="32" height="32" viewBox="0 0 32 32" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#4B2197"><rect width="32" height="32" fill="#4B2197" /></svg><br />
44
+ <code>#4B2197</code><br />
45
+ Purple
46
+ </td>
47
+ </tr>
48
+ <tr>
49
+ <td colspan="5" align="center">
50
+ <svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#1B2A4A"><rect width="40" height="40" fill="#1B2A4A" /></svg><br />
51
+ <strong>Background</strong><br />
52
+ <code>#1B2A4A</code>
53
+ </td>
54
+ </tr>
55
+ <tr>
56
+ <td colspan="5" align="center">
57
+ <strong>Blend mode:</strong> <code>screen</code> | <strong>Fill:</strong> <code>true</code>
58
+ </td>
59
+ </tr>
60
+ </tbody>
61
+ </table>
62
+
63
+ ## Quick checklist
64
+
65
+ 1. Install `@tsparticles/engine` (or use the CDN bundle below)
66
+ 2. Load a base package (for example `@tsparticles/basic`) and call `loadSuperMarioBrosPalette` before `tsParticles.load(...)`
67
+ 3. Apply the palette plus a minimal particles configuration in your options
68
+
69
+ A palette defines colors, not complete behavior, so pair it with a runtime package and particle options.
70
+
71
+ ## How to use it
72
+
73
+ ### CDN / Vanilla JS / jQuery
74
+
75
+ ```html
76
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/basic@4/tsparticles.basic.bundle.min.js"></script>
77
+ <script src="https://cdn.jsdelivr.net/npm/@tsparticles/palette-super-mario-bros@4/tsparticles.palette-palette-super-mario-bros.min.js"></script>
78
+ ```
79
+
80
+ ### Usage
81
+
82
+ Once the scripts are loaded you can set up `tsParticles` like this:
83
+
84
+ ```javascript
85
+ (async engine => {
86
+ await loadBasic(engine);
87
+ await loadSuperMarioBrosPalette(engine);
88
+
89
+ const options = {
90
+ particles: {
91
+ number: { value: 200 },
92
+ shape: { type: "circle" },
93
+ size: { value: { min: 10, max: 15 } },
94
+ move: {
95
+ enable: true,
96
+ speed: 2,
97
+ },
98
+ },
99
+ palette: "super-mario-bros",
100
+ };
101
+
102
+ await engine.load({
103
+ id: "tsparticles",
104
+ options,
105
+ });
106
+ })(tsParticles);
107
+ ```
108
+
109
+ #### Customization
110
+
111
+ **Important ⚠️**
112
+ You can override all the options defining the properties like in any standard `tsParticles` installation.
113
+
114
+ ### Frameworks with a tsParticles component library
115
+
116
+ Checkout the documentation in the component library repository and call the `loadSuperMarioBrosPalette` function.
117
+
118
+ ## Related docs
119
+
120
+ - Presets and palettes catalog: <https://github.com/tsparticles/palettes>
121
+ - Main docs: <https://particles.js.org/docs/>
@@ -0,0 +1,5 @@
1
+ import { loadSuperMarioBrosPalette } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadSuperMarioBrosPalette = loadSuperMarioBrosPalette;
5
+ export * from "./index.js";
@@ -0,0 +1,7 @@
1
+ import { options } from "./options.js";
2
+ const paletteName = "super-mario-bros";
3
+ export async function loadSuperMarioBrosPalette(engine) {
4
+ await engine.pluginManager.register(e => {
5
+ e.pluginManager.addPalette(paletteName, options);
6
+ });
7
+ }
@@ -0,0 +1,7 @@
1
+ const paletteName = "super-mario-bros";
2
+ export async function loadSuperMarioBrosPalette(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,17 @@
1
+ export const options = {
2
+ name: "Super Mario Bros",
3
+ background: "#1B2A4A",
4
+ blendMode: "screen",
5
+ colors: {
6
+ fill: {
7
+ enable: true,
8
+ value: [
9
+ "#D13D2E",
10
+ "#5AA345",
11
+ "#EC6486",
12
+ "#F3CB4E",
13
+ "#4B2197",
14
+ ],
15
+ },
16
+ },
17
+ };
@@ -0,0 +1 @@
1
+ { "type": "module" }
package/cjs/browser.js ADDED
@@ -0,0 +1,5 @@
1
+ import { loadSuperMarioBrosPalette } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadSuperMarioBrosPalette = loadSuperMarioBrosPalette;
5
+ export * from "./index.js";
package/cjs/index.js ADDED
@@ -0,0 +1,7 @@
1
+ import { options } from "./options.js";
2
+ const paletteName = "super-mario-bros";
3
+ export async function loadSuperMarioBrosPalette(engine) {
4
+ await engine.pluginManager.register(e => {
5
+ e.pluginManager.addPalette(paletteName, options);
6
+ });
7
+ }
@@ -0,0 +1,7 @@
1
+ const paletteName = "super-mario-bros";
2
+ export async function loadSuperMarioBrosPalette(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,17 @@
1
+ export const options = {
2
+ name: "Super Mario Bros",
3
+ background: "#1B2A4A",
4
+ blendMode: "screen",
5
+ colors: {
6
+ fill: {
7
+ enable: true,
8
+ value: [
9
+ "#D13D2E",
10
+ "#5AA345",
11
+ "#EC6486",
12
+ "#F3CB4E",
13
+ "#4B2197",
14
+ ],
15
+ },
16
+ },
17
+ };
@@ -0,0 +1 @@
1
+ { "type": "commonjs" }
package/esm/browser.js ADDED
@@ -0,0 +1,5 @@
1
+ import { loadSuperMarioBrosPalette } from "./index.js";
2
+ const globalObject = globalThis;
3
+ globalObject.__tsParticlesInternals = globalObject.__tsParticlesInternals ?? {};
4
+ globalObject.loadSuperMarioBrosPalette = loadSuperMarioBrosPalette;
5
+ export * from "./index.js";
package/esm/index.js ADDED
@@ -0,0 +1,7 @@
1
+ import { options } from "./options.js";
2
+ const paletteName = "super-mario-bros";
3
+ export async function loadSuperMarioBrosPalette(engine) {
4
+ await engine.pluginManager.register(e => {
5
+ e.pluginManager.addPalette(paletteName, options);
6
+ });
7
+ }
@@ -0,0 +1,7 @@
1
+ const paletteName = "super-mario-bros";
2
+ export async function loadSuperMarioBrosPalette(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,17 @@
1
+ export const options = {
2
+ name: "Super Mario Bros",
3
+ background: "#1B2A4A",
4
+ blendMode: "screen",
5
+ colors: {
6
+ fill: {
7
+ enable: true,
8
+ value: [
9
+ "#D13D2E",
10
+ "#5AA345",
11
+ "#EC6486",
12
+ "#F3CB4E",
13
+ "#4B2197",
14
+ ],
15
+ },
16
+ },
17
+ };
@@ -0,0 +1 @@
1
+ { "type": "module" }
package/package.json ADDED
@@ -0,0 +1,119 @@
1
+ {
2
+ "name": "@tsparticles/palette-super-mario-bros",
3
+ "version": "4.0.0-beta.16",
4
+ "description": "tsParticles super mario bros palette",
5
+ "homepage": "https://particles.js.org",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/tsparticles/tsparticles.git",
9
+ "directory": "palettes/gaming/super-mario-bros"
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
+ "super-mario-bros",
65
+ "gaming"
66
+ ],
67
+ "author": "Matteo Bruni <matteo.bruni@me.com>",
68
+ "license": "MIT",
69
+ "bugs": {
70
+ "url": "https://github.com/tsparticles/palettes/issues"
71
+ },
72
+ "funding": [
73
+ {
74
+ "type": "github",
75
+ "url": "https://github.com/sponsors/matteobruni"
76
+ },
77
+ {
78
+ "type": "github",
79
+ "url": "https://github.com/sponsors/tsparticles"
80
+ },
81
+ {
82
+ "type": "buymeacoffee",
83
+ "url": "https://www.buymeacoffee.com/matteobruni"
84
+ }
85
+ ],
86
+ "sideEffects": false,
87
+ "browser": "browser/index.js",
88
+ "main": "cjs/index.js",
89
+ "module": "esm/index.js",
90
+ "types": "types/index.d.ts",
91
+ "exports": {
92
+ ".": {
93
+ "types": "./types/index.d.ts",
94
+ "browser": "./browser/index.js",
95
+ "import": "./esm/index.js",
96
+ "require": "./cjs/index.js",
97
+ "umd": "./umd/index.js",
98
+ "default": "./cjs/index.js"
99
+ },
100
+ "./package.json": "./package.json",
101
+ "./lazy": {
102
+ "types": "./types/index.lazy.d.ts",
103
+ "browser": "./browser/index.lazy.js",
104
+ "import": "./esm/index.lazy.js",
105
+ "require": "./cjs/index.lazy.js",
106
+ "umd": "./umd/index.lazy.js",
107
+ "default": "./cjs/index.lazy.js"
108
+ }
109
+ },
110
+ "dependencies": {
111
+ "@tsparticles/engine": "4.0.0-beta.16"
112
+ },
113
+ "type": "module",
114
+ "jsdelivr": "tsparticles.palette-palette-super-mario-bros.min.js",
115
+ "unpkg": "tsparticles.palette-palette-super-mario-bros.min.js",
116
+ "publishConfig": {
117
+ "access": "public"
118
+ }
119
+ }