Julia: Difference between revisions

From David's Wiki
No edit summary
No edit summary
Line 24: Line 24:
"Variable x is $x, y is $y, and x+y is $(x+y)"
"Variable x is $x, y is $y, and x+y is $(x+y)"
</syntaxhighlight>
</syntaxhighlight>
===Animation Loop===
You can use <code>Timer(callback, delay, interval)</code>. This is similar to SetInterval in JavaScript.
<syntaxhighlight lang="julia">
animate = Timer(function(t)
    println("Animating")
end, 0; interval=1/60)
</syntaxhighlight>
==Useful Packages==
===MeshCat.jl===
[https://github.com/rdeits/MeshCat.jl Link]<br>
A wrapper for graphics visualizations around three.js. This opens in a web browser but can be used for making helium apps.

Revision as of 20:43, 6 September 2019


Basic Usage

Package Management

Guide Initializing a new project

cd project_folder
julia
] activate ./
# Add your packages

Loading an existing project

cd project_folder
julia
] activate .
instantiate
\b

String Interpolation

"Variable x is $x, y is $y, and x+y is $(x+y)"

Animation Loop

You can use Timer(callback, delay, interval). This is similar to SetInterval in JavaScript.

animate = Timer(function(t)
    println("Animating")
end, 0; interval=1/60)


Useful Packages

MeshCat.jl

Link
A wrapper for graphics visualizations around three.js. This opens in a web browser but can be used for making helium apps.