Message Boards Message Boards

[GIF] Obfuscate (Repeated pattern)

Repeated minimal pattern

Obfuscate

A simple one tonight: a riff on this Daily Minimal piece.

Code:

rhombus[{x_, y_}, ?_] := 
  Polygon[{x, y} + # & /@ 
      Prepend[{#[[1]], #[[1]] + #[[2]], #[[2]]}, {0, 
        0}] &[{{Cos[?], 
      Sin[?]}, {Cos[? + ?/3], 
      Sin[? + ?/3]}}]];
basicblock[{x_, y_}, t_] := 
  Table[{rhombus[{x, y}, ? + t], 
    rhombus[{x + Cos[? + t] + Cos[? + t + ?/3], 
      y + Sin[? + t] + Sin[? + t + ?/3]}, ? +
       t + 2 ?/3]}, {?, 0, 2 ? - ?/3, ?/3}];

Manipulate[
 Graphics[{FaceForm[None], 
   EdgeForm[
    Directive[GrayLevel[45/255], JoinForm["Round"], 
     Thickness[.0065]]], 
   If[n >= 1, 
    Table[basicblock[{0, 0}, ? + ?/6.], {?, 
      0., (n - 1) ?/(3 n), ?/(3 n)}]]}, PlotRange -> 3.5, 
  ImageSize -> 540, Background -> RGBColor[{242, 240, 241}/255]], {n, 
  0, 30, 1}]

enter image description here -- you have earned Featured Contributor Badge enter image description here Your exceptional post has been selected for our editorial column Staff Picks http://wolfr.am/StaffPicks and Your Profile is now distinguished by a Featured Contributor Badge and is displayed on the Featured Contributor Board. Thank you!

POSTED BY: EDITORIAL BOARD
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract