Published: 15 Jan 2018 › Updated: 15 Jan 2018
Hypnotic Rectangles
Hypnotic Rectangles
I made this picture with a little perl script
#!/bin/perl
use GD;
$picture = new GD::Image(500,500);
$white = $picture->colorAllocate(255,255,255);
$black= $picture->colorAllocate(0,0,0);
$deltax=-3;
for ($x=50;$x<=450;$x=$x+100)
{
$deltax++;
$deltay=-3;
for ($y=50;$y<=450;$y=$y+100)
{
$deltay++;
$deltaz=0;
for($z=48;$z>=4;$z=$z-4)
{
$deltaz++;
$deltaz++;
$picture->rectangle($x+$deltax*$deltaz-$z,$y+$deltay*$deltaz-$z,$x+$deltax*$deltaz+$z,$y+$deltay*$deltaz+$z,$black);
}
}
}
open(IMG, '>rectangles.gif') or die $!;
binmode IMG;
print IMG $picture->gif;
close(IMG);
Leave Hypnotic Rectangles to:
Read more #art posts
Best Posts From wuhotan
We have not curated any of wuhotan's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.
More Posts From wuhotan
- EOS collaboration with Bancor
- Play with the EOS symbol
- Hypnotic Rectangles
- EOS over 1$
- Learn Esperanto with the Bible - Genesis 2
- Lerne Esperanto mit der Bibel - 1. MOSE 2
- Learn Esperanto with the Bible - Genesis 1
- Lerne Esperanto mit der Bibel - 1. MOSE 1
- Meine Münzsammlung - Belgien 5 Cent von 1999
- Just my 5 Cent