In How to make the digits of π go around in a spiral like this?
it is described how to plot pi in a spiralform (in my case as binary number):
numbers =
Translate[#, {-4.5, -10}] & /@
First[First[
ImportString[
ExportString[Style[#, FontSize -> 14, FontFamily -> "Arial"],
"PDF"], "PDF"]]] & /@ {"."}~Join~
CharacterRange["0", "1"]; With[{fontsize = 0.0655, digits = 10000},
Graphics[
MapIndexed[
With[{angle = (-(#2[[1]] - 2) +
Switch[#2[[1]], 1, -0.1, 2, 0, _, 0.6]) fontsize},
With[{scale = (1 - 1.5 fontsize)^(-angle/(2 Pi))},
GeometricTransformation[numbers[[# + 2]],
RightComposition[ScalingTransform[{1, 1} 0.1 fontsize*scale],
TranslationTransform[{0, scale}],
RotationTransform[Pi/4 + angle]]]]] &,
Insert[First@RealDigits[Pi, 2, digits], -1, 2]],
PlotRange -> {{-1.1, 1.1}, {-1.1, 1.1}}]]
I'm looking for a solution without the explicit numbers, but with each digit expressed as a color.
Like in this example:











First::normal: Nonatomic expression expected at position 1 in First[].– flinty Nov 28 '23 at 13:00