Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Are there mathematical methods to creating graphics?

Tags:

math

graphics

I came across this page a long time ago Steve A Baker And he mentions how one of the images on an earlier video game he created was done using a simple adder and math. Created using a 'simple adder and math'

How do you do this kind of thing? It would be really cool to create images mathematically. I have wondered (and googled) but only found descriptions about fractals. But I don't think this is a fractal. Thanks.

like image 686
Arjun J Rao Avatar asked Dec 16 '22 18:12

Arjun J Rao


2 Answers

Procedural image generation is well known in the demoscene community. You can refer to some of the open source demos for a variety of techniques.

like image 183
SK-logic Avatar answered Jan 05 '23 13:01

SK-logic


Just a quick example

Suppose you have a 200x200 RGB image, and you define each color component as follows:

 Red   = Sin[i/200]  
 Green = Tan[j/300]  
 Blue  = Sin[i j/300]

The result is:

enter image description here

like image 41
Dr. belisarius Avatar answered Jan 05 '23 13:01

Dr. belisarius