Texture¶
Just, texture. To render walls, floors or particles. It can be as PNG file or solid colid.
Properties¶
-
property
color
:
#RGB | #RRGGBB | rgb(red, green, blue);
Just solid color. It fills whole wall or floor.
- Type #RRGGBB
Color in HEX format. More info: https://www.w3schools.com/css/css_colors_hex.asp
- Type #RGB
shortcut HEX format. Transforms
#123
into#112233
- Type rgb(red, green, blue)
Color in decimal format. Each color is a value from 0 to 255. More info: https://www.w3schools.com/css/css_colors_rgb.asp
-
property
texture
:
STRING;
Relative filepath to PNG file. Transparent color is not alpha channel (alpha channel is ignored, sorry
;_;
) but is a#FF0000
color.
Examples¶
tex.color {
color: #FFF;
}
tex.texture {
texture: "relative/filepath.png";
}
More examples: https://pixelopolis.herokuapp.com/examples/Textures/Textures