dionyziz on DeviantArthttp://creativecommons.org/licenses/by-sa/3.0/https://www.deviantart.com/dionyziz/art/ANX-67460383dionyziz

Deviation Actions

dionyziz's avatar

ANX

By
Published:
596 Views

Description

I kind of liked this one. Equation art, inspired by $mccann.

If $x and $y are the coordinates of each point and WIDTH and HEIGHT are your image dimensions, here's how to obtain the RGB of each point on the image:

$q = 2 * $x - WIDTH;
$r = 2 * $y - HEIGHT;
$w = sin( $r * $q );
$e = abs( atan( $w * $q ) ) / PI;
$f = abs( atan( $w * $r ) ) / PI;

$red = pow( $f, $e ) * 255;
$green = $f * $f * 255;
$blue = $e * $e * 255;


Please zoom in.

The ANX series, in various "time" shots:

ANX (contains full description)
ANX-474
ANX-424
ANX-328
Image size
800x600px 390.79 KB
Comments23
Join the community to add your comment. Already a deviant? Log In
karpie's avatar
Hiya there, glad to see other people jumping on the equation art train :)

If you want the donkey-work done for you (PHP syntax can suck at times), you might want to check out EACoder. Syntax is still PHP, and it takes care of loops and window coordinates for you, as well as bunch of other junk, letting you focus more on the creative side and tinkering. The fun stuff!

If you try it, let me know what you think of it, and I'll pass feedback along to EACoder's creator :)