Boids/Wren: Difference between revisions

Content added Content deleted
m (Doh, still not fixed.)
m (→‎Code: Changed to Wren S/H)
Line 8: Line 8:
<br>
<br>
As it's not currently possible for Wren-cli to access OpenGL directly, we embed a Wren script in a C application to complete this task. See the [[OpenGL#Wren]] task for some of the issues involved here.
As it's not currently possible for Wren-cli to access OpenGL directly, we embed a Wren script in a C application to complete this task. See the [[OpenGL#Wren]] task for some of the issues involved here.
<syntaxhighlight lang="ecmascript">/* boids.wren */
<syntaxhighlight lang="wren">/* boids.wren */


import "random" for Random
import "random" for Random