# testide.py

Created by cent20

Created on April 02, 2023

1.73 KB

```from kandinsky import fill_rect
from random import randint

message = [ '                                ',
'      *   *    ***    ***       ',
'      **  *   *        *        ',
'      * * *    ***     *        ',
'      *  **       *    *        ',
'      *   *    ***    ***       ',
'                                ',
'                                ',
'            ***   ***           ',
'           ***** *****          ',
'           ***********          ',
'            *********           ',
'             *******            ',
'              *****             ',
'               ***              ',
'                *               ',
'                                ',
'          *         ****        ',
'          *  *         *        ',
'          *****     ****        ',
'             *      *           ',
'             *      ****        ',
'                                ',
]

for x in range(320//2):
for y in range(222//2):
g = max((x+y)//2, 140-(x+y)//2)
fill_rect(2*x, 2*y, 2, 2, (g,g,g))
if message[2*y//10][2*x//10] == "*":
if y<30:
fill_rect(2*x, 2*y, 2, 2, (148+randint(-10,10),113+randint(-10,10),222+randint(-10,10)))
if 29<y<80:
fill_rect(2*x, 2*y, 2, 2, (166+randint(-10,10),38+randint(-10,10),57+randint(-10,10)))
if 79<y:
fill_rect(2*x, 2*y, 2, 2, (240+randint(-10,10),200+randint(-10,10),10+randint(-10,10)))```