Posts

Showing posts from April, 2019

RExArt

Image
The RExArt Project My son-in-law, Martijn, showed me a cool project he has been working with on and off since his college days.  The basic idea is this: build an expression by randomly combining a set of built-in functions, and then use that expression to generate a color for each pixel on an arbitrarily sized canvas.  I've called my implementation of this idea "RExArt", for Random Expression Art. To cut to the chase, here's an example of a RExArt image: It uses three randomly generated expressions to produce an HSV (hue/saturation/value) color at each pixel in a 1000 x 800 grid.  The randomly generated equations (ready for this?) are: (Hue)    Mod(Length(Cos(Sin(Times(Add(Tri(Round2(Sin(Z())),Times(Div(X(),Z()),Cos(Z())),Sin(Tri(X(),Z(),X()))),Length(Div(Div(X(),Z()),Round2(X())),Round2(Mod(Z(),Y())))),Round2(Round2(Cos(Div(Y(),Z()))))))),Add(Length(Div(Div(Sin(Tri(Tri(Z(),X(),Z()),Round2(X()),Times(Y(),Z()))),Tri(Cos(Cos(X())),Tri(Round2(Z()),Mod(Z(),Z(