Skip to content

Mathematical artist is a program that generate random artistic pictures using mathematical expression

Notifications You must be signed in to change notification settings

Julien-Gustin/Martist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Martist

Mathematical artist is a program that generate random artistic pictures using mathematical expression taking x and y positions as input of an expression.

Expressions

  • x - x
  • y - y
  • sin(pi * expr) - s
  • cos(pi * expr) - c
  • avg(expr, expr) - a
  • product(expr, expr) - X

The expression formed is represented by a traversal expression. Exemple

cos(pi(x * sin(pi y))) => xys*c


cos(pi(x * sin(pi y)))

The expression will be randomly generated for each RGB color by given the maximum depth for each of them

How to use it?

./run.sh

Then follow instructions on the prompt

The PNM image can then be converted to PNG by using the following command

pnmtopng -phys [width] [height] 0 out.pnm > out.png

Examples


RGB depth: 5, dimension 1000x1000


RGB depth: 3, dimension 1000x1000


RGB depth: 10, dimension 1000x1000

About

Mathematical artist is a program that generate random artistic pictures using mathematical expression

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published