Four sides of square: Difference between revisions

Content added Content deleted
(→‎BQN: add)
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 1,426: Line 1,426:
=={{header|Wren}}==
=={{header|Wren}}==
===Text based===
===Text based===
<syntaxhighlight lang="ecmascript">var hollowMatrix = Fn.new { |n|
<syntaxhighlight lang="wren">var hollowMatrix = Fn.new { |n|
for (i in 0...n) {
for (i in 0...n) {
for (j in 0...n) {
for (j in 0...n) {
Line 1,453: Line 1,453:
{{libheader|Go-fonts}}
{{libheader|Go-fonts}}
This is designed to look as close as possible to the Red entry's image so that we don't have to fill up Wikimedia Commons with similar looking images.
This is designed to look as close as possible to the Red entry's image so that we don't have to fill up Wikimedia Commons with similar looking images.
<syntaxhighlight lang="ecmascript">import "dome" for Window
<syntaxhighlight lang="wren">import "dome" for Window
import "graphics" for Canvas, Color, Font
import "graphics" for Canvas, Color, Font
class Main {
class Main {