Met dit python-script teken je het symbool voor bevrijdingsdag op de NumWorks. Je hoeft het script alleen maar uit te voeren op de rekenmachine.
from kandinsky import * pal=[[253, 255, 252], [246, 238, 240], [250, 228, 225], [235, 187, 185], [228, 158, 156], [241, 210, 209], [221, 130, 127], [214, 81, 78], [216, 105, 101], [209, 46, 40], [219, 218, 229], [190, 193, 211], [164, 170, 195], [32, 57, 133], [111, 119, 163], [78, 90, 148]] im="A278BCA76BDEBA4BCBA66CFGHDA3BDIJ3IDA63DIJEBA3FGDFCFDGJIBA60DJ2EA3BEDA3KLA2FHEA59BJ2GBA2DIFA4BKA3BDBA58EJHCA2DHCA11CEGFA56HJGA3DFA11EHJDA56CJ2EA15GJIBA57FJ2DA14EJIBA58DJ2FA13BJHBA59FJ2FA13DJDA60CJ2EA13GHBA60BJ2HBA12HDA62HJ2EA11CIA63EJ3FA10EDA63FJ3HCA8BJBA64EJ3HFA7EGA65BIJ3DA6EJCA66BEIFA5BEJEA76HJIBA75BGEBA147B3KLKL4KBA67MN10ONPKA63KON14LA62MN15MA63PN14OA64KM2ON9MKBA68BON6OA71LN7KA70KPN6MA71MPN5PBA70KPN6LA71MPN5MA71BLN5PBA71BMN5LA72KPN4OBA72LN4PKA72BON4MA73KN4PA74MN4LA74PN3PBA73KN4MA74MN4KA73BON3PKA73MN4MA74MN4KA74ON3OA75ON3BA75KN2LA77LK" def vrijheid(): r = 0 i=0 while r<len(im): s = im[r] n="" r+=1 while r<len(im) and "9">=im[r] >="0": n+=im[r] r+=1 nb = 1 if n=="" else int(n) c = pal[ord(s)-65] for j in range(nb): fill_rect(4*(i%80),4*(i//80),4,4,(c[0],c[1],c[2])) i+=1 vrijheid()