Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Revisions

3 of 6
deleted 6 characters in body
Parcly Taxel
  • 4.7k
  • 1
  • 8
  • 55

Wolfram Language (Mathematica), 83 bytes

Nest[ArrayFlatten[Map[Curry[#2+#/Length[#2]^2&][#],{{0,2},{3,1}}/4,{2}]]&,{{0}},#]&

Try it online!

Uses the recursive formula on the Wikipedia page for ordered dithering: $$M_{2s}=\begin{bmatrix}M_s&M_s+2/(2s)^2\\ M_s+3/(2s)^2&M_s+1/(2s)^2 \end{bmatrix}$$

Parcly Taxel
  • 4.7k
  • 1
  • 8
  • 55

AltStyle によって変換されたページ (->オリジナル) /