Guest User

Untitled

a guest
Feb 18th, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. m = 5;
  2. n = 5;
  3. colors = Hue /@ Range[1/(m*n), 1, 1/(m*n)];
  4.  
  5. rectangles = Table[Rectangle[{m, n}, RoundingRadius -> .35], {m, 5}, {n, 5}];
  6.  
  7. Graphics[{EdgeForm[Black], {colors, Flatten@rectangles}[Transpose]}, Frame -> True]
  8.  
  9. Graphics[{EdgeForm[Black], Riffle[colors, Flatten@rectangles]}, Frame -> True]
Add Comment
Please, Sign In to add comment