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

# tsParticles Minecraft Palette

[![jsDelivr](https://data.jsdelivr.com/v1/package/npm/@tsparticles/palette-minecraft/badge)](https://www.jsdelivr.com/package/npm/@tsparticles/palette-minecraft) [![npmjs](https://badge.fury.io/js/%40tsparticles%2Fpalette-minecraft.svg)](https://www.npmjs.com/package/@tsparticles/palette-minecraft) [![npmjs](https://img.shields.io/npm/dt/%40tsparticles%2Fpalette-minecraft)](https://www.npmjs.com/package/@tsparticles/palette-minecraft) [![GitHub Sponsors](https://img.shields.io/github/sponsors/matteobruni)](https://github.com/sponsors/matteobruni)

[tsParticles](https://github.com/tsparticles/tsparticles) palette with all 16 Minecraft dye colors.

[![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/minecraft/images/sample.png)](https://particles.js.org/samples/palettes/minecraft)

## Colors

All 16 Minecraft dyes:

<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="#F9FFFE"><rect width="32" height="32" fill="#F9FFFE" /></svg><br />
        <code>#F9FFFE</code><br />
        White
      </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="#9D9D97"><rect width="32" height="32" fill="#9D9D97" /></svg><br />
        <code>#9D9D97</code><br />
        Light Gray
      </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="#474F52"><rect width="32" height="32" fill="#474F52" /></svg><br />
        <code>#474F52</code><br />
        Gray
      </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="#1D1D21"><rect width="32" height="32" fill="#1D1D21" /></svg><br />
        <code>#1D1D21</code><br />
        Black
      </td>
    </tr>
    <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="#835432"><rect width="32" height="32" fill="#835432" /></svg><br />
        <code>#835432</code><br />
        Brown
      </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="#B02E26"><rect width="32" height="32" fill="#B02E26" /></svg><br />
        <code>#B02E26</code><br />
        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="#F9801D"><rect width="32" height="32" fill="#F9801D" /></svg><br />
        <code>#F9801D</code><br />
        Orange
      </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="#FED83D"><rect width="32" height="32" fill="#FED83D" /></svg><br />
        <code>#FED83D</code><br />
        Yellow
      </td>
    </tr>
    <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="#80C71F"><rect width="32" height="32" fill="#80C71F" /></svg><br />
        <code>#80C71F</code><br />
        Lime
      </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="#5E7C16"><rect width="32" height="32" fill="#5E7C16" /></svg><br />
        <code>#5E7C16</code><br />
        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="#169C9C"><rect width="32" height="32" fill="#169C9C" /></svg><br />
        <code>#169C9C</code><br />
        Cyan
      </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="#3AB3DA"><rect width="32" height="32" fill="#3AB3DA" /></svg><br />
        <code>#3AB3DA</code><br />
        Light Blue
      </td>
    </tr>
    <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="#3C44AA"><rect width="32" height="32" fill="#3C44AA" /></svg><br />
        <code>#3C44AA</code><br />
        Blue
      </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="#8932B8"><rect width="32" height="32" fill="#8932B8" /></svg><br />
        <code>#8932B8</code><br />
        Purple
      </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="#C74EBD"><rect width="32" height="32" fill="#C74EBD" /></svg><br />
        <code>#C74EBD</code><br />
        Magenta
      </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="#F38BAA"><rect width="32" height="32" fill="#F38BAA" /></svg><br />
        <code>#F38BAA</code><br />
        Pink
      </td>
    </tr>
    <tr>
      <td colspan="4" align="center">
        <svg width="40" height="40" viewBox="0 0 40 40" xmlns="http://www.w3.org/2000/svg" role="img" aria-label="#21212B"><rect width="40" height="40" fill="#21212B" /></svg><br />
        <strong>Background</strong><br />
        <code>#21212B</code>
      </td>
    </tr>
    <tr>
      <td colspan="4" 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 `loadMinecraftPalette` 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-minecraft@4/tsparticles.palette-palette-minecraft.min.js"></script>
```

### Usage

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

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

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

  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 `loadMinecraftPalette` function.

## Related docs

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