Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 09:13 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : Season's Greetings to All!

Author Message
vegipete

Guru

Joined: 29/01/2013
Location: Canada
Posts: 1132
Posted: 03:45am 24 Dec 2020
Copy link to clipboard 
Print this post

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: Australia
Posts: 6283
Posted: 07:28am 24 Dec 2020
Copy link to clipboard 
Print this post

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: Canada
Posts: 290
Posted: 09:12am 24 Dec 2020
Copy link to clipboard 
Print this post

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 States
Posts: 3378
Posted: 02:06pm 24 Dec 2020
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 4311
Posted: 03:03pm 24 Dec 2020
Copy link to clipboard 
Print this post

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 Kingdom
Posts: 4044
Posted: 04:59pm 24 Dec 2020
Copy link to clipboard 
Print this post

Wishing everyone a happy festive period - and vaccinations ASAP!!

John
 
CircuitGizmos

Guru

Joined: 08/09/2011
Location: United States
Posts: 1427
Posted: 05:54pm 24 Dec 2020
Copy link to clipboard 
Print this post

Merry Christmas!!
Micromites and Maximites! - Beginning Maximite
 
JoOngle
Regular Member

Joined: 25/07/2020
Location: Sweden
Posts: 82
Posted: 06:37pm 24 Dec 2020
Copy link to clipboard 
Print this post

Season greetings to you all from Sweden as well!

May all of your wishes come true!
 
lew247

Guru

Joined: 23/12/2015
Location: United Kingdom
Posts: 1702
Posted: 09:29pm 24 Dec 2020
Copy link to clipboard 
Print this post

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: Australia
Posts: 1642
Posted: 09:54pm 24 Dec 2020
Copy link to clipboard 
Print this post

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: Australia
Posts: 188
Posted: 11:04pm 24 Dec 2020
Copy link to clipboard 
Print this post

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 States
Posts: 719
Posted: 12:00am 25 Dec 2020
Copy link to clipboard 
Print this post

https://www.youtube.com/watch?v=GQFs-KpQth4
my site
 
PeteCotton

Guru

Joined: 13/08/2020
Location: Canada
Posts: 543
Posted: 05:25am 25 Dec 2020
Copy link to clipboard 
Print this post

Merry Christmas all!
 
LeoNicolas

Guru

Joined: 07/10/2020
Location: Canada
Posts: 504
Posted: 05:55am 25 Dec 2020
Copy link to clipboard 
Print this post

Merry Christmas my CMM2 friends  
 
Plasmamac

Guru

Joined: 31/01/2019
Location: Germany
Posts: 579
Posted: 08:18am 25 Dec 2020
Copy link to clipboard 
Print this post

Merry Christmas to all!
Plasma
 
Holger
Newbie

Joined: 04/11/2020
Location: Germany
Posts: 11
Posted: 04:38pm 01 Jan 2021
Copy link to clipboard 
Print this post

Great Program, Vegipete

Now I need to find out, how to add changing winds. ;-)


 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025