# HTML5 Canvas

This sample shows how to use Kotlin/Native to build a WebAssembly application and how to call JavaScript functions
from a Kotlin/Native code.

> __Note__: If you build this sample not from the Kotlin/Native repository, you need to specify a path to a
Kotlin/Native distribution. Add the following snippet in `gradle.properties`:
>```
>kotlin.native.home=<path-to-distribution>
>```
> The default distribution path is `$HOME/.konan/kotlin-native-<macos|linux|windows>-<version>`.

To build use `../gradlew assemble`.

To run use `../gradlew runProgram`.