u/PalpitationUpset4402

▲ 11 r/desmos

Generalizing a yin-yang for the nth degree

Continuing my brief foray into things yin and things yang, I have decided to do some generalization.

My earlier yin-yang works are rotating a yin-yang in 2 planes and rotating a triple yin-yang in three planes.

When working on my triple yin-yang, I spent a bit of time calculating the correct positions of the circles that this shape is drawn from. I tried approaching it from various directions, and eventually found something that worked for three parts.

When I made the three part yin-yang three-dimensional, I noticed that it would clip into itself. And even after my best efforts to mitigate this, I couldn't get it to rotate cleanly without clipping.

I decided to try "higher-order" yin-yangs (with more than three parts) to see if there was a point at which the clipping would no longer be an issue, but I wanted to first develop a simpler method of creating the things; one that would be generalized to any value of n.

After about a hour's work, here is the result.

Graph

• r_1 is the radius of each yin "head"

• n is the number of pieces in the ying-yang-+ (for any value greater than 2)

• a is the angle (rotation) of the whole thing

• The gradient can be customized in the "color" folder.

I have yet to try any of these higher order yin-yangs in 3d, but this alone is pretty fun to play with.

u/PalpitationUpset4402 — 13 days ago
▲ 55 r/desmos

Simple 2D single-line shadow system for polygons

A few months ago I made a shadow system for circles, but I didn't figure out a way to do it with polygons.

Turns out I was overthinking it and it's actually way easier than the circles one.

This system works perfectly for convex polygons of any size, but because it basically simulates translucent shapes (drawing a seperate shadow for each side), it doesn't look quite as good with concave polygons.

The shadows shrink when the light source "sun" is close to the points they are cast from. I haven't worked on fixing this yet.

[Link]

u/PalpitationUpset4402 — 2 months ago
▲ 16 r/desmos

A much more efficient take on an earlier project

Some time ago I made a grid of points that were "repulsed" by a draggable point. (Previous post)

I realize the way I did it then was pretty inefficient, so here's a better way using lerp (because everybody loves lerp) that I threw together in a couple minutes. It's far easier to understand and way snappier than my first attempt.

Link

u/PalpitationUpset4402 — 2 months ago
▲ 16 r/desmos

Modular Multiplication Circle

Modular Multiplication Circle!

This works by defining a number of points (n) equally spaced along the circumference of a circle, then drawing a line from each point to a multiple of that point obtained by multiplying that point by a constant (n•p).

I like to find cool "resonance" patterns at different values of (p).

u/PalpitationUpset4402 — 4 months ago