Kandinsky-style Codesters Art!

import random for i in range(100): color = "#" chars = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'] for i in range(6): color += chars[random.randint(0, 15)] # sprite = codesters.Square(x, y, width, "color") sprite = codesters.Square(random.randint(-250, 250), random.randint(-250, 250), random.randint(1, 50), color)
  • Run Code
  • Show Console
  • Codesters How To (opens in a new tab)