1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

examples: improve the pendulum simulation, with several modes and diagrams (#13446)

This commit is contained in:
Ulises Jeremias Cornejo Fandos
2022-02-12 14:38:07 -03:00
committed by GitHub
parent a74d28ae5f
commit 4391ae563d
26 changed files with 1501 additions and 366 deletions

View File

@@ -0,0 +1,9 @@
module sim
// log is a helper function to print debug info
[inline]
pub fn log(info string) {
$if verbose ? {
println(info)
}
}