![]() |
Forum Index : Microcontroller and PC projects : Season's Greetings to All!
Author | Message | ||||
vegipete![]() Guru ![]() Joined: 29/01/2013 Location: CanadaPosts: 1132 |
Merry Christmas, Happy Holidays and all that jazz, to all of you from Vegipete, on the west coast of the Great White North. ' Christmas Greetings 2020 from vegipete ' Required firmware version 5.06.00 or greater ' mode 1,8 cls middle = 250 ' tree center line ' 5 point star coords dim xs(5) = (0,59,-95,95,-59,0) dim ys(5) = (-100,81,-31,-31,81,-100) nflakes = 1000 dim fl(nflakes,1) dim drift(2) = (0,-1,1) ' draw trunk box 0,576,MM.HRES,25,0,rgb(gray),rgb(gray) line middle,575,middle-10,575,3,rgb(brown) line middle-10,575,middle-10,500,3,rgb(brown) ' draw 1/2 tree y = 100 for i = 0 to 3 x = 55+i*50 arc middle-x,y,50+i*50,55+i*50, 98,170,rgb(green) arc middle-x/2,y+i*3,50+i*50,55+i*50,150,199,rgb(green) y = y + i * 40 + 30 next i ' mirror half tree blit read 1,middle-200,50,200,550 blit write 1,middle,50,1 ' draw star math scale xs(),0.25,xs() math scale ys(),0.25,ys() math add xs(),middle,xs() math add ys(), 95,ys() polygon 5,xs(),ys(),rgb(yellow),rgb(yellow) ' fill in colours pixel fill middle,125,rgb(green) pixel fill middle,175,rgb(green) pixel fill middle,275,rgb(green) pixel fill middle,375,rgb(green) pixel fill middle,555,rgb(brown) pixel fill middle, 95,rgb(yellow) ' Draw greeting - vertical stack to make thicker text 550,150,"H a p p y","CM",5,1,rgb(blue) text 550,151,"H a p p y","CM",5,1,rgb(blue),-1 text 550,200,"H o l i d a y s !","CM",5,1,rgb(blue) text 550,201,"H o l i d a y s !","CM",5,1,rgb(blue),-1 ' make it snow ' slip angle is 2 in 1 do for i = 1 to nflakes if fl(i,1) then if pixel(fl(i,0),fl(i,1)+1) then 'blocked? x1 = fl(i,0) : y1 = fl(i,1) ' check for sideways drift c = (pixel(fl(i,0)-1,fl(i,1)+1)=0) and (pixel(fl(i,0)-1,fl(i,1)+2)=0) c = c + 2*((pixel(fl(i,0)+1,fl(i,1)+1)=0) and (pixel(fl(i,0)+1,fl(i,1)+2)=0)) if c = 3 then c = cint(1 + rnd) if c then pixel fl(i,0),fl(i,1),0 ' erase old fl(i,1) = fl(i,1) + 1 fl(i,0) = fl(i,0) + drift(c) pixel fl(i,0),fl(i,1) ' draw new else fl(i,1) = 0 ' snow flake has stuck in place endif else pixel fl(i,0),fl(i,1),0 ' erase old fl(i,1) = fl(i,1) + 1 pixel fl(i,0),fl(i,1) ' draw new endif else ' maybe make new flake if rnd > .975 then fl(i,1) = 1 fl(i,0) = int(rnd * MM.HRES) endif endif next i loop Visit Vegipete's *Mite Library for cool programs. |
||||
TassyJim![]() Guru ![]() Joined: 07/08/2011 Location: AustraliaPosts: 6283 |
Very nice. All the best to you from the other end of the world. Jim VK7JH MMedit |
||||
RetroJoe![]() Senior Member ![]() Joined: 06/08/2020 Location: CanadaPosts: 290 |
Thanks for the Christmas gift, Pete! I’ll have to “unwrap” it tomorrow, but I was mostly successful in running it in my head (can’t quite picture what the snowflakes are doing...) Happy holidays to the worldwide MaxiMite community, and looking forward to a “NOVID new year” !! Enjoy Every Sandwich / Joe P. |
||||
lizby Guru ![]() Joined: 17/05/2016 Location: United StatesPosts: 3378 |
And Happy Holidays to all from the east coast of the Great White North (white a few days ago, but not now). My wife's card--that's me on the right: ![]() PicoMite, Armmite F4, SensorKits, MMBasic Hardware, Games, etc. on fruitoftheshed |
||||
thwill![]() Guru ![]() Joined: 16/09/2019 Location: United KingdomPosts: 4311 |
And a Merry Christmas from my corner of the UK. Here's hoping for a 2021 that looks less like the opening scenes from a post-apocalypse movie. Tom MMBasic for Linux, Game*Mite, CMM2 Welcome Tape, Creaky old text adventures |
||||
JohnS Guru ![]() Joined: 18/11/2011 Location: United KingdomPosts: 4044 |
Wishing everyone a happy festive period - and vaccinations ASAP!! John |
||||
CircuitGizmos![]() Guru ![]() Joined: 08/09/2011 Location: United StatesPosts: 1427 |
Merry Christmas!! Micromites and Maximites! - Beginning Maximite |
||||
JoOngle Regular Member ![]() Joined: 25/07/2020 Location: SwedenPosts: 82 |
Season greetings to you all from Sweden as well! May all of your wishes come true! |
||||
lew247![]() Guru ![]() Joined: 23/12/2015 Location: United KingdomPosts: 1702 |
Happy Christmas Can't see what the program does unfortunately as I don't have a cmm Hope next years a better one for all |
||||
Turbo46![]() Guru ![]() Joined: 24/12/2017 Location: AustraliaPosts: 1642 |
Merry Christmas everybody! It's not 'Happy Holidays' for all, my son-in-law is working today. I'm a bit NW of TassyJim and I'm dreaming of a bush fire free Christmas Thank you Pete! I'll have a look later. Bill Edited 2020-12-25 07:58 by Turbo46 Keep safe. Live long and prosper. |
||||
GoodToGo!![]() Senior Member ![]() Joined: 23/04/2017 Location: AustraliaPosts: 188 |
Merry Christmas all! I managed to jag today off even though the majority of the jets are flying again. (Thank gawd). Haven't been real active on the forum of late, as the CMM2 isn't my kettle of fish. My main go to MM is the brilliant Explore28. In fact half a dozen of them now drive my Christmas lights display, while a few more control the power supply and monitoring side of things for it. The CMM2 is a bewdiful piece of kit, but a little wasted on dumb me. However my present today is an original BBC model B from the 80's in great nick. A computer I learnt on in skool back in the long, long ago. I look forward to restoring it. I'd like to thank everyone involved in all aspects of the Micromite universe, especially Geoff and Peter, full respect to your brilliant efforts and for rekindling an interest in a language that laid dormant in me for many decades. To all on the forum, keep up the good work, I love seeing the projects come to light. Cheers Andy. GTG! ![]() ...... Don't worry mate, it'll be GoodToGo! |
||||
hitsware2![]() Guru ![]() Joined: 03/08/2019 Location: United StatesPosts: 719 |
https://www.youtube.com/watch?v=GQFs-KpQth4 my site |
||||
PeteCotton![]() Guru ![]() Joined: 13/08/2020 Location: CanadaPosts: 543 |
Merry Christmas all! |
||||
LeoNicolas![]() Guru ![]() Joined: 07/10/2020 Location: CanadaPosts: 504 |
Merry Christmas my CMM2 friends ![]() |
||||
Plasmamac![]() Guru ![]() Joined: 31/01/2019 Location: GermanyPosts: 579 |
Merry Christmas to all! Plasma |
||||
Holger Newbie ![]() Joined: 04/11/2020 Location: GermanyPosts: 11 |
Great Program, Vegipete Now I need to find out, how to add changing winds. ;-) ![]() |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |