Skip to content

Commit

Permalink
docs: Add alpha warning
Browse files Browse the repository at this point in the history
  • Loading branch information
eonarheim committed Nov 16, 2024
1 parent 8020560 commit 872132d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion site/docs/04-graphics/04.6-nineslice.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ slug: /nineslice
section: Graphics
---

:::warning

🧪 Available in the v0.30.0 Alpha

:::

## Overview

The NineSlice is a Graphic which uses a 2D technique allowing for reuse of an image at various sizes without needing to prepare multiple assets. The process includes taking an input sprite texture, and splitting it into 9 sections, which then can be repainted in a new sprite texture without scaling or distorting the texture. This is very useful in game development for UI panels or buttons or textured platforms.
Expand All @@ -20,7 +26,7 @@ Then based on your output parameters specified it will 'redraw' this texture to

You can set parameters under `sourceConfig` properties to control the margins. This lets you dial in where the module 'slices' your texture up. For example, with the example 64 pixel x 64 pixel sprite, we can set the top/bottom margins to 5 pixels, and the left/right margins to 6 pixels to get this slicing.

![sliced ](sliced.png)
![sliced](sliced.png)

## Configuration

Expand Down

0 comments on commit 872132d

Please sign in to comment.