POV-Ray : Newsgroups : povray.advanced-users : Making Patterns with functions : Re: Making Patterns with functions Server Time13 Sep 2024 13:53:17 EDT (-0400)
 Re: Making Patterns with functions
 From: Bald Eagle Date: 22 Aug 2024 19:10:00 Message:
```
{
"@context": "https://schema.org",
"@type": "DiscussionForumPosting",
"@id": "#web.66c7c4ebd81b84791f9dae3025979125%40news.povray.org",
"headline": "Re: Making Patterns with functions",
"dateCreated": "2024-08-22T23:10:00+00:00",
"datePublished": "2024-08-22T23:10:00+00:00",
"author": {
"@type": "Person",
"name": "Bald Eagle"
}
}
I think I was playing around with the AI again, and the simplest function caught
my eye.

Slumbering neurons were roused, and I realized that although I didn't have

Graphing cos(x) * sin (y) revealed a very surprising pattern, and I did a little
bit of follow-up development from there.  Subtracting a constant in between 0
and 1 changes the pattern from circles, to squircles, to squares.

So then, I had to transition between simple graphing, and mapping equations to a
plane with functions.  I had a surprisingly difficult time getting the lines to
match the dots at the proper slopes, and I had to introduce fudge factors to get
the lines to accurately match the frequency of the dots.

Blah blah blah - here's the original basic pattern and the triangular grid that
I made based on that.

I also needed to alter my fmod function, and I still need to add another level
of select () to fix the doubling of the lines across N=0.
```

Attachments: