PDA

View Full Version : Mathematics Art With Equation



mitikomo
May 5th, 2014, 02:46 AM
Making beautiful images just by setpixel function:

for(i=0;i<640;i++)
for(j=0;j<480;j++)
setpixel(i,j,i*i+j*j);


https://www.youtube.com/watch?v=0bGYEq_DqCY


3*sin(x)*cos(y)

http://i62.tinypic.com/ef11f.png


x/10*sin(x/10)+y/10*sin(y/10)

http://i57.tinypic.com/2m5eyqd.png

try codes here (http://arashium.com/tools/pixelequation)

Dane_Jorgensen
May 5th, 2014, 06:37 PM
Great concept. There are probably some pretty cool page backgrounds you could do using JS.

Cody_Simons
May 7th, 2014, 04:12 AM
Very cool. Is the setpixel() function specific to windows.h? What would be a similar header and/or function to use in ubuntu?

hox2
May 10th, 2014, 03:53 AM
tan(sqrt(x^2+y^2))

http://s16.postimg.org/j3n6cbcz9/canvas.png

alan26
May 14th, 2014, 02:39 AM
Pretty wild the patterns you can make. We used to make "art" on our graphic calculators using programs and calculus. A lot of boredom in school back in teh day.