# XojoScript functions

This topic describes the functions you can use with XojoScript and IDE Scripting.

You can provide your own global methods and functions by using the Context property of the XojoScript object.

## Functions

Scripts can use these functions which work as specified in the Documentation.

### Color

- `Color.CMY<color.cmy>`
- `Color.HSV<color.hsv>`
- `Color.RGB<color.rgb>`
- all supported Color constants like Color.Red, Color.White, etc.

### Math

- `Abs</api/math/abs>`
- `Acos</api/math/acos>`
- `Asin</api/math/asin>`
- `Atan</api/math/atan>`
- `Atan2</api/math/atan2>`
- `Ceiling</api/math/ceiling>`
- `Cos</api/math/cos>`
- `Exp</api/math/exp>`
- `Floor</api/math/floor>`
- `Log</api/math/log>`
- `Max</api/math/max>`
- `Min</api/math/min>`
- `Pow</api/math/pow>`
- `Rnd</api/math/rnd>`
- `Round</api/math/round>`
- `Sin</api/math/sin>`
- `Sqrt</api/math/sqrt>`
- `Tan</api/math/tan>`

### Numeric

- `Val</api/text/val>`

### String

See the `String</api/data_types/string>` data type.

### Other

- `MessageBox</api/user_interface/messagebox>` (replicates the functionality of `Print</api/console/print>`)
- `System.Microseconds<system.microseconds>`
- `System.Ticks<system.ticks>`
- `System.Speak<system.speak>`

<div id="/topics/xojoscript/xojoscript_functions/see_also">

<div class="seealso">

`Introduction To XojoScript</topics/xojoscript/introduction_to_xojoscript>` topic

</div>

</div>
