Skip to main content

Number

The Number type represents a number. In Easel, numbers are stored as 32-bit floating point number.

123
456.789
-456

Durations

Durations of time are represented in ticks (where the are 60 ticks per second, which you can access in-code using the TicksPerSecond constant). You can also use the s, m, h and d suffixes to specify seconds, minutes, hours and days respectively.

90 // 90 ticks
1.5s // 1.5 seconds = 90 ticks
30m // 30 minutes
3.5h // 3.5 hours
45d // 45 days

Angles

Angles are represented in radians. You can use the deg or rev suffixes to specify degrees or revolutions respectively.

1.571 // 1.571 radians
90deg // 90 degrees = 1.571 radians
0.25rev // 0.25 revolutions or turns = 1.571 radians