Hypnotic RectanglessteemCreated with Sketch.

in #art6 years ago

Hypnotic Rectangles

rectangles.gif

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);  

Sort:  

Hey @wuhotan, just wanted to let you know that I nominated you take part in the Seven Day Black and White Challenge in my last post.

Amazing way to tweak with graphical libraries and learn the possibilities.

They look almost like upside down pyramid great.

very good meal menu comrades

You got a 33.33% upvote from @votebuster courtesy of @eifeler!

You got a 71.43% upvote from @bid4joy courtesy of @eifeler!

You got upvoted from @adriatik bot! Thank you to you for using our service. We really hope this will hope to promote your quality content!

You got a 71.43% upvote from @yourwhale courtesy of @eifeler!

Thank you @eifeler for making a transfer to me for an upvote of 8.07% on this post! Half of your bid goes to @budgets which funds growth projects for Steem like our top 25 posts on Steem! The other half helps holders of Steem power earn about 60% APR on a delegation to me! For help, will you please visit https://jerrybanfield.com/contact/ because I check my discord server daily? To learn more about Steem, will you please use http://steem.guide/ because this URL forwards to my most recently updated complete Steem tutorial?

Wow this is really cool!! Plays with the mind. Thanks for the post, I'll be following!

When you repeat the same comment on multiple post you sound like a bot! If it walks like a bot, squawks like a bot, it may be flagged for being a bot!

Your Reputation Could be a Tasty Snack with the Wrong Comment!

Coin Marketplace

STEEM 0.30
TRX 0.12
JST 0.034
BTC 64513.75
ETH 3146.11
USDT 1.00
SBD 3.95