Skip to content

Instantly share code, notes, and snippets.

@louismeunier
Created August 5, 2025 17:42
Show Gist options
  • Select an option

  • Save louismeunier/8a49a140bad105116aa22d177b2968a9 to your computer and use it in GitHub Desktop.

Select an option

Save louismeunier/8a49a140bad105116aa22d177b2968a9 to your computer and use it in GitHub Desktop.
% diversity in math logo made in mathematica!
% just a mobius strip with fancy colors...
x[r_, \[Theta]_] := (1 + r/2 Cos[\[Theta]/2]) Cos[\[Theta]]
y[r_, \[Theta]_] := (1 + r/2 Cos[\[Theta]/2]) Sin[\[Theta]]
z[r_, \[Theta]_] := (r/2 Sin[\[Theta]/2])
ParametricPlot3D[
{
x[r, \[Theta]],
-y[r, \[Theta]],
0.75*z[r, \[Theta]]
},
{r, -1, 1}, {\[Theta], 0, 2 \[Pi]},
PlotStyle -> Red, Mesh -> {10, 1}, MeshStyle -> Black,
MeshShading -> {RGBColor["#CE0000"], RGBColor["#FF0000"],
RGBColor["#FF5252"]}, MeshFunctions -> {#5 &}, Boxed -> False,
Axes -> False, Background -> Black
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment