This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
4rpl:commands:setthemeoverlaypixels [2021/02/12 02:14] – Karsten75 | 4rpl:commands:setthemeoverlaypixels [2025/02/14 14:57] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 4: | Line 4: | ||
:!: Available in version 1.3 and later. | :!: Available in version 1.3 and later. | ||
====== SetThemeOverlayPixels ====== | ====== SetThemeOverlayPixels ====== | ||
- | SetThemeOverlayPixels(< | + | SetThemeOverlayPixels(< |
===== Description ===== | ===== Description ===== | ||
Sets a block of pixels in the theme overlay texture. The overlayNumber should be 0 or 1.\\ | Sets a block of pixels in the theme overlay texture. The overlayNumber should be 0 or 1.\\ | ||
- | The targetX and targetY | + | The targetX and targetZ |
The blockWidth and blockHeight specify the width and height of the pixelData.\\ | The blockWidth and blockHeight specify the width and height of the pixelData.\\ | ||
The pixelData is a list of color values. It's length should be blockWidth * blockHeight.\\ | The pixelData is a list of color values. It's length should be blockWidth * blockHeight.\\ | ||
- | The colors in the pixelData are V4 values and the 4th field is treated as the transparency (alpha) value. If the alpha value is higher than 1, this is interpreted as a special value meaning to not apply the pixel. This allows for pixel values within blocks that will not be applied to the overlay texture (the pixels in the overlay texture will remain undisturbed). | + | The colors in the pixelData are V4 values and the 4th field is treated as the transparency (alpha) value. |
+ | |||
+ | An alpha value of 0 is transparent, | ||
===== Examples ===== | ===== Examples ===== |