Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- steps = Table[{r, 1.005 (2 Pi/4)}, {r, 1, 25, 0.2}];
- Graphics[{Black, Line@AnglePath[steps]}, Background -> White]
- rc = Rectangle[];
- center = {0.5, 0.5};
- transforms = Table[
- ScalingTransform[{x, x}, center] @* RotationTransform[(1 + -x) * Pi / 4, center],
- {x, 1, 0.025, -0.025}
- ];
- Graphics @ {EdgeForm @ Black, FaceForm @ None, GeometricTransformation[rc, transforms]}
- Manipulate[
- Graphics[{Thick,
- MapIndexed[{ColorData[cs, (#2[[1]]*d)^e], Line[#]} &,
- Partition[AnglePath[Table[{r, a*Degree}, {r, 0, 1., d}]], 2, 1]]
- }, Background -> Black, ImageSize -> 500],
- {{d, 0.01, "Step Increment"}, 0.002, 0.02, Appearance -> "Labeled"},
- {{a, 119., "Angle Increment (Degree)"}, 1., 180., Appearance -> "Labeled"},
- {{e, 1.5, "Colour Exponent"}, 0.1, 3.0, Appearance -> "Labeled"},
- {{cs, "SandyTerrain", "Colour Scheme"}, ColorData["Gradients"]}
- ]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement