Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 1.42 KB

File metadata and controls

18 lines (14 loc) · 1.42 KB

Random math patterns

Generating a random pattern with math functions

In this exercise a grid of squares of a random size is painted. Each square is colored based on the result of a math function (any function), the result of the function is then applied a modulo operator by also a random number (to get a result between 0 and 9).

The results are weird and cool patterns:

Patterns Patterns Patterns Patterns Patterns Patterns Patterns Patterns