Peripheral drift illusion: Difference between revisions

Content added Content deleted
m (Corrected: choose -> chose.)
Line 81: Line 81:
{{libheader|gintro}}
{{libheader|gintro}}
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.
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.

See window screenshot [https://github.com/lscrd/Rosetta/blob/main/Images/Peripheral_drift_illusion-Nim.png here.]


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