Cosmic santa

As Is .Enjoy!

import time
import math
import random
from cosmic import CosmicUnicorn
from picographics import PicoGraphics, DISPLAY_COSMIC_UNICORN as DISPLAY

cosmic = CosmicUnicorn()
graphics = PicoGraphics(DISPLAY)

#Variables
c=0
TS=0
TR=0.01
#Sleigh and Reindeer 1
x101=-132
x102=-131
x103=-130
x104=-128
x105=-127
x106=-126
x107=-125
x108=-124
x109=-123
x110=-122
x111=-121
x112=-120
x113=-119
x114=-118
x115=-116
x116=-112
x117=-111
x118=-110
x119=-108
x120=-107
x121=-106
x122=-105
x123=-104
x124=-102
x125=-101
x126=-99
x127=-98
x128=-97
x129=-95
x130=-94
x131=-93
x132=-92
x133=-91
x134=-90
x135=-87
x136=-86
x137=-85
x138=-84
x139=-83
x140=-82
x141=-81
x142=-80
x143=-79
x144=-77
x145=-76
x146=-75
x147=-74
x148=-72
x149=-71


#Reindeer 2

x201=-101
x202=-100
x203=-99
x204=-97
x205=-96
x206=-95
x207=-94
x208=-93
x209=-92
x210=-91
x211=-90
x212=-89
x213=-88
x214=-87
x215=-85
x216=-81
x217=-80
x218=-79
x219=-77
x220=-76
x221=-75
x222=-74
x223=-73
x224=-71
x225=-70
x226=-68
x227=-67
x228=-66
x229=-64
x230=-63
x231=-62
x232=-61
x233=-60
x234=-59
x235=-56
x236=-55
x237=-54
x238=-53
x239=-52
x240=-51
x241=-50
x242=-49
x243=-48
x244=-46
x245=-45
x246=-44
x247=-43
x248=-41
x249=-40


#Rreindeer 3
        
x301=-70
x302=-69
x303=-68
x304=-66
x305=-65
x306=-64
x307=-63
x308=-62
x309=-61
x310=-60
x311=-59
x312=-58
x313=-57
x314=-56
x315=-54
x316=-50
x317=-49
x318=-48
x319=-46
x320=-45
x321=-44
x322=-43
x323=-42
x324=-40
x325=-39
x326=-37
x327=-36
x328=-35
x329=-33
x330=-32
x331=-31
x332=-30
x333=-29
x334=-28
x335=-25
x336=-24
x337=-23
x338=-22
x339=-21
x340=-20
x341=-19
x342=-18
x343=-17
x344=-15
x345=-14
x346=-13
x347=-12
x348=-10
x349=-9







#Colours
night = graphics.create_pen(0,0,32)
black=graphics.create_pen(0,0,0)
brown=graphics.create_pen(150,75,0)
lbrown=graphics.create_pen(200,125,0)
mbrown=graphics.create_pen(100,100,0)
white=graphics.create_pen(255,255,255)
red=graphics.create_pen(255,0,0)
green=graphics.create_pen(0,255,0)
blue=graphics.create_pen(0,0,255)
yellow=graphics.create_pen(255,255,0)
magenta=graphics.create_pen(255,0,255)
cyan=graphics.create_pen(0,255,255)

graphics.set_pen(night)
graphics.clear()

