Tech/LxEngine/Archive/Stylization
From Athile
This page is a work-in-progress. It is not yet complete.
It may contain inaccurate, incorrect information. Use at your own risk.
It may contain inaccurate, incorrect information. Use at your own risk.
The stylization model is based on the Cascading Stylesheets (CSS) specification aimed at web-browsers. The intent is that developers familiar with CSS will be immediately comfortable with the LxEngine stylization scheme.
Contents |
Display
display
controls whether the element is visible or not
- inherit (default)
- <boolean>
color
primary color of the object.
- <color> <op> <op_arg>
- #aa33cc
- red
- rgb(128,32,164)
- red blend .5
- red add .25
- red max_r
› Question : How does this affect something like a checker pattern? Is this a blend or an override?
› Question : How exactly does the op work?
opacity
alpha
- <alpha> <op>
- 0.0 - 1.0
- x%
- op = set, mul, max, min, add, sub, div
max_extent
If set on a Ref element, the source Mesh will be scaled to be no larger than this length in any axial direction (i.e. the resulting bounding box width, length, and height will be <= this value).
- none (default)
- <float>
Physics
restitution
controls "bounciness' of the object
- inherit (default)
- <float 0.0 to 1.0>
Sound
Serialization
persistent
Controls whether an element is saved if the document is saved.
- inherit (default)
- <boolean>