Support angle unit conversion. add trig functions. don't compress angle unit. add mod and abs. Fixes #858 and fixes #240

This commit is contained in:
Luke Page
2013-01-06 13:01:10 +00:00
parent 703aa928fc
commit d5bb30b4db
6 changed files with 70 additions and 15 deletions

View File

@@ -1,2 +1,2 @@
#colours{color1:#fea;color2:#fea;color3:rgba(255,238,170,0.1);string:"#ffeeaa"}
dimensions{val:.1px;val:0;val:4cm;val:.2;val:5}
dimensions{val:.1px;val:0;val:4cm;val:.2;val:5;angles-must-have-unit:0deg}

View File

@@ -59,6 +59,15 @@
ceil: 11px;
floor: 12px;
sqrt: 5px;
pi: 3.141592653589793;
mod: 2m;
abs: 4%;
tan: 0.8390996311772799;
sin: 0.17364817766693033;
cos: 0.8438539587324921;
atan: 0.1rad;
atan: 34.00000000000001deg;
atan: 45.00000000000001deg;
percentage: 20%;
color: #ff0011;
tint: #898989;