while True:
    c=c+1
    if c > 20:
        c=0
    graphics.set_pen(white)

    #ground snow
    graphics.line(0,31,32,31)


    #Sleigh and reindeer 1

    #Antlers 1
    graphics.set_pen(brown)
    graphics.line(x139,5,x139,8)
    graphics.line(x147,5,x147,8)
    graphics.line(x137,7,x137,9)
    graphics.line(x148,7,x148,9)
    graphics.line(x140,8,x140,10)
    graphics.line(x142,8,x142,10)
    graphics.line(x144,8,x144,10)
    graphics.line(x146,8,x146,10)
    graphics.line(x141,10,x141,12)
    graphics.line(x145,10,x145,12)
    graphics.line(x138,9,x138+2,9)
    graphics.line(x147,9,x147+2,9)
    graphics.pixel(x136,6)
    graphics.pixel(x149,6)
    graphics.pixel(x142,12)
    graphics.pixel(x144,12)
    
    #Reindeer body 1
    graphics.set_pen(lbrown)
    graphics.rectangle(x130,17,14,7)
    graphics.rectangle(x142,15,5,4)
    graphics.line(x143,12,x143+2,12)
    graphics.line(x142,13,x142+4,13)
    graphics.line(x142,20,x142,23)
    graphics.line(x141,14,x141,17)
    graphics.line(x143,14,x143+2,14)
    graphics.pixel(x145,14)
    graphics.line(x131,16,x131+6,16)
    graphics.line(x128,17,x128+3,17)
    graphics.pixel(x127,18)
    graphics.line(x129,18,x129,23)
    graphics.line(x143,19,x143+2,19)
    graphics.pixel(x143,21)
    graphics.rectangle(x131,24,2,4)
    graphics.pixel(x133,24)
    graphics.rectangle(x132,28,2,2)
    graphics.line(x140,24,x140,30)
    
    #Reindeer body mid 1
    graphics.set_pen(mbrown)
    graphics.pixel(x142,19)
    graphics.line(x143,20,x143+2,20)
    graphics.pixel(x144,19)
    graphics.pixel(x141,18)
    graphics.pixel(x145,18)
    
    if c < 10:
        graphics.set_pen(mbrown)
        graphics.line(x134,24,x134+2,24)
        graphics.rectangle(x133,25,2,3)
        graphics.rectangle(x134,28,2,2)
        graphics.line(x141,24,x141,30)
        
        #reindeer hoof 1
        graphics.set_pen(brown)
        graphics.line(x132,30,x132+4,30)
        graphics.line(x140,30,x140+2,30)
    
    if c >9:
        graphics.set_pen(mbrown)
        graphics.line(x134,24,x134+2,24)
        graphics.line(x134+1,25,x134+3,25)
        graphics.line(x134+2,26,x134+4,26)
        
        graphics.line(x141,25,x141+5,26)
        graphics.line(x144,25,x144,27)
        
         

        
        #reindeer hoof 1
        graphics.set_pen(brown)
        graphics.line(x134+2,27,x134+4,27)
        graphics.line(x132,30,x132+2,30)
        graphics.line(x140,30,x140+2,30)
        graphics.pixel(x144,27)
    
    
    #reindeer nose 1
    graphics.set_pen(red)
    graphics.rectangle(x143,16,2,2)
     
    #chain 1
    graphics.set_pen(brown)
    graphics.line(x125,22,x125+2,22)
    graphics.line(x126,21,x126+4,21)
    graphics.line(x129,20,x129+4,20)
    graphics.line(x133,19,x133+4,19)
    graphics.line(x135,17,x135,24)
    
    
    #Sleigh 1
    graphics.set_pen(red)
    graphics.rectangle(x101 ,0 ,6 ,2)
    graphics.rectangle(x103 ,2 ,6 ,2)
    graphics.line(x104 ,4 ,x104+5 ,4)
    graphics.line(x105 ,5 ,x105+4 ,5)
    graphics.rectangle(x105 ,6 ,5 ,5)
    graphics.line(x121 ,6 ,x121+2 ,6)
    graphics.line(x120 ,7 ,x120+4 ,7)
    graphics.rectangle(x119 ,8 ,6 ,2)
    graphics.line(x118 ,10 ,x118+4 ,10)
    graphics.rectangle(x123 ,10 ,2 ,2)
    graphics.line(x105 ,11 ,x105+6 ,11)
    graphics.line(x117 ,11 ,x117+5 ,11)
    graphics.line(x105 ,12 ,x105+7 ,12)
    graphics.line(x116 ,12 ,x116+6 ,12)
    graphics.rectangle(x105 ,13 ,20 ,4)
    graphics.rectangle(x106 ,17 ,18 ,4)
    graphics.line(x107 ,21 ,x107+16 ,21)
    graphics.rectangle(x108 ,22 ,14 ,2)
    graphics.rectangle(x109 ,24 ,12 ,2)
    graphics.pixel(x123 ,12)

    #Sleigh support 1
    graphics.set_pen(green)
    graphics.line(x102,29,x102+27,29)
    graphics.line(x102,30,x102+26,30)
    graphics.rectangle(x107,27,2,2)
    graphics.rectangle(x118,27,2,2)
    graphics.rectangle(x122,27,2,2)
    graphics.line(x108,24,x108,27)
    graphics.line(x118,22,x118,27)
    graphics.line(x123,23,x123,27)
    graphics.rectangle(x123,21,2,2)
    graphics.line(x124,22,x124,24)
    graphics.line(x125,23,x125,25)


    #sleigh Decorations 1
    graphics.set_pen(yellow)
    graphics.circle(x112,20,1)
    graphics.circle(x107,8,1)
    graphics.circle(x116,16,1)

    #Sleigh baubles 1
    graphics.set_pen(blue)
    graphics.pixel(x101,2)
    graphics.pixel(x123,13)
    
    #Santa 1
    graphics.set_pen(green)
    graphics.rectangle(x110,7,6,4)
    graphics.rectangle(x112,11,6,2)
    graphics.rectangle(x110,5,3,2)
    graphics.line(x115,9,x115,11)
    graphics.pixel(x108,1)
    graphics.pixel(x109,5)
    graphics.pixel(x113,6)
    graphics.pixel(x111,11)
    graphics.set_pen(white)
    graphics.line(x109,0,x109,5)
    graphics.line(x110,4,x110+3,4)
    graphics.pixel(x113,5)
    graphics.pixel(x114,6)
    graphics.set_pen(lbrown)
    graphics.pixel(x110,1)
    graphics.rectangle(x110,2,2,2)
    
    #Reindeer 2
    
    #Antlers 2
    graphics.set_pen(brown)
    graphics.line(x239,5,x239,8)
    graphics.line(x247,5,x247,8)
    graphics.line(x237,7,x237,9)
    graphics.line(x248,7,x248,9)
    graphics.line(x240,8,x240,10)
    graphics.line(x242,8,x242,10)
    graphics.line(x244,8,x244,10)
    graphics.line(x246,8,x246,10)
    graphics.line(x241,10,x241,12)
    graphics.line(x245,10,x245,12)
    graphics.line(x238,9,x238+2,9)
    graphics.line(x247,9,x247+2,9)
    graphics.pixel(x236,6)
    graphics.pixel(x249,6)
    graphics.pixel(x242,12)
    graphics.pixel(x244,12)
    
    #Reindeer body 2
    graphics.set_pen(lbrown)
    graphics.rectangle(x230,17,14,7)
    graphics.rectangle(x242,15,5,4)
    graphics.line(x243,12,x243+2,12)
    graphics.line(x242,13,x242+4,13)
    graphics.line(x242,20,x242,23)
    graphics.line(x241,14,x241,17)
    graphics.line(x243,14,x243+2,14)
    graphics.pixel(x245,14)
    graphics.line(x231,16,x231+6,16)
    graphics.line(x228,17,x228+3,17)
    graphics.line(x229,18,x229,23)
    graphics.pixel(x227,18)
    graphics.line(x243,19,x243+2,19)
    graphics.pixel(x243,21)
    graphics.rectangle(x231,24,2,4)
    graphics.pixel(x233,24)
    graphics.rectangle(x232,28,2,2)
    graphics.line(x240,24,x240,30)
    
    #Reindeer body mid 2
    graphics.set_pen(mbrown)
    graphics.pixel(x242,19)
    graphics.line(x243,20,x243+2,20)
    graphics.pixel(x244,19)
    graphics.pixel(x241,18)
    graphics.pixel(x245,18)
    
    
    if c < 10:
        graphics.set_pen(mbrown)
        graphics.line(x234,24,x234+2,24)
        graphics.rectangle(x233,25,2,3)
        graphics.rectangle(x234,28,2,2)
        graphics.line(x241,24,x241,30)
        
        #reindeer hoof 2
        graphics.set_pen(brown)
        graphics.line(x232,30,x232+4,30)
        graphics.line(x240,30,x240+2,30)
    
    if c >9:
        graphics.set_pen(mbrown)
        graphics.line(x234,24,x234+2,24)
        graphics.line(x234+1,25,x234+3,25)
        graphics.line(x234+2,26,x234+4,26)
        
        graphics.line(x241,25,x241+5,26)
        graphics.line(x244,25,x244,27)
        
         

        
        #reindeer hoof 2
        graphics.set_pen(brown)
        graphics.line(x234+2,27,x234+4,27)
        graphics.line(x232,30,x232+2,30)
        graphics.line(x240,30,x240+2,30)
        graphics.pixel(x244,27)

    #reindeer nose 2
    graphics.set_pen(red)
    graphics.rectangle(x243,16,2,2)
    
    #chain 2
    graphics.set_pen(brown)
    graphics.line(x135,22,x135+20,22)
    graphics.line(x226,21,x226+4,21)
    graphics.line(x229,20,x229+4,20)
    graphics.line(x233,19,x233+4,19)
    graphics.line(x235,17,x235,24)
    
        
    #Reindeer 3

    #Antlers 3
    graphics.set_pen(brown)
    graphics.line(x339,5,x339,8)
    graphics.line(x347,5,x347,8)
    graphics.line(x337,7,x337,9)
    graphics.line(x348,7,x348,9)
    graphics.line(x340,8,x340,10)
    graphics.line(x342,8,x342,10)
    graphics.line(x344,8,x344,10)
    graphics.line(x346,8,x346,10)
    graphics.line(x341,10,x341,12)
    graphics.line(x345,10,x345,12)
    graphics.line(x338,9,x338+2,9)
    graphics.line(x347,9,x347+2,9)
    graphics.pixel(x336,6)
    graphics.pixel(x349,6)
    graphics.pixel(x342,12)
    graphics.pixel(x344,12)
    
    #Reindeer body 3
    graphics.set_pen(lbrown)
    graphics.rectangle(x330,17,14,7)
    graphics.rectangle(x342,15,5,4)
    graphics.line(x343,12,x343+2,12)
    graphics.line(x342,13,x342+4,13)
    graphics.line(x342,20,x342,23)
    graphics.line(x341,14,x341,17)
    graphics.line(x343,14,x343+2,14)
    graphics.pixel(x345,14)
    graphics.line(x331,16,x331+6,16)
    graphics.line(x328,17,x328+3,17)
    graphics.line(x329,18,x329,23)
    graphics.pixel(x327,18)
    graphics.line(x343,19,x343+2,19)
    graphics.pixel(x343,21)
    graphics.rectangle(x331,24,2,4)
    graphics.pixel(x333,24)
    graphics.rectangle(x332,28,2,2)
    graphics.line(x340,24,x340,30)
    
    #Reindeer body mid 3
    graphics.set_pen(mbrown)
    graphics.pixel(x342,19)
    graphics.line(x343,20,x343+2,20)
    graphics.pixel(x344,19)
    graphics.pixel(x341,18)
    graphics.pixel(x345,18)
    
    if c < 10:
        graphics.set_pen(mbrown)
        graphics.line(x334,24,x334+2,24)
        graphics.rectangle(x333,25,2,3)
        graphics.rectangle(x334,28,2,2)
        graphics.line(x341,24,x341,30)
        
        #reindeer hoof 3
        graphics.set_pen(brown)
        graphics.line(x332,30,x332+4,30)
        graphics.line(x340,30,x340+2,30)
    
    if c >9:
        graphics.set_pen(mbrown)
        graphics.line(x334,24,x334+2,24)
        graphics.line(x334+1,25,x334+3,25)
        graphics.line(x334+2,26,x334+4,26)
        
        graphics.line(x341,25,x341+5,26)
        graphics.line(x344,25,x344,27)
        
         

        
        #reindeer hoof 3
        graphics.set_pen(brown)
        graphics.line(x334+2,27,x334+4,27)
        graphics.line(x332,30,x332+2,30)
        graphics.line(x340,30,x340+2,30)
        graphics.pixel(x344,27)

    
    #reindeer nose 3
    graphics.set_pen(red)
    graphics.rectangle(x343,16,2,2)
    
    #chain 3
    graphics.set_pen(brown)
    graphics.line(x235,22,x235+20,22)
    graphics.line(x326,21,x326+4,21)
    graphics.line(x329,20,x329+4,20)
    graphics.line(x333,19,x333+4,19)
    graphics.line(x335,17,x335,24)
    
    cosmic.update(graphics)
    
    time.sleep(TR)

    #wipe clean
    
    graphics.set_pen(night)

    #clear Antlers 1
    graphics.line(x139,5,x139,8)
    graphics.line(x147,5,x147,8)
    graphics.line(x137,7,x137,9)
    graphics.line(x148,7,x148,9)
    graphics.line(x140,8,x140,10)
    graphics.line(x142,8,x142,10)
    graphics.line(x144,8,x144,10)
    graphics.line(x146,8,x146,10)
    graphics.line(x141,10,x141,12)
    graphics.pixel(x101,2)
    graphics.line(x145,10,x145,12)
    graphics.line(x138,9,x138+2,9)
    graphics.line(x147,9,x147+2,9)
    graphics.pixel(x136,6)
    graphics.pixel(x149,6)
    graphics.pixel(x142,12)
    graphics.pixel(x144,12)
    
    #Clear reindeer body 1
    graphics.rectangle(x130,17,14,7)
    graphics.rectangle(x142,15,5,4)
    graphics.line(x143,12,x143+2,12)
    graphics.line(x142,13,x142+4,13)
    graphics.line(x142,20,x142,23)
    graphics.line(x141,14,x141,17)
    graphics.line(x143,14,x143+2,14)
    graphics.pixel(x145,14)
    graphics.rectangle(x101 ,0 ,6 ,2)
    graphics.line(x131,16,x131+6,16)
    graphics.line(x128,17,x128+3,17)
    graphics.pixel(x127,18)
    graphics.line(x129,18,x129,23)
    graphics.pixel(x127,18)
    graphics.line(x143,19,x143+2,19)
    graphics.pixel(x143,21)
    graphics.rectangle(x131,24,2,4)
    graphics.pixel(x133,24)
    graphics.rectangle(x132,28,2,2)
    graphics.line(x140,24,x140,30)
    
    #Clear reindeer body mid 1
    graphics.pixel(x142,19)
    graphics.line(x143,20,x143+2,20)
    graphics.pixel(x144,19)
    graphics.pixel(x141,18)
    graphics.pixel(x145,18)
    
    if c < 10:
        
        graphics.line(x134,24,x134+2,24)
        graphics.rectangle(x133,25,2,3)
        graphics.rectangle(x134,28,2,2)
        graphics.line(x141,24,x141,30)
        
        #reindeer hoof 1
        graphics.line(x132,30,x132+4,30)
        graphics.line(x140,30,x140+2,30)
    
    if c >9:
        
        graphics.line(x134,24,x134+2,24)
        graphics.line(x134+1,25,x134+3,25)
        graphics.line(x134+2,26,x134+4,26)
        
        graphics.line(x141,25,x141+5,26)
        graphics.line(x144,25,x144,27)
        
         

        
        #reindeer hoof 1
        
        graphics.line(x134+2,27,x134+4,27)
        graphics.line(x132,30,x132+2,30)
        graphics.line(x140,30,x140+2,30)
        graphics.pixel(x144,27)
    
    
    #Clear reindeer nose 1
    graphics.rectangle(x143,16,2,2)
    
    #Clear chain 1
    graphics.line(x125,22,x125+2,22)
    graphics.line(x126,21,x126+4,21)
    graphics.line(x129,20,x129+4,20)
    graphics.line(x133,19,x133+4,19)
    graphics.line(x135,17,x135,24)
    

    
    #Clear Sleigh 1
    graphics.rectangle(x101 ,0 ,6 ,2)
    graphics.rectangle(x103 ,2 ,6 ,2)
    graphics.line(x104 ,4 ,x104+5 ,4)
    graphics.line(x105 ,5 ,x105+4 ,5)
    graphics.rectangle(x105 ,6 ,5 ,5)
    graphics.line(x121 ,6 ,x121+2 ,6)
    graphics.line(x120 ,7 ,x120+4 ,7)
    graphics.rectangle(x119 ,8 ,6 ,2)
    graphics.line(x118 ,10 ,x118+4 ,10)
    graphics.rectangle(x123 ,10 ,2 ,2)
    graphics.line(x105 ,11 ,x105+6 ,11)
    graphics.line(x117 ,11 ,x117+5 ,11)
    graphics.line(x105 ,12 ,x105+7 ,12)
    graphics.line(x116 ,12 ,x116+6 ,12)
    graphics.rectangle(x105 ,13 ,20 ,4)
    graphics.rectangle(x106 ,17 ,18 ,4)
    graphics.line(x107 ,21 ,x107+16 ,21)
    graphics.rectangle(x108 ,22 ,14 ,2)
    graphics.rectangle(x109 ,24 ,12 ,2)
    graphics.pixel(x123 ,12)
    
    #Clear sleigh support 1
    graphics.line(x102,29,x102+27,29)
    graphics.line(x102,30,x102+26,30)
    graphics.rectangle(x107,27,2,2)
    graphics.rectangle(x118,27,2,2)
    graphics.rectangle(x122,27,2,2)
    graphics.line(x108,24,x108,27)
    graphics.line(x118,22,x118,27)
    graphics.line(x123,23,x123,27)
    graphics.rectangle(x123,21,2,2)
    graphics.line(x124,22,x124,24)
    graphics.line(x125,23,x125,25)
    
    #clear Sleigh decorations 1
    graphics.circle(x112,20,1)
    graphics.circle(x107,8,1)
    graphics.circle(x116,16,1)
    
    #clear sleigh Baubles 1
    graphics.pixel(x101,2)
    graphics.pixel(x123,13)
    
    
    #Clear santa 1
    graphics.rectangle(x110,7,6,4)
    graphics.rectangle(x112,11,6,2)
    graphics.rectangle(x110,5,3,2)
    graphics.line(x115,9,x115,11)
    graphics.pixel(x108,1)
    graphics.pixel(x109,5)
    graphics.pixel(x113,6)
    graphics.pixel(x111,11)
    graphics.line(x109,0,x109,5)
    graphics.line(x110,4,x110+3,4)
    graphics.pixel(x113,5)
    graphics.pixel(x114,6)
    graphics.pixel(x110,1)
    graphics.rectangle(x110,2,2,2)
    
    #Clear Reindeer 2
    
    #clear Antlers 2
    graphics.line(x239,5,x239,8)
    graphics.line(x247,5,x247,8)
    graphics.line(x237,7,x237,9)
    graphics.line(x248,7,x248,9)
    graphics.line(x240,8,x240,10)
    graphics.line(x242,8,x242,10)
    graphics.line(x244,8,x244,10)
    graphics.line(x246,8,x246,10)
    graphics.line(x241,10,x241,12)
    graphics.pixel(x201,2)
    graphics.line(x245,10,x245,12)
    graphics.line(x238,9,x238+2,9)
    graphics.line(x247,9,x247+2,9)
    graphics.pixel(x236,6)
    graphics.pixel(x249,6)
    graphics.pixel(x242,12)
    graphics.pixel(x244,12)
    
    #Clear reindeer body 2
    graphics.rectangle(x230,17,14,7)
    graphics.rectangle(x242,15,5,4)
    graphics.line(x243,12,x243+2,12)
    graphics.line(x242,13,x242+4,13)
    graphics.line(x242,20,x242,23)
    graphics.line(x241,14,x241,17)
    graphics.line(x243,14,x243+2,14)
    graphics.pixel(x245,14)
    graphics.rectangle(x201 ,0 ,6 ,2)
    graphics.line(x231,16,x231+6,16)
    graphics.line(x228,17,x228+3,17)
    graphics.pixel(x227,18)
    graphics.line(x229,18,x229,23)
    graphics.pixel(x227,18)
    graphics.line(x243,19,x243+2,19)
    graphics.pixel(x243,21)
    graphics.rectangle(x231,24,2,4)
    graphics.pixel(x233,24)
    graphics.rectangle(x232,28,2,2)
    graphics.line(x240,24,x240,30)
    
    #Clear reindeer body mid 2
    graphics.pixel(x242,19)
    graphics.line(x243,20,x243+2,20)
    graphics.pixel(x244,19)
    graphics.pixel(x241,18)
    graphics.pixel(x245,18)
    
    if c < 10:
        
        graphics.line(x234,24,x234+2,24)
        graphics.rectangle(x233,25,2,3)
        graphics.rectangle(x234,28,2,2)
        graphics.line(x241,24,x241,30)
        
        #reindeer hoof 2
        
        graphics.line(x232,30,x232+4,30)
        graphics.line(x240,30,x240+2,30)
    
    if c >9:
        
        graphics.line(x234,24,x234+2,24)
        graphics.line(x234+1,25,x234+3,25)
        graphics.line(x234+2,26,x234+4,26)
        
        graphics.line(x241,25,x241+5,26)
        graphics.line(x244,25,x244,27)
        
         

        
        #reindeer hoof 2
        
        graphics.line(x234+2,27,x234+4,27)
        graphics.line(x232,30,x232+2,30)
        graphics.line(x240,30,x240+2,30)
        graphics.pixel(x244,27)

    
    #Clear reindeer nose 2
    graphics.rectangle(x243,16,2,2)
    
    #Clear chain 2
    graphics.line(x135,22,x135+20,22)
    graphics.line(x226,21,x226+4,21)
    graphics.line(x229,20,x229+4,20)
    graphics.line(x233,19,x233+4,19)
    graphics.line(x235,17,x235,24)
    
    #Clear Reindeer 3

    #clear Antlers 3
    graphics.line(x339,5,x339,8)
    graphics.line(x347,5,x347,8)
    graphics.line(x337,7,x337,9)
    graphics.line(x348,7,x348,9)
    graphics.line(x340,8,x340,10)
    graphics.line(x342,8,x342,10)
    graphics.line(x344,8,x344,10)
    graphics.line(x346,8,x346,10)
    graphics.line(x341,10,x341,12)
    graphics.pixel(x301,2)
    graphics.line(x345,10,x345,12)
    graphics.line(x338,9,x338+2,9)
    graphics.line(x347,9,x347+2,9)
    graphics.pixel(x336,6)
    graphics.pixel(x349,6)
    graphics.pixel(x342,12)
    graphics.pixel(x344,12)
    
    #Clear reindeer body 3
    graphics.rectangle(x330,17,14,7)
    graphics.rectangle(x342,15,5,4)
    graphics.line(x343,12,x343+2,12)
    graphics.line(x342,13,x342+4,13)
    graphics.line(x342,20,x342,23)
    graphics.line(x341,14,x341,17)
    graphics.line(x343,14,x343+2,14)
    graphics.pixel(x345,14)
    graphics.rectangle(x301 ,0 ,6 ,2)
    graphics.line(x331,16,x331+6,16)
    graphics.line(x328,17,x328+3,17)
    graphics.pixel(x327,18)
    graphics.line(x329,18,x329,23)
    graphics.pixel(x327,18)
    graphics.line(x343,19,x343+2,19)
    graphics.pixel(x343,21)
    graphics.rectangle(x331,24,2,4)
    graphics.pixel(x333,24)
    graphics.rectangle(x332,28,2,2)
    graphics.line(x340,24,x340,30)
    
    #Clear reindeer body mid 3
    graphics.pixel(x342,19)
    graphics.line(x343,20,x343+2,20)
    graphics.pixel(x344,19)
    graphics.pixel(x341,18)
    graphics.pixel(x345,18)
    
    if c < 10:
        
        graphics.line(x334,24,x334+2,24)
        graphics.rectangle(x333,25,2,3)
        graphics.rectangle(x334,28,2,2)
        graphics.line(x341,24,x341,30)
        
        #reindeer hoof 3
        
        graphics.line(x334+2,27,x334+4,27)
        graphics.line(x332,30,x332+2,30)
        graphics.line(x340,30,x340+2,30)
        graphics.pixel(x344,27)
    
    if c >9:
        
        graphics.line(x334,24,x334+2,24)
        graphics.line(x334+1,25,x334+3,25)
        graphics.line(x334+2,26,x334+4,26)
        graphics.line(x341,25,x341+5,26)
        graphics.line(x344,25,x344,27)
        
         

        
        #reindeer hoof 3
        
        
        graphics.line(x334+2,27,x334+4,27)
        graphics.line(x332,30,x332+2,30)
        graphics.line(x340,30,x340+2,30)
        graphics.pixel(x344,27)
         
    
    
    #Clear reindeer nose 3
    graphics.rectangle(x343,16,2,2)
    
    #Clear chain 3
    graphics.line(x235,22,x235+20,22)
    graphics.line(x326,21,x326+4,21)
    graphics.line(x329,20,x329+4,20)
    graphics.line(x333,19,x333+4,19)
    graphics.line(x335,17,x335,24)
    
    cosmic.update(graphics)

    
    
    
    
    
    
    
    
    
    
    
    
    
    #Sleigh and Reindeer 1 move
    
    x101=x101+1
    x102=x102+1
    x103=x103+1
    x104=x104+1
    x105=x105+1
    x106=x106+1
    x107=x107+1
    x108=x108+1
    x109=x109+1
    x110=x110+1
    x111=x111+1
    x112=x112+1
    x113=x113+1
    x114=x114+1
    x115=x115+1
    x116=x116+1
    x117=x117+1
    x118=x118+1
    x119=x119+1
    x120=x120+1
    x121=x121+1
    x122=x122+1
    x123=x123+1
    x124=x124+1
    x125=x125+1
    x126=x126+1
    x127=x127+1
    x128=x128+1
    x129=x129+1
    x130=x130+1
    x131=x131+1
    x132=x132+1
    x133=x133+1
    x134=x134+1
    x135=x135+1
    x136=x136+1
    x137=x137+1
    x138=x138+1
    x139=x139+1
    x140=x140+1
    x141=x141+1
    x142=x142+1
    x143=x143+1
    x144=x144+1
    x145=x145+1
    x146=x146+1
    x147=x147+1
    x148=x148+1
    x149=x149+1
    
    #reindeer 2
    
    x201=x201+1
    x202=x202+1
    x203=x203+1
    x204=x204+1
    x205=x205+1
    x206=x206+1
    x207=x207+1
    x208=x208+1
    x209=x209+1
    x210=x210+1
    x211=x211+1
    x212=x212+1
    x213=x213+1
    x214=x214+1
    x215=x215+1
    x216=x216+1
    x217=x217+1
    x218=x218+1
    x219=x219+1
    x220=x220+1
    x221=x221+1
    x222=x222+1
    x223=x223+1
    x224=x224+1
    x225=x225+1
    x226=x226+1
    x227=x227+1
    x228=x228+1
    x229=x229+1
    x230=x230+1
    x231=x231+1
    x232=x232+1
    x233=x233+1
    x234=x234+1
    x235=x235+1
    x236=x236+1
    x237=x237+1
    x238=x238+1
    x239=x239+1
    x240=x240+1
    x241=x241+1
    x242=x242+1
    x243=x243+1
    x244=x244+1
    x245=x245+1
    x246=x246+1
    x247=x247+1
    x248=x248+1
    x249=x249+1
    
    
    #reindeer 3
    x301=x301+1
    x302=x302+1
    x303=x303+1
    x304=x304+1
    x305=x305+1
    x306=x306+1
    x307=x307+1
    x308=x308+1
    x309=x309+1
    x310=x310+1
    x311=x311+1
    x312=x312+1
    x313=x313+1
    x314=x314+1
    x315=x315+1
    x316=x316+1
    x317=x317+1
    x318=x318+1
    x319=x319+1
    x320=x320+1
    x321=x321+1
    x322=x322+1
    x323=x323+1
    x324=x324+1
    x325=x325+1
    x326=x326+1
    x327=x327+1
    x328=x328+1
    x329=x329+1
    x330=x330+1
    x331=x331+1
    x332=x332+1
    x333=x333+1
    x334=x334+1
    x335=x335+1
    x336=x336+1
    x337=x337+1
    x338=x338+1
    x339=x339+1
    x340=x340+1
    x341=x341+1
    x342=x342+1
    x343=x343+1
    x344=x344+1
    x345=x345+1
    x346=x346+1
    x347=x347+1
    x348=x348+1
    x349=x349+1

    
    

    
   
    if x101>50:
        
        #Sleigh and reindeer 1
        
        x101=-132
        x102=-131
        x103=-130
        x104=-128
        x105=-127
        x106=-126
        x107=-125
        x108=-124
        x109=-123
        x110=-122
        x111=-121
        x112=-120
        x113=-119
        x114=-118
        x115=-116
        x116=-112
        x117=-111
        x118=-110
        x119=-108
        x120=-107
        x121=-106
        x122=-105
        x123=-104
        x124=-102
        x125=-101
        x126=-99
        x127=-98
        x128=-97
        x129=-95
        x130=-94
        x131=-93
        x132=-92
        x133=-91
        x134=-90
        x135=-87
        x136=-86
        x137=-85
        x138=-84
        x139=-83
        x140=-82
        x141=-81
        x142=-80
        x143=-79
        x144=-77
        x145=-76
        x146=-75
        x147=-74
        x148=-72
        x149=-71
        
        
        
        #reindeer 2

        x201=-101
        x202=-100
        x203=-99
        x204=-97
        x205=-96
        x206=-95
        x207=-94
        x208=-93
        x209=-92
        x210=-91
        x211=-90
        x212=-89
        x213=-88
        x214=-87
        x215=-85
        x216=-81
        x217=-80
        x218=-79
        x219=-77
        x220=-76
        x221=-75
        x222=-74
        x223=-73
        x224=-71
        x225=-70
        x226=-68
        x227=-67
        x228=-66
        x229=-64
        x230=-63
        x231=-62
        x232=-61
        x233=-60
        x234=-59
        x235=-56
        x236=-55
        x237=-54
        x238=-53
        x239=-52
        x240=-51
        x241=-50
        x242=-49
        x243=-48
        x244=-46
        x245=-45
        x246=-44
        x247=-43
        x248=-41
        x249=-40

        
        #Reindeer 3
        
        x301=-70
        x302=-69
        x303=-68
        x304=-66
        x305=-65
        x306=-64
        x307=-63
        x308=-62
        x309=-61
        x310=-60
        x311=-59
        x312=-58
        x313=-57
        x314=-56
        x315=-54
        x316=-50
        x317=-49
        x318=-48
        x319=-46
        x320=-45
        x321=-44
        x322=-43
        x323=-42
        x324=-40
        x325=-39
        x326=-37
        x327=-36
        x328=-35
        x329=-33
        x330=-32
        x331=-31
        x332=-30
        x333=-29
        x334=-28
        x335=-25
        x336=-24
        x337=-23
        x338=-22
        x339=-21
        x340=-20
        x341=-19
        x342=-18
        x343=-17
        x344=-15
        x345=-14
        x346=-13
        x347=-12
        x348=-10
        x349=-9
            
time.sleep(TS)

4 Likes

This brought a tear to my one good eye (me piratical eye patch, arrr)

Thanks, and seasons tidings!

Season Greetings to you and yours as well. Could probably do with some tidying up and better ways of coding it all but i never got around to it!

What should this be running on?

Sorry .Yes it should be run on the 32x32 LED Cosmic Unicorn Board

1 Like