Peripheral drift illusion: Difference between revisions

Content added Content deleted
m (→‎{{header|Raku}}: Reduce image file size; remove a bunch of redundant information)
m (Corrected: choose -> chose.)
Line 80: Line 80:
{{trans|Julia}}
{{trans|Julia}}
{{libheader|gintro}}
{{libheader|gintro}}
A translation using Gtk via the <code>gintro</code> bindings for Nim, so the code is quite different. We choose also different sizes for the window and the grid, and colors closer to those of the codepen demo.
A translation using Gtk via the <code>gintro</code> bindings for Nim, so the code is quite different. We chose also different sizes for the window and the grid, and colors closer to those of the codepen demo.


<lang Nim>import gintro/[glib, gobject, gtk, gio, cairo]
<lang Nim>import gintro/[glib, gobject, gtk, gio, cairo]