Peripheral drift illusion: Difference between revisions

Replaced external link to screenshot with a link to a local file.
(Added XPL0 example.)
(Replaced external link to screenshot with a link to a local file.)
Line 256:
{{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.
 
See window screenshot [https://github.com/lscrd/Rosetta/blob/main/Images/Peripheral_drift_illusion-Nim.png here.]
 
<syntaxhighlight lang="nim">import gintro/[glib, gobject, gtk, gio, cairo]
Line 354 ⟶ 352:
discard app.connect("activate", activate)
discard app.run()</syntaxhighlight>
 
{{out}}
Window screenshot:
[[File:Peripheral drift illusion (Nim).png|center|Peripheral drift illusion]]
 
=={{header|Perl}}==
256

edits