u/PalpitationUpset4402

Simple 2D single-line shadow system for polygons
▲ 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 — 3 days 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 — 5 days 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 — 3 months ago