[![banner](https://particles.js.org/images/banner3.png)](https://particles.js.org)

# tsParticles Super Mario Bros Palette

[![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)

[tsParticles](https://github.com/tsparticles/tsparticles) palette inspired by the classic Super Mario Bros game.

[![Discord](https://particles.js.org/images/discord.png)](https://discord.gg/hACwv45Hme) [![Telegram](https://particles.js.org/images/telegram.png)](https://t.me/tsparticles)

[![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>

## Sample

[![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)

## Colors

<table>
  <tbody>
    <tr>
      <td align="center">
        <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 />
        <code>#D13D2E</code><br />
        Mario Red
      </td>
      <td align="center">
        <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 />
        <code>#5AA345</code><br />
        Pipe Green
      </td>
      <td align="center">
        <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 />
        <code>#EC6486</code><br />
        Pink
      </td>
      <td align="center">
        <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 />
        <code>#F3CB4E</code><br />
        Coin Yellow
      </td>
      <td align="center">
        <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 />
        <code>#4B2197</code><br />
        Purple
      </td>
    </tr>
    <tr>
      <td colspan="5" align="center">
        <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 />
        <strong>Background</strong><br />
        <code>#1B2A4A</code>
      </td>
    </tr>
    <tr>
      <td colspan="5" align="center">
        <strong>Blend mode:</strong> <code>screen</code> | <strong>Fill:</strong> <code>true</code>
      </td>
    </tr>
  </tbody>
</table>

## Quick checklist

1. Install `@tsparticles/engine` (or use the CDN bundle below)
2. Load a base package (for example `@tsparticles/basic`) and call `loadSuperMarioBrosPalette` before `tsParticles.load(...)`
3. Apply the palette plus a minimal particles configuration in your options

A palette defines colors, not complete behavior, so pair it with a runtime package and particle options.

## How to use it

### CDN / Vanilla JS / jQuery

```html
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/basic@4/tsparticles.basic.bundle.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tsparticles/palette-super-mario-bros@4/tsparticles.palette-palette-super-mario-bros.min.js"></script>
```

### Usage

Once the scripts are loaded you can set up `tsParticles` like this:

```javascript
(async engine => {
  await loadBasic(engine);
  await loadSuperMarioBrosPalette(engine);

  const options = {
    particles: {
      number: { value: 200 },
      shape: { type: "circle" },
      size: { value: { min: 10, max: 15 } },
      move: {
        enable: true,
        speed: 2,
      },
    },
    palette: "super-mario-bros",
  };

  await engine.load({
    id: "tsparticles",
    options,
  });
})(tsParticles);
```

#### Customization

**Important ⚠️**
You can override all the options defining the properties like in any standard `tsParticles` installation.

### Frameworks with a tsParticles component library

Checkout the documentation in the component library repository and call the `loadSuperMarioBrosPalette` function.

## Related docs

- Presets and palettes catalog: <https://github.com/tsparticles/palettes>
- Main docs: <https://particles.js.org/docs/>
