-
Notifications
You must be signed in to change notification settings - Fork 0
Effects
JongWasTaken edited this page Aug 16, 2024
·
8 revisions
This page lists all available effects and their respective arguments.
| Effect | Description |
|---|---|
background |
Fills the background with a solid color. |
background-random |
Fills the background with a randomized palette derived from a color. |
background-texture |
Fills the background with a texture. |
rectangle |
Draws a colored rectangle at the specified position. |
circle |
Draws a colored circle at the specified position. |
line |
Draws a colored line at the specified position. |
frame |
Draws a colored border around the final image. |
texture |
Draws a texture at the specified position. |
book-content |
Placeholder for actual book content. Use this to change the final layering. |
Effect arguments are always separated with a comma, like this:
e:circle,0,0,100,100,white,yes
| Argument | Required? | Description |
|---|---|---|
color |
yes | Color |
effect:background,red
| Argument | Required? | Description |
|---|---|---|
color |
yes | Color |
effect:background-random,green
⚠️ Needs additional setup: Server owners should make sure to set this up correctly!
| Argument | Required? | Description |
|---|---|---|
filename |
yes | Name of PNG file |
tile |
no | If enabled, will tile texture instead of stretching it |
tileSizeMultiplier |
no | Size multiplier for each tile, e.g. a 32x32 texture with a tile size multiplier of 4 will be 128x128 per tile |
effect:background-texture,stone_bricks
effect:background-texture,stone,true,8
effect:background-texture,obsidian,true
| Argument | Required? | Description |
|---|---|---|
color |
yes | Color |
x |
yes | X position in pixels |
y |
yes | Y position in pixels |
width |
yes | Width in pixels |
height |
yes | Height in pixels |
hollow |
no | Should the rectangle be hollow? |
effect:rectangle,green,50,50,110,110,yes
| Argument | Required? | Description |
|---|---|---|
color |
yes | Color |
x |
yes | X position in pixels |
y |
yes | Y position in pixels |
width |
yes | Width in pixels |
height |
yes | Height in pixels |
hollow |
no | Should the circle be hollow? |
effect:circle,green,50,50,110,110,yes
| Argument | Required? | Description |
|---|---|---|
color |
yes | Color |
x1 |
yes | X starting position in pixels |
y1 |
yes | Y starting position in pixels |
x2 |
yes | X ending position in pixels |
y2 |
yes | Y ending position in pixels |
effect:line,grey,0,50,200,55
| Argument | Required? | Description |
|---|---|---|
color |
yes | Color |
thickness |
no | Thickness in pixels |
effect:frame,yellow,4
⚠️ Needs additional setup: Server owners should make sure to set this up correctly!
| Argument | Required? | Description |
|---|---|---|
filename |
yes | Name of PNG file |
x |
yes | X position |
y |
yes | Y position |
width |
yes | Desired width of the texture |
height |
yes | Desired height of the texture |
effect:texture,stone,50,50,32,32
This effect has no arguments.
effect:book-content