10

Creative Coding: Randomizing Circles – Jag Talon

 4 years ago
source link: https://jagtalon.com/2020/11/18/creative-coding-randomizing-circles/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
Randomizing Circles – Jag Talon

I’m learning how to draw randomized shapes on the <canvas> right now, and love that I can create beautiful images by simply randomizing the xy-coordinates, the radius, and the color (using the excellent nice-color-palettes).

  • download-2.png?w=1024
  • creative-coding-2-november-17-2020.png?w=1024
  • creative-coding-3-november-17-2020.png?w=1024
  • download-1.png?w=1024
Source code can be found on GitHub.

I can imagine this being useful for infographics, too. The color could represent a data point (like an app), the size could represent a property (like how often it tracked you or how much data it uses), and the xy-coordinates would be randomized in the image.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK