Talk:Skin math

From TrillWiki

Jump to: navigation, search

[edit] Arithmetic Bugs

Arithmetic not working in the defaultx and defaulty parameters of containers. This is useful in creating framebars. Workaround not yet discovered

[edit] Suggestions

Operator Description ESL Supported
condition?truepart:falsepart Ternary Operator. Will be useful with proposed %Text.*% variables. example

(Ooooh... good suggestion. I forgot about that -Tom)

no
& / | Bitwise AND / OR might be useful for doing things like storing an entire set of attributes in a single entity, such as having bits for 'bold', 'italic', 'visible', etc. However, I doubt most skinners would use this feature if available. I doubt most of them even know what the difference is. no
min(a,b) / max(a,b) Might simplify some skinMath not currently used yet. Might be useful for making parts that move when the size of a topic changes (bounded) yes
val1 mod val2 / mod(val1,val2) returns the remainder of val1/val2 yes

[edit] Other ESL supported syntax:

One Variable Functions: tan, sin, cos, sinh, cosh, arctan, cotan, arg, exp, ln, log10, log2, sqrt, abs, trunc, int, ceil, floor, heav, sign, zero, ph, rnd, random, not

Two Variable Functions: equals, notequals, lt, lte, gt, gte, power, intpower, log

Moved not() down here from the table, since Trillian already has a not operator, ! --Tometheus 14:49, 20 June 2006 (CDT)
Personal tools