Albers-style Codesters Art!

import random chars = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'a', 'b', 'c', 'd', 'e', 'f'] red_start = random.randint(0, 9) red_delta = random.randint(-1, 1) green_start = random.randint(0, 9) green_delta = random.randint(-1, 1) blue_start = random.randint(0, 9) blue_delta = random.randint(-1, 1) for i in range(6, 0, -1): color = "#"+chars[red_start+(i*red_delta)]*2 color += chars[green_start+(i*green_delta)]*2 color += chars[blue_start+(i*blue_delta)]*2 sprite = codesters.Square(0, (6-i)*-20, i*80, color)
  • Run Code
  • Show Console
  • Codesters How To (opens in a new tab)