Skip to content

vlad1k337/randomart

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Randomart

Randomart implementation using Symbolic Regression in C

Heavily inspired (but not based of!) by Tsoding's randomart implementation.

image

Above image were produced by following expressions:

Red channel

((ln(x) mod sqrt(y)) + ln(y))

Green channel

(sin(ln(ln(((cos((x * 0.905806)) * tan(sqrt(sin((((ln(cos((ln(0.431774) * 0.751206))) - sqrt(cos(ln(y)))) / ln(cos(((y * (tan(0.518991) - sqrt((tan(cos(ln(y))) * (y + y))))) - (y / x))))) + (cos(tan((((x + 0.840772) + sqrt(x)) / sin((ln(ln(y)) mod sqrt(ln(sin(sin(cos(ln((0.294030 + (((sqrt(x) - cos(x)) * x) - (y / 0.861435)))))))))))))) + sqrt(x))))))) / x)))) mod y)

Blue channel

tan(((cos(ln(0.476469)) mod ln(sqrt(x))) - (ln(x) + 0.555270)))

Quick Start

Generate an image

$ make
$ ./a.out > image.ppm
$ feh image.ppm

Result:

image

image

image

image

image

image

image

image

image

image

image

image