Author Topic: 🎄🎁✨ Holiday Season - are you ready to code?  (Read 38018 times)

0 Members and 1 Guest are viewing this topic.

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: 🎄🎁✨ Holiday Season - are you ready to code?
« Reply #30 on: December 10, 2020, 01:15:51 am »
Here's something:
Code: QB64: [Select]
  1. _TITLE "b+ mod SierraKen's Ornament - Press Esc to quit." ' b+ 2020-12-09
  2. CONST Xmax = 800, Ymax = 600, nOrn = 21, OrnR = 50
  3. SCREEN _NEWIMAGE(Xmax, Ymax, 32)
  4. REDIM OrnX(1 TO nOrn), OrnY(1 TO nOrn), OrnA(1 TO nOrn)
  5.  
  6. ' Get locations for a pyramid of circles st: ========================================================
  7. 'let n = number of circles at base of pile
  8. n = 6
  9.  
  10. 'let r = radius of each circle
  11. r = OrnR
  12.  
  13. 'let base be total length of pile
  14. baseLength = 2 * r * n
  15.  
  16. 'center pyramid in middle of screen
  17. startx = (Xmax - baseLength) / 2
  18.  
  19. 'stacking circles that form equilateral triangles at their origins have a height change of
  20. deltaHeight = r * 3 ^ .5 'r times the sqr(3)
  21. i = 1
  22. FOR row = n TO 1 STEP -1
  23.     IF row = n THEN y = Ymax - r - 1 ELSE y = y - deltaHeight
  24.     FOR col = 1 TO row
  25.         x = startx + col * 2 * r - r
  26.         'CIRCLE (x, y), r
  27.         OrnX(i) = x: OrnY(i) = y: OrnA(i) = RND * 360
  28.         i = i + 1
  29.     NEXT
  30.     startx = startx + r
  31. ' ======================================================================================================
  32.  
  33. ornament 'draw ornament and note the background is transparent at moment
  34.  
  35. _DELAY 1.5
  36. Orn = _NEWIMAGE(262, 262, 32)
  37.  
  38. _PUTIMAGE , 0, Orn, (Xmax / 2 - 131, Ymax / 2 - 131)-STEP(262, 262)
  39.     FOR i = 1 TO nOrn
  40.         OrnA(i) = OrnA(i) + 1
  41.         drawOrn OrnX(i), OrnY(i), 50, OrnA(i)
  42.     NEXT
  43.     _DISPLAY
  44.     _LIMIT 60
  45.  
  46. SUB drawOrn (x, y, r, degreeAngle)
  47.     OffScrn = _NEWIMAGE(262, 262, 32)
  48.     _DEST OffScrn
  49.     RotoZoom 131, 131, Orn, 1, degreeAngle
  50.     _PUTIMAGE (x - r, y - r)-STEP(2 * r, 2 * r), OffScrn, 0
  51.     _DEST 0
  52.     _FREEIMAGE OffScrn
  53.  
  54. SUB ornament
  55.     c3 = 180
  56.     FOR cir = .01 TO 133 STEP .1
  57.         c3 = c3 - .07
  58.         CIRCLE (400, 300), cir, _RGB32(0, c3, 0)
  59.     NEXT cir
  60.     yy = 300
  61.     CIRCLE (400, yy), 130, &HFFFFFFFF, 2 * _PI, _PI, .5
  62.     yy = yy - 40.5
  63.     CIRCLE (400, yy), 124, &HFFFFFFFF, 2 * _PI, _PI, .4
  64.     yy = yy - 30.5
  65.     CIRCLE (400, yy), 105, &HFFFFFFFF, 2 * _PI, _PI, .39
  66.     yy = 300
  67.     yy = yy + 22.5
  68.     CIRCLE (400, yy), 130, &HFFFFFFFF, 2 * _PI, _PI, .5
  69.     yy = yy + 22.5
  70.     CIRCLE (400, yy), 125, &HFFFFFFFF, 2 * _PI, _PI, .5
  71.     yy = yy + 22.5
  72.     CIRCLE (400, yy), 110, &HFFFFFFFF, 2 * _PI, _PI, .5
  73.     yy = yy + 22.5
  74.     CIRCLE (400, yy), 75, &HFFFFFFFF, , , .5
  75.     yy = yy + 22.5
  76.     CIRCLE (400, yy), 15, &HFFFFFFFF, , , .5
  77.  
  78. SUB RotoZoom (X AS LONG, Y AS LONG, Image AS LONG, Scale AS SINGLE, Rotation AS SINGLE)
  79.     DIM px(3) AS SINGLE: DIM py(3) AS SINGLE
  80.     W& = _WIDTH(Image&): H& = _HEIGHT(Image&)
  81.     px(0) = -W& / 2: py(0) = -H& / 2: px(1) = -W& / 2: py(1) = H& / 2
  82.     px(2) = W& / 2: py(2) = H& / 2: px(3) = W& / 2: py(3) = -H& / 2
  83.     sinr! = SIN(-Rotation / 57.2957795131): cosr! = COS(-Rotation / 57.2957795131)
  84.     FOR i& = 0 TO 3
  85.         x2& = (px(i&) * cosr! + sinr! * py(i&)) * Scale + X: y2& = (py(i&) * cosr! - px(i&) * sinr!) * Scale + Y
  86.         px(i&) = x2&: py(i&) = y2&
  87.     NEXT
  88.     _MAPTRIANGLE (0, 0)-(0, H& - 1)-(W& - 1, H& - 1), Image& TO(px(0), py(0))-(px(1), py(1))-(px(2), py(2))
  89.     _MAPTRIANGLE (0, 0)-(W& - 1, 0)-(W& - 1, H& - 1), Image& TO(px(0), py(0))-(px(3), py(3))-(px(2), py(2))
  90.  
« Last Edit: December 10, 2020, 01:28:26 am by bplus »

Offline SierraKen

  • Forum Resident
  • Posts: 1454
    • View Profile
Re: 🎄🎁✨ Holiday Season - are you ready to code?
« Reply #31 on: December 10, 2020, 01:49:24 am »
I turned mine into a Musical Christmas Tree Ornament. It plays Jingle Bells while the ornament turns. The PLAY command plays notes in the background but you need to add "MB" at the start of the PLAY string, as you can see in my JingleBells SUB. I found the notes and lyrics online. The lyrics stay in time with the song as it plays and writes them in the _TITLE bar.

Code: QB64: [Select]
  1. 'Musical Christmas Tree Ornament - Sing to Jingle Bells with your computer!
  2. 'by SierraKen
  3. 'Music Notes and Lyrics found here: https://www.piano-keyboard-guide.com/how-to-play-jingle-bells-easy-piano-keyboard-tutorial-for-beginners/
  4.  
  5. DIM orn AS LONG
  6. t = 1
  7. i& = _NEWIMAGE(800, 600, 32)
  8. ornament
  9. orn& = _COPYIMAGE(0)
  10. JingleBells
  11. READ song$: _TITLE song$
  12.     _LIMIT 60
  13.     RotoZoom 400, 300, orn&, 1, turn 'Angle
  14.     _DELAY .01
  15.     _DISPLAY
  16.     CLS
  17.     a$ = INKEY$
  18.     IF a$ = CHR$(27) THEN END
  19.     IF e = 1 AND a$ = " " THEN RESTORE song: e = 0: CLS: turn = 0: READ song$: _TITLE song$: JingleBells
  20.     turn = turn + 1
  21.     IF turn / 145 = INT(turn / 145) AND e <> 1 THEN
  22.         READ song$
  23.         IF song$ = "done" THEN e = 1: GOTO skip:
  24.         _TITLE song$
  25.         skip:
  26.         IF e = 1 THEN _TITLE "Musical Christmas Tree Ornament - Press Space Bar to play song again. - Press Esc to quit."
  27.     END IF
  28. song:
  29. DATA "Jingle bells, jingle bells."
  30. DATA "Jingle all the way"
  31. DATA "Oh, what fun it is to ride"
  32. DATA "In a one horse open sleigh hey"
  33. DATA "Jingle bells, jingle bells"
  34. DATA "Jingle all the way"
  35. DATA "Oh, what fun it is to ride"
  36. DATA "In a one horse open sleigh"
  37. DATA "Dashing through the snow"
  38. DATA "On a one horse open sleigh"
  39. DATA "O'er the fields we go,"
  40. DATA "Laughing all the way"
  41. DATA "Bells on bob tail ring,"
  42. DATA "making spirits bright"
  43. DATA "What fun it is to laugh and sing"
  44. DATA "A sleighing song tonight, Oh"
  45. DATA "Jingle bells, jingle bells"
  46. DATA "Jingle all the way"
  47. DATA "Oh, what fun it is to ride"
  48. DATA "In a one horse open sleigh hey"
  49. DATA "Jingle bells, jingle bells"
  50. DATA "Jingle all the way"
  51. DATA "Oh, what fun it is to ride"
  52. DATA "In a one horse open sleigh"
  53. DATA "done"
  54.  
  55. SUB JingleBells
  56.     PLAY "MB L5 E E E E E E"
  57.     PLAY "MB L5 E G C D E"
  58.     PLAY "MB L5 F F F F F E E"
  59.     PLAY "MB L5 E E E D D E D G"
  60.     PLAY "MB L5 E E E E E E"
  61.     PLAY "MB L5 E G C D E"
  62.     PLAY "MB L5 F F F F F E E"
  63.     PLAY "MB L5 E E G G F D C"
  64.  
  65.     PLAY "MB L5 G E D C G"
  66.     PLAY "MB L5 G G G E D C A"
  67.     PLAY "MB L5 A F E D B"
  68.     PLAY "MB L5 A G F D E"
  69.     PLAY "MB L5 G E D C G"
  70.     PLAY "MB L5 G E D C A"
  71.     PLAY "MB L5 A A F E D G G G"
  72.     PLAY "MB L5 G A G F D C G"
  73.  
  74.     PLAY "MB L5 E E E E E E"
  75.     PLAY "MB L5 E G C D E"
  76.     PLAY "MB L5 F F F F F E E"
  77.     PLAY "MB L5 E E E D D E D G"
  78.     PLAY "MB L5 E E E E E E"
  79.     PLAY "MB L5 E G C D E"
  80.     PLAY "MB L5 F F F F F E E"
  81.     PLAY "MB L5 E E G G F D C"
  82.  
  83.  
  84. SUB ornament
  85.     c3 = 255
  86.     FOR cir = .01 TO 130 STEP .1
  87.         c3 = c3 - .1
  88.         CIRCLE (400, 300), cir, _RGB32(0, 0, c3)
  89.     NEXT cir
  90.     yy = 300
  91.     c4 = INT(RND * 155) + 100
  92.     c5 = INT(RND * 155) + 100
  93.     c6 = INT(RND * 155) + 100
  94.     CIRCLE (400, yy), 130, _RGB32(c4, c5, c6), 2 * _PI, _PI, .5
  95.     yy = yy - 40.5
  96.     CIRCLE (400, yy), 124, _RGB32(c4, c5, c6), 2 * _PI, _PI, .4
  97.     yy = yy - 30.5
  98.     CIRCLE (400, yy), 105, _RGB32(c4, c5, c6), 2 * _PI, _PI, .39
  99.     yy = 300
  100.     yy = yy + 22.5
  101.     CIRCLE (400, yy), 130, _RGB32(c4, c5, c6), 2 * _PI, _PI, .5
  102.     yy = yy + 22.5
  103.     CIRCLE (400, yy), 125, _RGB32(c4, c5, c6), 2 * _PI, _PI, .5
  104.     yy = yy + 22.5
  105.     CIRCLE (400, yy), 110, _RGB32(c4, c5, c6), 2 * _PI, _PI, .5
  106.     yy = yy + 22.5
  107.     CIRCLE (400, yy), 75, _RGB32(c4, c5, c6), , , .5
  108.     yy = yy + 22.5
  109.     CIRCLE (400, yy), 15, _RGB32(c4, c5, c6), , , .5
  110.  
  111.  
  112.  
  113. SUB RotoZoom (X AS LONG, Y AS LONG, Image AS LONG, Scale AS SINGLE, Rotation AS SINGLE)
  114.     DIM px(3) AS SINGLE: DIM py(3) AS SINGLE
  115.     W& = _WIDTH(Image&): H& = _HEIGHT(Image&)
  116.     px(0) = -W& / 2: py(0) = -H& / 2: px(1) = -W& / 2: py(1) = H& / 2
  117.     px(2) = W& / 2: py(2) = H& / 2: px(3) = W& / 2: py(3) = -H& / 2
  118.     sinr! = SIN(-Rotation / 57.2957795131): cosr! = COS(-Rotation / 57.2957795131)
  119.     FOR i& = 0 TO 3
  120.         x2& = (px(i&) * cosr! + sinr! * py(i&)) * Scale + X: y2& = (py(i&) * cosr! - px(i&) * sinr!) * Scale + Y
  121.         px(i&) = x2&: py(i&) = y2&
  122.     NEXT
  123.     _MAPTRIANGLE (0, 0)-(0, H& - 1)-(W& - 1, H& - 1), Image& TO(px(0), py(0))-(px(1), py(1))-(px(2), py(2))
  124.     _MAPTRIANGLE (0, 0)-(W& - 1, 0)-(W& - 1, H& - 1), Image& TO(px(0), py(0))-(px(3), py(3))-(px(2), py(2))
  125.  
« Last Edit: December 10, 2020, 01:50:50 am by SierraKen »

Offline SierraKen

  • Forum Resident
  • Posts: 1454
    • View Profile
Re: 🎄🎁✨ Holiday Season - are you ready to code?
« Reply #32 on: December 10, 2020, 01:52:41 am »
LOL That's awesome B+! I will have to study how you did that sometime. :)

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: 🎄🎁✨ Holiday Season - are you ready to code?
« Reply #33 on: December 10, 2020, 09:51:48 am »
That's a great demo of PLAY Ken! I'll have to give that a try.

Offline SMcNeill

  • QB64 Developer
  • Forum Resident
  • Posts: 3972
    • View Profile
    • Steve’s QB64 Archive Forum
Re: 🎄🎁✨ Holiday Season - are you ready to code?
« Reply #34 on: December 10, 2020, 12:32:46 pm »
If it's Christmas time, then it's all about time to go caroling, for which this little program might be of some help:

Code: QB64: [Select]
  1. SCREEN _NEWIMAGE(1024, 720, 32)
  2.  
  3.  
  4. REDIM songs(100) AS STRING
  5.  
  6.  
  7.     READ text$
  8.     IF text$ = "EOD" THEN EXIT DO
  9.     IF LEFT$(text$, 3) = "***" THEN count = count + 1: lines = 0
  10.     IF lines > 40 THEN songs(count) = songs(count) + "  (CONTINUE)  ": lines = 0: count = count + 1
  11.     lines = lines + 1
  12.     songs(count) = songs(count) + text$ + CHR$(10)
  13.  
  14. FOR i = 1 TO count
  15.     CLS
  16.     PRINT songs(i)
  17.     SLEEP
  18.  
  19. PRINT "Would you like to print these to a file, so you can print or view them elsewhere?"
  20. DO: i$ = UCASE$(INPUT$(1)): LOOP UNTIL i$ = "Y" OR i$ = "N"
  21. IF i$ = "Y" THEN
  22.     INPUT "Give me a file name to save to: "; filename$
  23.     IF filename$ = "" THEN filename$ = "Christmas Lyrics.txt"
  24.     OPEN filename$ FOR OUTPUT AS #1
  25.     RESTORE
  26.     DO
  27.         READ text$
  28.         IF text$ = "EOD" THEN EXIT DO
  29.         IF LEFT$(text$, 3) = "***" THEN PRINT #1, ""
  30.         PRINT #1, text$
  31.     LOOP
  32.     CLOSE
  33.  
  34.  
  35.  
  36. DATA "**** Angels We Have Heard On High ****"
  37. DATA "Angels we have heard on high"
  38. DATA "Sweetly singing over the plains"
  39. DATA "And the mountains in reply,"
  40. DATA "Echoing their joyous strains."
  41. DATA "Glo-ori-a"
  42. DATA "In excelsis de-o"
  43. DATA "Glo-ori-a"
  44. DATA "In excelsis de-o"
  45. DATA "Shepherds, why this Jubilee?"
  46. DATA "Why your joyous strains prolong?"
  47. DATA "What the gladsome tidings be"
  48. DATA "Which inspire your heavenly song?"
  49. DATA "Glo-ori-a"
  50. DATA "In excelsis de-o"
  51. DATA "Glo-ori-a"
  52. DATA "In excelsis de-o"
  53. DATA "Come to Bethlehem and see"
  54. DATA "Him whose birth the angels sing;"
  55. DATA "Come, adore on bended knee"
  56. DATA "Christ, the Lord,"
  57. DATA "the newborn King"
  58. DATA "Glo-ori-a"
  59. DATA "In excelsis de-o"
  60. DATA "Glo-ori-a"
  61. DATA "In excelsis de-o"
  62. DATA "See Him in a manger laid"
  63. DATA "Jesus, Lord of heaven and earth!"
  64. DATA "Mary, Joseph, lend your aid,"
  65. DATA "With us sing our Savior's birth."
  66. DATA "Glo-ori-a"
  67. DATA "In excelsis de-o"
  68. DATA "Glo-ori-a"
  69. DATA "In excelsis de-o"
  70. DATA "**** Away In a Manger ****"
  71. DATA "Away in a manger,"
  72. DATA "no crib for His bed,"
  73. DATA "The little Lord Jesus"
  74. DATA "laid down His sweet head;"
  75. DATA "The stars in the heavens"
  76. DATA "looked down where He lay,"
  77. DATA "The little Lord Jesus"
  78. DATA "asleep on the hay."
  79. DATA "The cattle are lowing,"
  80. DATA "the poor Baby wakes,"
  81. DATA "But little Lord Jesus,"
  82. DATA "no crying He makes."
  83. DATA "I love Thee, Lord Jesus;"
  84. DATA "look down from the sky"
  85. DATA "And stay by my cradle"
  86. DATA "till morning is nigh."
  87. DATA "Be near me, Lord Jesus;"
  88. DATA "I ask Thee to stay"
  89. DATA "Close by me forever"
  90. DATA "and love me I pray!"
  91. DATA "Bless all the dear children"
  92. DATA "in Thy tender care,"
  93. DATA "And fit us for Heaven"
  94. DATA "to live with Thee there."
  95. DATA "Away in a manger,"
  96. DATA "no crib for His bed,"
  97. DATA "The little Lord Jesus"
  98. DATA "laid down His sweet head;"
  99. DATA "The stars in the heavens"
  100. DATA "looked down where He lay,"
  101. DATA "The little Lord Jesus"
  102. DATA "asleep on the hay."
  103. DATA "**** Deck The Halls ****"
  104. DATA "Deck the halls with boughs of holly"
  105. DATA " Fa-la-la-la-la, la-la-la-la"
  106. DATA "'Tis the season to be jolly"
  107. DATA " Fa-la-la-la-la, la-la-la-la"
  108. DATA "Don we now our gay apparel"
  109. DATA " Fa-la-la, la-la-la, la-la-la."
  110. DATA "Troll the ancient Yule-tide carol"
  111. DATA " Fa-la-la-la-la, la-la-la-la."
  112. DATA "See the blazing Yule before us."
  113. DATA " Fa-la-la-la-la, la-la-la-la"
  114. DATA "Strike the harp and join the chorus."
  115. DATA " Fa-la-la-la-la, la-la-la-la"
  116. DATA "Follow me in merry measure."
  117. DATA " Fa-la-la-la-la, la-la-la-la"
  118. DATA "While I tell of Yule-tide treasure."
  119. DATA " Fa-la-la-la-la, la-la-la-la"
  120. DATA "Fast away the old year passes."
  121. DATA " Fa-la-la-la-la, la-la-la-la"
  122. DATA "Hail the new year, lads and lasses"
  123. DATA " Fa-la-la-la-la, la-la-la-la"
  124. DATA "Sing we joyous, all together."
  125. DATA " Fa-la-la-la-la, la-la-la-la"
  126. DATA "heedless of the wind and weather."
  127. DATA " Fa-la-la-la-la, la-la-la-la"
  128. DATA "**** Do You Hear What I Hear ****"
  129. DATA "Said the night wind to the little lamb,"
  130. DATA "do you see what I see"
  131. DATA "Way up in the sky, little lamb,"
  132. DATA "do you see what I see"
  133. DATA "A star, a star, dancing in the night"
  134. DATA "With a tail as big as a kite"
  135. DATA "With a tail as big as a kite"
  136. DATA "Said the little lamb to the shepherd boy,"
  137. DATA "do you hear what I hear"
  138. DATA "Ringing through the sky, shepherd boy,"
  139. DATA "do you hear what I hear"
  140. DATA "A song, a song, high above the trees"
  141. DATA "With a voice as big as the sea"
  142. DATA "With a voice as big as the sea"
  143. DATA "Said the shepherd boy to the mighty king,"
  144. DATA "do you know what I know"
  145. DATA "In your palace warm, mighty king,"
  146. DATA "do you know what I know"
  147. DATA "A Child, a Child shivers in the cold"
  148. DATA "Let us bring Him silver and gold"
  149. DATA "Let us bring Him silver and gold"
  150. DATA "Said the king to the people everywhere,"
  151. DATA "listen to what I say"
  152. DATA "Pray for peace, people everywhere!"
  153. DATA "listen to what I say"
  154. DATA "The Child, the Child, sleeping in the night"
  155. DATA "He will bring us goodness and light"
  156. DATA "He will bring us goodness and light"
  157. DATA "**** Far, Far Away on Judea's Plains ****"
  158. DATA "Far, far away on Judea's plains,"
  159. DATA "Shepherds of old"
  160. DATA "heard the joyous strains:"
  161. DATA "Glory to God, Glory to God,"
  162. DATA "Glory to God in the highest:"
  163. DATA "Peace on earth,"
  164. DATA "good-will to men;"
  165. DATA "Peace on earth,"
  166. DATA "good-will to men!"
  167. DATA "Sweet are these strains"
  168. DATA "of redeeming love,"
  169. DATA "Message of mercy from heaven above:"
  170. DATA "Glory to God, Glory to God,"
  171. DATA "Glory to God in the highest:"
  172. DATA "Peace on earth,"
  173. DATA "good-will to men;"
  174. DATA "Peace on earth,"
  175. DATA "Lord, with the angels"
  176. DATA "we too would rejoice,"
  177. DATA "Help us to sing with"
  178. DATA "the heart and voice:"
  179. DATA "Glory to God, Glory to God,"
  180. DATA "Glory to God in the highest:"
  181. DATA "Peace on earth,"
  182. DATA "good-will to men;"
  183. DATA "Peace on earth,"
  184. DATA "good-will to men!"
  185. DATA "Hasten the time when,"
  186. DATA "from every clime,"
  187. DATA "Men shall unite"
  188. DATA "in the strains sublime:"
  189. DATA "Glory to God, Glory to God,"
  190. DATA "Glory to God in the highest:"
  191. DATA "Peace on earth,"
  192. DATA "good-will to men;"
  193. DATA "Peace on earth,"
  194. DATA "good-will to men!"
  195. DATA "**** Frosty the Snow Man ****"
  196. DATA "Frosty the snowman was a jolly happy soul,"
  197. DATA "With a corncob pipe and a button nose"
  198. DATA "and two eyes made out of coal."
  199. DATA "Frosty the snowman is a fairy tale, they say,"
  200. DATA "He was made of snow but the children"
  201. DATA "know how he came to life one day."
  202. DATA "There must have been some magic in that"
  203. DATA "old silk hat they found."
  204. DATA "For when they placed it on his head"
  205. DATA "he began to dance around."
  206. DATA "O, Frosty the snowman"
  207. DATA "was alive as he could be,"
  208. DATA "And the children say he could laugh"
  209. DATA "and play just the same as you and me."
  210. DATA "Thumpetty thump thump,"
  211. DATA "thumpety thump thump,"
  212. DATA "Look at Frosty go."
  213. DATA "Thumpetty thump thump,"
  214. DATA "thumpety thump thump,"
  215. DATA "Over the hills of snow."
  216. DATA "Frosty the snowman knew"
  217. DATA "the sun was hot that day,"
  218. DATA "So he said, 'Let's run and"
  219. DATA "we'll have some fun"
  220. DATA "now before I melt away.'"
  221. DATA "Down to the village,"
  222. DATA "with a broomstick in his hand,"
  223. DATA "Running here and there all"
  224. DATA "around the square saying,"
  225. DATA "Catch me if you can."
  226. DATA "He led them down the streets of town"
  227. DATA "right to the traffic cop."
  228. DATA "And he only paused a moment when"
  229. DATA "he heard him holler 'Stop!'"
  230. DATA "For Frosty the snow man"
  231. DATA "had to hurry on his way,"
  232. DATA "But he waved goodbye saying,"
  233. DATA "'Don't you cry,"
  234. DATA "I'll be back again some day.'"
  235. DATA "Thumpetty thump thump,"
  236. DATA "thumpety thump thump,"
  237. DATA "Look at Frosty go."
  238. DATA "Thumpetty thump thump,"
  239. DATA "thumpety thump thump,"
  240. DATA "Over the hills of snow."
  241. DATA "**** Go, Tell It On The Mountain ****"
  242. DATA "While shepherds kept their watching"
  243. DATA "Over silent flocks by night,"
  244. DATA "Behold throughout the heavens,"
  245. DATA "There shone a holy light:"
  246. DATA "Go, Tell It On The Mountain,"
  247. DATA "Over the hills and everywhere;"
  248. DATA "Go, Tell It On The Mountain"
  249. DATA "That Jesus Christ is born."
  250. DATA "The shepherds feared and trembled"
  251. DATA "When lo! above the earth"
  252. DATA "Rang out the angel chorus"
  253. DATA "That hailed our Saviour's birth:"
  254. DATA "Go, Tell It On The Mountain,"
  255. DATA "Over the hills and everywhere;"
  256. DATA "Go, Tell It On The Mountain"
  257. DATA "That Jesus Christ is born."
  258. DATA "Down in a lowly manger"
  259. DATA "Our humble Christ was born"
  260. DATA "And God send us salvation,"
  261. DATA "That blessed Christmas morn:"
  262. DATA "Go, Tell It On The Mountain,"
  263. DATA "Over the hills and everywhere;"
  264. DATA "Go, Tell It On The Mountain"
  265. DATA "That Jesus Christ is born."
  266. DATA "When I am a seeker,"
  267. DATA "I seek both night and day;"
  268. DATA "I seek the Lord to help me,"
  269. DATA "And He shows me the way:"
  270. DATA "Go, Tell It On The Mountain,"
  271. DATA "Over the hills and everywhere;"
  272. DATA "Go, Tell It On The Mountain"
  273. DATA "That Jesus Christ is born."
  274. DATA "He made me a watchman"
  275. DATA "Upon the city wall,"
  276. DATA "And if I am a Christian,"
  277. DATA "I am the least of all."
  278. DATA "Go, Tell It On The Mountain,"
  279. DATA "Over the hills and everywhere;"
  280. DATA "Go, Tell It On The Mountain"
  281. DATA "That Jesus Christ is born."
  282. DATA "**** God Rest Ye Merry, Gentlemen ****"
  283. DATA "God Rest Ye Merry, Gentlemen,"
  284. DATA "Let nothing you dismay;"
  285. DATA "Remember Christ, our Saviour,"
  286. DATA "Was born on Christmas day,"
  287. DATA "To save us all from Satan's power"
  288. DATA "When we were gone astray."
  289. DATA "O tidings of comfort and joy,"
  290. DATA "comfort and joy,"
  291. DATA "O tidings of comfort and joy."
  292. DATA "In Bethlehem, in Jewry,"
  293. DATA "This blessed Babe was born,"
  294. DATA "And laid within a manger,"
  295. DATA "Upon this blessed morn;"
  296. DATA "That which His Mother Mary,"
  297. DATA "Did nothing take in scorn."
  298. DATA "O tidings of comfort and joy,"
  299. DATA "comfort and joy,"
  300. DATA "O tidings of comfort and joy."
  301. DATA "From God our Heavenly Father,"
  302. DATA "A blessed Angel came;"
  303. DATA "And unto certain Shepherds"
  304. DATA "Brought tidings of the same:"
  305. DATA "How that in Bethlehem was born"
  306. DATA "The Son of God by Name."
  307. DATA "O tidings of comfort and joy,"
  308. DATA "comfort and joy,"
  309. DATA "O tidings of comfort and joy."
  310. DATA "'Fear not,' then said the Angel,"
  311. DATA "'let nothing you affright,"
  312. DATA "This day is born a Saviour"
  313. DATA "Of pure Virgin bright,"
  314. DATA "To free all those who trust in Him"
  315. DATA "From Satan's power and might.'"
  316. DATA "O tidings of comfort and joy,"
  317. DATA "comfort and joy,"
  318. DATA "O tidings of comfort and joy."
  319. DATA "The shepherds at those tidings"
  320. DATA "Rejoiced much in mind,"
  321. DATA "And left their flocks a-feeding,"
  322. DATA "In tempest, storm, and wind:"
  323. DATA "And went to Bethlehem straightway,"
  324. DATA "The Son of God to find."
  325. DATA "O tidings of comfort and joy,"
  326. DATA "comfort and joy,"
  327. DATA "O tidings of comfort and joy."
  328. DATA "And when they came to Bethlehem"
  329. DATA "Where our dear Saviour lay,"
  330. DATA "They found Him in a manger,"
  331. DATA "Where oxen feed on hay;"
  332. DATA "His Mother Mary kneeling down,"
  333. DATA "Unto the Lord did pray."
  334. DATA "O tidings of comfort and joy,"
  335. DATA "comfort and joy,"
  336. DATA "O tidings of comfort and joy."
  337. DATA "Now to the Lord sing praises,"
  338. DATA "All you within this place,"
  339. DATA "And with true love and brotherhood"
  340. DATA "Each other now embrace;"
  341. DATA "This holy tide of Christmas"
  342. DATA "All other doth deface."
  343. DATA "O tidings of comfort and joy,"
  344. DATA "comfort and joy,"
  345. DATA "O tidings of comfort and joy."
  346. DATA "**** Hark! The Herald Angels Sing ****"
  347. DATA "Hark! the herald angels sing"
  348. DATA "'Glory to the newborn King"
  349. DATA "Peace on earth and mercy mild,"
  350. DATA "God and sinners reconciled!'"
  351. DATA "Joyful, all ye nations rise;"
  352. DATA "Join the triumph of the skies;"
  353. DATA "With angelic host proclaim"
  354. DATA "'Christ is born in Bethlehem!'"
  355. DATA "Hark! the herald angels sing"
  356. DATA "'Glory to the newborn King!'"
  357. DATA "Christ, by highest heaven adored;"
  358. DATA "Christ the everlasting Lord;"
  359. DATA "Late in time behold Him come,"
  360. DATA "Offspring of the favored one."
  361. DATA "Veiled in flesh, the Godhead see;"
  362. DATA "hail the incarnate Deity"
  363. DATA "Pleased as man with men to dwell,"
  364. DATA "Jesus, our Emmanuel"
  365. DATA "Hark! the herald angels sing,"
  366. DATA "'Glory to the newborn King'"
  367. DATA "Hail! the heaven-born Prince of Peace!"
  368. DATA "Hail! the Son of Righteousness!"
  369. DATA "Light and life to all He brings,"
  370. DATA "risen with healing in His wings."
  371. DATA "Mild He lays His glory by,"
  372. DATA "born that man no more may die;"
  373. DATA "Born to raise the sons of earth,"
  374. DATA "born to give them second birth"
  375. DATA "Hark! the herald angels sing,"
  376. DATA "'Glory to the newborn King'"
  377. DATA "**** I Heard the Bells on Christmas Day ****"
  378. DATA "I Heard the Bells on Christmas Day"
  379. DATA "Their old familiar carols play,"
  380. DATA "And wild and sweet the words repeat"
  381. DATA "Of peace on earth, good will to men."
  382. DATA "I thought how, as the day had come,"
  383. DATA "The belfries of all Christendom"
  384. DATA "Had rolled along the unbroken song"
  385. DATA "Of peace on earth, good will to men."
  386. DATA "And in despair I bowed my head:"
  387. DATA "'There is no peace on earth,' I said,"
  388. DATA "'For hate is strong and mocks the song"
  389. DATA "Of peace on earth, good will to men.'"
  390. DATA "Then pealed the bells more loud and deep:"
  391. DATA "'God is not dead, nor doth he sleep;"
  392. DATA "The wrong shall fail, the right prevail,"
  393. DATA "With peace on earth, good will to men.'"
  394. DATA "Till, ringing singing, on its way,"
  395. DATA "The world revolved from night to day,"
  396. DATA "A voice, a chime, a chant sublime,"
  397. DATA "Of peace on earth, good will to men!"
  398. DATA "**** It Came Upon The Midnight Clear ****"
  399. DATA "It came upon the midnight clear,"
  400. DATA "That glorious song of old,"
  401. DATA "From angels bending near the earth"
  402. DATA "With news of joy foretold,"
  403. DATA "'Peace on the earth, good will to men"
  404. DATA "From heaven's all gracious King.'"
  405. DATA "The world in solemn stillness lay,"
  406. DATA "To hear the angels sing."
  407. DATA "Still through the cloven skies they come,"
  408. DATA "Love's banner all unfurled;"
  409. DATA "And still their heavenly music floats"
  410. DATA "Over all the weary world."
  411. DATA "Above its sad and lowly plains"
  412. DATA "Old echoes plaintive ring,"
  413. DATA "And ever over its Babel sounds"
  414. DATA "The blessed angels sing."
  415. DATA "Yet with the woes of sin and strife"
  416. DATA "The world has suffered long;"
  417. DATA "Beneath the Angel-strain have rolled"
  418. DATA "Two thousand years of wrong;"
  419. DATA "And man at war with man hears not"
  420. DATA "The love-song which they bring;"
  421. DATA "O! hush the noise, ye men of strife,"
  422. DATA "And hear the Angels sing."
  423. DATA "O ye, beneath life's crushing load"
  424. DATA "Whose forms are bending low,"
  425. DATA "Who toil along the climbing way"
  426. DATA "With painful steps and slow;"
  427. DATA "Look now! for glad and golden hours"
  428. DATA "Come swiftly on the wing;"
  429. DATA "O rest beside the weary road"
  430. DATA "And hear the angels sing."
  431. DATA "For lo! the days are hastening on,"
  432. DATA "By prophets seen of old,"
  433. DATA "When with the ever-circling years"
  434. DATA "Shall come the time foretold,"
  435. DATA "When the new heaven and earth shall own"
  436. DATA "The Prince of Peace their King,"
  437. DATA "And the whole world send back the song"
  438. DATA "Which now the angels sing."
  439. DATA "**** Jingle Bells ****"
  440. DATA "Dashing through the snow"
  441. DATA "On a one-horse open sleigh,"
  442. DATA "Over the fields we go,"
  443. DATA "Laughing all the way;"
  444. DATA "Bells on bob-tail ring,"
  445. DATA "making spirits bright,"
  446. DATA "What fun it is to ride and sing"
  447. DATA "A sleighing song tonight"
  448. DATA "Jingle bells, jingle bells,"
  449. DATA "jingle all the way!"
  450. DATA "O what fun it is to ride"
  451. DATA "In a one-horse open sleigh"
  452. DATA "A day or two ago,"
  453. DATA "I thought I'd take a ride,"
  454. DATA "And soon Miss Fanny Bright"
  455. DATA "Was seated by my side;"
  456. DATA "The horse was lean and lank;"
  457. DATA "Misfortune seemed his lot;"
  458. DATA "He got into a drifted bank,"
  459. DATA "And we, we got upsot."
  460. DATA "Jingle Bells, Jingle Bells,"
  461. DATA "Jingle all the way!"
  462. DATA "What fun it is to ride"
  463. DATA "In a one-horse open sleigh."
  464. DATA "A day or two ago,"
  465. DATA "the story I must tell"
  466. DATA "I went out on the snow"
  467. DATA "And on my back I fell;"
  468. DATA "A gent was riding by"
  469. DATA "In a one-horse open sleigh,"
  470. DATA "He laughed as there"
  471. DATA "I sprawling lie,"
  472. DATA "But quickly drove away."
  473. DATA "Jingle Bells, Jingle Bells,"
  474. DATA "Jingle all the way!"
  475. DATA "What fun it is to ride"
  476. DATA "In a one-horse open sleigh."
  477. DATA "Now the ground is white"
  478. DATA "Go it while you're young,"
  479. DATA "Take the girls tonight"
  480. DATA "And sing this sleighing song;"
  481. DATA "Just get a bob-tailed bay"
  482. DATA "two-forty as his speed"
  483. DATA "Hitch him to an open sleigh"
  484. DATA "And crack! you'll take the lead."
  485. DATA "Jingle Bells, Jingle Bells,"
  486. DATA "Jingle all the way!"
  487. DATA "What fun it is to ride"
  488. DATA "In a one-horse open sleigh."
  489. DATA "**** Joy To The World ****"
  490. DATA "Joy to the world! The Lord is come."
  491. DATA "Let earth receive her King"
  492. DATA "Let every heart"
  493. DATA "Prepare Him room"
  494. DATA "And Saints and angels sing"
  495. DATA "And Saints and angels sing"
  496. DATA "And Saints and Saints and angels sing"
  497. DATA "Joy to the world, the Saviour reigns"
  498. DATA "Let Saints their songs employ"
  499. DATA "While fields and floods"
  500. DATA "rocks, hills and plains"
  501. DATA "Repeat the sounding joy"
  502. DATA "Repeat the sounding joy"
  503. DATA "Repeat, Repeat, the sounding joy"
  504. DATA "Joy to the world with truth and grace"
  505. DATA "And makes the nations prove"
  506. DATA "The glories of His righteousness"
  507. DATA "And wonders of His love"
  508. DATA "And wonders of His love"
  509. DATA "And wonders and wonders of His love"
  510. DATA "No more will sin and sorrow grow,"
  511. DATA "Nor thorns infest the ground;"
  512. DATA "He'll come and make the blessings flow"
  513. DATA "Far as the curse was found,"
  514. DATA "Far as the curse was found,"
  515. DATA "Far as, far as the curse was found."
  516. DATA "He rules the world with truth and grace,"
  517. DATA "And gives to nations proof"
  518. DATA "The glories of His righteousness,"
  519. DATA "And wonders of His love;"
  520. DATA "And wonders of His love;"
  521. DATA "And wonders, wonders of His love."
  522. DATA "Rejoice! Rejoice in the Most High,"
  523. DATA "While Israel spreads abroad"
  524. DATA "Like stars that glitter in the sky,"
  525. DATA "And ever worship God,"
  526. DATA "And ever worship God,"
  527. DATA "And ever, and ever worship God."
  528. DATA "**** O Come, All Ye Faithful ****"
  529. DATA "O come, all ye faithful,"
  530. DATA "Joyful and triumphant,"
  531. DATA "O come ye,"
  532. DATA "O come ye to Bethlehem;"
  533. DATA "Come and behold Him"
  534. DATA "Born the King of angels;"
  535. DATA "O come, let us adore Him,"
  536. DATA "O come, let us adore Him,"
  537. DATA "O come, let us adore Him,"
  538. DATA "Christ, the Lord."
  539. DATA "Sing, choirs of angels,"
  540. DATA "Sing in exultation,"
  541. DATA "Sing, all ye citizens"
  542. DATA "of heaven above;"
  543. DATA "Glory to God,"
  544. DATA "Glory in the highest;"
  545. DATA "O come, let us adore Him,"
  546. DATA "O come, let us adore Him,"
  547. DATA "O come, let us adore Him,"
  548. DATA "Christ, the Lord."
  549. DATA "Yea, Lord, we greet Thee,"
  550. DATA "Born this happy morning,"
  551. DATA "Jesus, to Thee be"
  552. DATA "all glory given;"
  553. DATA "Son of the Father,"
  554. DATA "Now in flesh appearing;"
  555. DATA "O come, let us adore Him,"
  556. DATA "O come, let us adore Him,"
  557. DATA "O come, let us adore Him,"
  558. DATA "Christ, the Lord."
  559. DATA "**** O Holy Night ****"
  560. DATA "O holy night,"
  561. DATA "the stars are brightly shining;"
  562. DATA "It is the night of"
  563. DATA "our dear Savior's birth!"
  564. DATA "Long lay the world"
  565. DATA "in sin and error pining,"
  566. DATA "Till He appeared"
  567. DATA "and the soul felt its worth."
  568. DATA "A thrill of hope,"
  569. DATA "the weary world rejoices,"
  570. DATA "For yonder breaks"
  571. DATA "a new and glorious morn."
  572. DATA "Fall on your knees,"
  573. DATA "O hear the angel voices!"
  574. DATA "O night divine,"
  575. DATA "O night when Christ was born!"
  576. DATA "O night divine, O night,"
  577. DATA "O night divine!"
  578. DATA "Led by the light of Faith"
  579. DATA "serenely beaming,"
  580. DATA "With glowing hearts"
  581. DATA "by His cradle we stand."
  582. DATA "So led by light of a star"
  583. DATA "sweetly gleaming,"
  584. DATA "Here came the wise men"
  585. DATA "from Orient land."
  586. DATA "The King of Kings lay thus"
  587. DATA "in lowly manger,"
  588. DATA "In all our trials"
  589. DATA "born to be our Friend!"
  590. DATA "He knows our need,"
  591. DATA "To our weakness no stranger;"
  592. DATA "Behold your King!"
  593. DATA "Before the lowly bend!"
  594. DATA "Behold your King! your King!"
  595. DATA "before Him bend."
  596. DATA "Truly He taught us"
  597. DATA "to love one another;"
  598. DATA "His law is love and"
  599. DATA "His gospel is peace."
  600. DATA "Chains shall He break"
  601. DATA "for the slave is our brother"
  602. DATA "And in His name"
  603. DATA "all oppression shall cease."
  604. DATA "Sweet hymns of joy in"
  605. DATA "grateful chorus raise we,"
  606. DATA "Let all within us"
  607. DATA "praise His holy name!"
  608. DATA "Christ is the Lord,"
  609. DATA "Oh praise His name forever,"
  610. DATA "His pow'r and glory evermore proclaim"
  611. DATA "His pow'r and glory"
  612. DATA "evermore proclaim."
  613. DATA "**** O Little Town of Bethlehem ****"
  614. DATA "O little town of Bethlehem,"
  615. DATA "How still we see thee lie."
  616. DATA "Above thy deep and dreamless sleep"
  617. DATA "The silent stars go by;"
  618. DATA "Yet in thy dark streets shineth"
  619. DATA "The everlasting Light;"
  620. DATA "The hopes and fears of all the years"
  621. DATA "Are met in thee tonight."
  622. DATA "For Christ is born of Mary,"
  623. DATA "And, gathered all above"
  624. DATA "While mortals sleep, the angels keep"
  625. DATA "Their watch of wondering love."
  626. DATA "O morning stars, together"
  627. DATA "Proclaim the holy birth."
  628. DATA "And praises sing to God the King."
  629. DATA "And peace to men on earth."
  630. DATA "How silently, how silently"
  631. DATA "The wondrous gift is given!"
  632. DATA "So God imparts to human hearts"
  633. DATA "The blessings of His heaven."
  634. DATA "No ear may hear His coming;"
  635. DATA "But in this world of sin,"
  636. DATA "Where meek souls will receive Him,"
  637. DATA "still The dear Christ enters in."
  638. DATA "Where children, pure and happy,"
  639. DATA "Pray to the Blessed Child;"
  640. DATA "Where misery cries out to thee,"
  641. DATA "Son of the Mother mild;"
  642. DATA "Where charity stands watching,"
  643. DATA "And faith holds wide the door,"
  644. DATA "The dark night wakes, the glory breaks,"
  645. DATA "and Christmas comes once more."
  646. DATA "O Holy Child of Bethlehem,"
  647. DATA "Descend to us, we pray;"
  648. DATA "Cast out our sin and enter in;"
  649. DATA "Be born in us today!"
  650. DATA "We hear the Christmas angels"
  651. DATA "The great glad tidings tell;"
  652. DATA "O come to us, abide with us,"
  653. DATA "Our Lord Emmanuel!"
  654. DATA "**** Rudolph The Red-Nosed Reindeer ****"
  655. DATA "You know Dasher and Dancer"
  656. DATA "And Prancer and Vixen,"
  657. DATA "Comet and Cupid"
  658. DATA "And Donner and Blitzen."
  659. DATA "But do you recall"
  660. DATA "The most famous reindeer of all?"
  661. DATA "Rudolph the red-nosed reindeer"
  662. DATA "(reindeer)"
  663. DATA "Had a very shiny nose"
  664. DATA "(like a light bulb)"
  665. DATA "And if you ever saw it"
  666. DATA "(saw it)"
  667. DATA "You would even say it glows"
  668. DATA "(like a flash light)"
  669. DATA "All of the other reindeer"
  670. DATA "(reindeer)"
  671. DATA "Used to laugh and call him names"
  672. DATA "(like Pinochio)"
  673. DATA "They never let poor Rudolph"
  674. DATA "(Rudolph)"
  675. DATA "Play in any reindeer games"
  676. DATA "(like Monopoly)"
  677. DATA "Then one foggy Christmas Eve"
  678. DATA "Santa came to say"
  679. DATA "(Ho Ho Ho)"
  680. DATA "Rudolph with your nose so bright"
  681. DATA "Won't you guide my sleigh tonight?"
  682. DATA "Then all the reindeer loved him"
  683. DATA "(loved him)"
  684. DATA "And they shouted out with glee"
  685. DATA "(yippee)"
  686. DATA "'Rudolph the red-nosed reindeer"
  687. DATA "(reindeer)"
  688. DATA "You'll go down in history!'"
  689. DATA "(like Columbus)"
  690. DATA "**** Silent Night ****"
  691. DATA "Silent night, holy night!"
  692. DATA "All is calm, All is bright"
  693. DATA "Round yon Virgin, Mother and Child"
  694. DATA "Holy Infant so Tender and mild,"
  695. DATA "Sleep in heavenly peace,"
  696. DATA "Sleep in heavenly peace."
  697. DATA "Silent night, holy night!"
  698. DATA "Shepherds quake at the sight!"
  699. DATA "Glories stream from heaven afar;"
  700. DATA "Heavenly hosts sing Al-le-lu-ia!"
  701. DATA "Christ the Saviour is born!"
  702. DATA "Christ the Saviour is born!"
  703. DATA "Silent night, holy night!"
  704. DATA "Wondrous star, lend thy light!"
  705. DATA "With the angels let us sing"
  706. DATA "Alleluia to our King!"
  707. DATA "Christ the Saviour is here,"
  708. DATA "Jesus the Saviour is here!"
  709. DATA "Silent night, Holy night!"
  710. DATA "Son of God, love's pure light"
  711. DATA "Radiant beams from Thy holy face,"
  712. DATA "with the dawn of redeeming grace,"
  713. DATA "Jesus Lord at thy birth;"
  714. DATA "Jesus Lord at thy birth."
  715. DATA "**** The First Noel ****"
  716. DATA "The first Noel the angels did say"
  717. DATA "Was to certain poor shepherds"
  718. DATA "in fields as they lay,"
  719. DATA "In fields where they lay"
  720. DATA "keeping their sheep"
  721. DATA "On a cold winter's night"
  722. DATA "that was so deep."
  723. DATA "Noel Noel Noel Noel!"
  724. DATA "Born is the King of Israel!"
  725. DATA "They looked up and saw a star"
  726. DATA "Shining in the East beyond them far,"
  727. DATA "And to the earth it gave great light,"
  728. DATA "And so it continued both day and night."
  729. DATA "Noel Noel Noel Noel!"
  730. DATA "Born is the King of Israel!"
  731. DATA "And by the light of that same star"
  732. DATA "Three wise men came from country far,"
  733. DATA "To seek for a King was their intent"
  734. DATA "And to follow the star"
  735. DATA "wherever it went."
  736. DATA "Noel Noel Noel Noel!"
  737. DATA "Born is the King of Israel!"
  738. DATA "This star drew nigh to the northwest"
  739. DATA "Over Bethlehem it took its rest,"
  740. DATA "And there it did both stop and stay"
  741. DATA "Right over the place where Jesus lay."
  742. DATA "Noel Noel Noel Noel!"
  743. DATA "Born is the King of Israel!"
  744. DATA "Then did they know assuredly"
  745. DATA "Within that house the King did lie:"
  746. DATA "One entered in then for to see,"
  747. DATA "And found the Babe in poverty:"
  748. DATA "Noel Noel Noel Noel!"
  749. DATA "Born is the King of Israel!"
  750. DATA "Then entered in those wise men three"
  751. DATA "Full reverently upon their knee,"
  752. DATA "And offered there in His presence"
  753. DATA "Their gold, and myrrh and frankincense."
  754. DATA "Noel Noel Noel Noel!"
  755. DATA "Born is the King of Israel!"
  756. DATA "Then let us all with one accord"
  757. DATA "Sing praises to our heavenly Lord,"
  758. DATA "That hath made heaven"
  759. DATA "and earth of naught"
  760. DATA "And with His blood"
  761. DATA "mankind hath bought."
  762. DATA "Noel Noel Noel Noel!"
  763. DATA "Born is the King of Israel!"
  764. DATA "**** The Shepherd's Carol (round) ****"
  765. DATA "Mary, Mary hush, see the Child"
  766. DATA "Joseph, Joseph, look see how mild"
  767. DATA "This is Jesus; this is our King"
  768. DATA "This is our Savior, his praises we sing."
  769. DATA "**** The Twelve Days of Christmas ****"
  770. DATA "On the first day of Christmas"
  771. DATA "my true love sent to me:"
  772. DATA "A partridge in a pear tree."
  773. DATA "On the second day of Christmas"
  774. DATA "my true love sent to me:"
  775. DATA "Two turtle doves"
  776. DATA "And a Partridge in a pear tree."
  777. DATA "On the third day of Christmas"
  778. DATA "my true love sent to me:"
  779. DATA "Three French Hens,"
  780. DATA "Two turtle doves"
  781. DATA "And a Partridge in a pear tree."
  782. DATA "On the fourth day of Christmas"
  783. DATA "my true love sent to me:"
  784. DATA "Four calling birds,"
  785. DATA "Three French Hens,"
  786. DATA "Two turtle doves"
  787. DATA "And a Partridge in a pear tree."
  788. DATA "On the fifth day of Christmas"
  789. DATA "my true love sent to me:"
  790. DATA "Five golden rings,"
  791. DATA "Four calling birds,"
  792. DATA "Three French Hens,"
  793. DATA "Two turtle doves"
  794. DATA "And a Partridge in a pear tree."
  795. DATA "On the sixth day of Christmas"
  796. DATA "my true love sent to me:"
  797. DATA "Six geese a laying,"
  798. DATA "Five golden rings,"
  799. DATA "Four calling birds,"
  800. DATA "Three French Hens,"
  801. DATA "Two turtle doves"
  802. DATA "And a Partridge in a pear tree."
  803. DATA "On the seventh day of Christmas"
  804. DATA "my true love sent to me:"
  805. DATA "Seven swans a swimming,"
  806. DATA "Six geese a laying,"
  807. DATA "Five golden rings,"
  808. DATA "Four calling birds,"
  809. DATA "Three French Hens,"
  810. DATA "Two turtle doves"
  811. DATA "And a Partridge in a pear tree."
  812. DATA "On the eighth day of Christmas"
  813. DATA "my true love sent to me:"
  814. DATA "Eight maids a milking,"
  815. DATA "Seven swans a swimming,"
  816. DATA "Six geese a laying,"
  817. DATA "Five golden rings,"
  818. DATA "Four calling birds,"
  819. DATA "Three French Hens,"
  820. DATA "Two turtle doves"
  821. DATA "And a Partridge in a pear tree."
  822. DATA "On the ninth day of Christmas"
  823. DATA "my true love sent to me:"
  824. DATA "Nine ladies dancing,"
  825. DATA "Eight maids a milking,"
  826. DATA "Seven swans a swimming,"
  827. DATA "Six geese a laying,"
  828. DATA "Five golden rings,"
  829. DATA "Four calling birds,"
  830. DATA "Three French Hens,"
  831. DATA "Two turtle doves"
  832. DATA "And a Partridge in a pear tree."
  833. DATA "On the tenth day of Christmas"
  834. DATA "my true love sent to me:"
  835. DATA "Ten lords a leaping,"
  836. DATA "Nine ladies dancing,"
  837. DATA "Eight maids a milking,"
  838. DATA "Seven swans a swimming,"
  839. DATA "Six geese a laying,"
  840. DATA "Five golden rings,"
  841. DATA "Four calling birds,"
  842. DATA "Three French Hens,"
  843. DATA "Two turtle doves"
  844. DATA "And a Partridge in a pear tree."
  845. DATA "On the eleventh day of Christmas"
  846. DATA "my true love sent to me:"
  847. DATA "Eleven pipers piping,"
  848. DATA "Ten lords a leaping,"
  849. DATA "Nine ladies dancing,"
  850. DATA "Eight maids a milking,"
  851. DATA "Seven swans a swimming,"
  852. DATA "Six geese a laying,"
  853. DATA "Five golden rings,"
  854. DATA "Four calling birds,"
  855. DATA "Three French Hens,"
  856. DATA "Two turtle doves"
  857. DATA "And a Partridge in a pear tree."
  858. DATA "On the twelfth day of Christmas"
  859. DATA "my true love sent to me:"
  860. DATA "Twelve drummers drumming,"
  861. DATA "Eleven pipers piping,"
  862. DATA "Ten lords a leaping,"
  863. DATA "Nine ladies dancing,"
  864. DATA "Eight maids a milking,"
  865. DATA "Seven swans a swimming,"
  866. DATA "Six geese a laying,"
  867. DATA "Five golden rings,"
  868. DATA "Four calling birds,"
  869. DATA "Three French Hens,"
  870. DATA "Two turtle doves"
  871. DATA "And a Partridge in a pear tree."
  872. DATA "**** Up On the Housetop ****"
  873. DATA "Up on the housetop"
  874. DATA "reindeer pause,"
  875. DATA "Out jumps good old Santa Claus."
  876. DATA "Down thru' the chimney"
  877. DATA "with lots of toys,"
  878. DATA "All for the little ones,"
  879. DATA "Christmas joys."
  880. DATA "Ho, ho, ho!"
  881. DATA "Who wouldn't go!"
  882. DATA "Ho, ho, ho!"
  883. DATA "Who wouldn't go!"
  884. DATA "Up on the housetop,"
  885. DATA "click, click, click,"
  886. DATA "Down thru' the chimney"
  887. DATA "with good Saint Nick."
  888. DATA "First comes the stocking"
  889. DATA "of little Nell,"
  890. DATA "Oh, dear Santa"
  891. DATA "fill it well;"
  892. DATA "Give her a dolly"
  893. DATA "that laughs and cries"
  894. DATA "One that will open"
  895. DATA "and shut her eyes."
  896. DATA "Ho, ho, ho!"
  897. DATA "Who wouldn't go!"
  898. DATA "Ho, ho, ho!"
  899. DATA "Who wouldn't go!"
  900. DATA "Up on the housetop,"
  901. DATA "click, click, click,"
  902. DATA "Down thru' the chimney"
  903. DATA "with good Saint Nick."
  904. DATA "Next comes the stocking"
  905. DATA "of little Will,"
  906. DATA "Oh just see"
  907. DATA "what a glorious fill"
  908. DATA "Here is a hammer"
  909. DATA "and lots of tacks,"
  910. DATA "Also a ball"
  911. DATA "and a whip that cracks."
  912. DATA "Ho, ho, ho!"
  913. DATA "Who wouldn't go!"
  914. DATA "Ho, ho, ho!"
  915. DATA "Who wouldn't go!"
  916. DATA "Up on the housetop,"
  917. DATA "click, click, click,"
  918. DATA "Down thru' the chimney"
  919. DATA "with good Saint Nick."
  920. DATA "**** We Three Kings ****"
  921. DATA "[all sing]"
  922. DATA "We three kings of orient are,"
  923. DATA "bearing gifts we traverse afar"
  924. DATA "Field and fountain,"
  925. DATA "moor and mountain,"
  926. DATA "following yonder star."
  927. DATA "O star of wonder, star of night,"
  928. DATA "star with royal beauty bright."
  929. DATA "Westward leading, still proceeding,"
  930. DATA "Guide us to thy perfect light."
  931. DATA "[Melchior sings]"
  932. DATA "Born a King on Bethlehem's plain,"
  933. DATA "Gold I bring to crown Him again"
  934. DATA "King for ever, ceasing never"
  935. DATA "over us all to reign."
  936. DATA "[all sing]"
  937. DATA "O star of wonder, star of night,"
  938. DATA "star with royal beauty bright."
  939. DATA "Westward leading, still proceeding,"
  940. DATA "Guide us to thy perfect light."
  941. DATA "[Casper sings]"
  942. DATA "Frankincense to offer have I,"
  943. DATA "incense owns a Deity nigh"
  944. DATA "Prayer and praising, all men raising,"
  945. DATA "Worship Him, God most high."
  946. DATA "[all sing]"
  947. DATA "O star of wonder, star of night,"
  948. DATA "star with royal beauty bright."
  949. DATA "Westward leading, still proceeding,"
  950. DATA "Guide us to thy perfect light."
  951. DATA "[Balthazar sings]"
  952. DATA "Myrrh is mine,"
  953. DATA "its bitter perfume breathes"
  954. DATA "a life of gathering gloom."
  955. DATA "Sorrowing, sighing, bleeding, dying,"
  956. DATA "sealed in the stone cold tomb."
  957. DATA "[all sing]"
  958. DATA "O star of wonder, star of night,"
  959. DATA "star with royal beauty bright."
  960. DATA "Westward leading, still proceeding,"
  961. DATA "Guide us to thy perfect light."
  962. DATA "Glorious now behold Him arise,"
  963. DATA "King and God and Sacrifice!"
  964. DATA "Al-le-lu-ia, al-le-lu-ia,"
  965. DATA "heaven to earth replies."
  966. DATA "O star of wonder, star of night,"
  967. DATA "star with royal beauty bright."
  968. DATA "Westward leading, still proceeding,"
  969. DATA "Guide us to thy perfect light."
  970. DATA "**** We Wish You A Merry Christmas ****"
  971. DATA "We wish you a merry Christmas"
  972. DATA "We wish you a merry Christmas"
  973. DATA "We wish you a merry Christmas"
  974. DATA "And a happy New Year."
  975. DATA "Glad tidings we bring"
  976. DATA "To you and your kin;"
  977. DATA "Glad tidings for Christmas"
  978. DATA "And a happy New Year!"
  979. DATA "We want some figgy pudding"
  980. DATA "We want some figgy pudding"
  981. DATA "We want some figgy pudding"
  982. DATA "Please bring it right here!"
  983. DATA "Glad tidings we bring"
  984. DATA "To you and your kin;"
  985. DATA "Glad tidings for Christmas"
  986. DATA "And a happy New Year!"
  987. DATA "We won't go until we get some"
  988. DATA "We won't go until we get some"
  989. DATA "We won't go until we get some"
  990. DATA "So bring it out here!"
  991. DATA "Glad tidings we bring"
  992. DATA "To you and your kin;"
  993. DATA "Glad tidings for Christmas"
  994. DATA "And a happy New Year!"
  995. DATA "We wish you a Merry Christmas"
  996. DATA "We wish you a Merry Christmas"
  997. DATA "We wish you a Merry Christmas"
  998. DATA "And a happy New Year."
  999. DATA "Glad tidings we bring"
  1000. DATA "To you and your kin;"
  1001. DATA "Glad tidings for Christmas"
  1002. DATA "And a happy New Year!"
  1003. DATA "**** What Child Is This? ****"
  1004. DATA "What Child is this, who laid to rest,"
  1005. DATA "On Mary's lap is sleeping?"
  1006. DATA "Whom angels greet with anthems sweet"
  1007. DATA "While shepherds watch are keeping?"
  1008. DATA "This, this is Christ the King"
  1009. DATA "Whom shepherds guard and angels sing."
  1010. DATA "Haste, haste to bring Him laud,"
  1011. DATA "The Babe, the Son of Mary."
  1012. DATA "Why lies He in such mean estate"
  1013. DATA "Where ox and ass are feeding?"
  1014. DATA "Good Christian, fear: for sinners here,"
  1015. DATA "The silent Word is pleading."
  1016. DATA "This, this is Christ the King"
  1017. DATA "Whom shepherds guard and angels sing."
  1018. DATA "Haste, haste to bring Him laud,"
  1019. DATA "The Babe, the Son of Mary."
  1020. DATA "Nails, spear, shall pierce Him through,"
  1021. DATA "The Cross be borne, for me, for you:"
  1022. DATA "Hail, hail, the Word made flesh,"
  1023. DATA "The Babe, the Son of Mary!"
  1024. DATA "This, this is Christ the King"
  1025. DATA "Whom shepherds guard and angels sing."
  1026. DATA "Haste, haste to bring Him laud,"
  1027. DATA "The Babe, the Son of Mary."
  1028. DATA "So bring Him incense, gold and myrrh;"
  1029. DATA "Come peasant, king to own Him."
  1030. DATA "The King of Kings salvation brings;"
  1031. DATA "Let loving hearts enthrone Him."
  1032. DATA "This, this is Christ the King"
  1033. DATA "Whom shepherds guard and angels sing."
  1034. DATA "Haste, haste to bring Him laud,"
  1035. DATA "The Babe, the Son of Mary."
  1036. DATA "Raise, raise, the song on high,"
  1037. DATA "The Virgin sings her lullaby:"
  1038. DATA "Joy joy for Christ is born,"
  1039. DATA "The Babe, the Son of Mary!"
  1040. DATA "This, this is Christ the King"
  1041. DATA "Whom shepherds guard and angels sing."
  1042. DATA "Haste, haste to bring Him laud,"
  1043. DATA "The Babe, the Son of Mary."
  1044. DATA "**** While Shepherds Watched Their Flocks ****"
  1045. DATA "While shepherds watched their flocks by night,"
  1046. DATA "All seated on the ground,"
  1047. DATA "The angel of the Lord came down,"
  1048. DATA "And glory shone around."
  1049. DATA "'Fear not,' said he, for mighty dread"
  1050. DATA "Had seized their troubled mind,"
  1051. DATA "'Glad tidings of great joy I bring"
  1052. DATA "To you and all mankind.'"
  1053. DATA "'To you, in David's town this day,"
  1054. DATA "Is born of David's line"
  1055. DATA "The Savior who is Christ the Lord,"
  1056. DATA "And this shall be the sign:"
  1057. DATA "The heavenly Babe you there shall find"
  1058. DATA "To human view displayed,"
  1059. DATA "All meanly wrapped in swathing bands,"
  1060. DATA "And in a manger laid.'"
  1061. DATA "Thus spake the seraph, and forthwith"
  1062. DATA "Appeared a shining throng"
  1063. DATA "Of angels praising God and thus"
  1064. DATA "Addressed their joyful song:"
  1065. DATA "'All glory be to God on high"
  1066. DATA "And on the earth be peace,"
  1067. DATA "Goodwill henceforth from heaven to men"
  1068. DATA "Begin and never cease.'"
  1069. DATA "**** With Wondering Awe ****"
  1070. DATA "With wondering awe the wise men saw"
  1071. DATA "The star in heaven springing,"
  1072. DATA "And with delight, in peaceful night,"
  1073. DATA "They heard the angel singing:"
  1074. DATA "Hosanna, hosanna, hosanna to His name!"
  1075. DATA "By light of star they traveled far"
  1076. DATA "To seek the lowly manger,"
  1077. DATA "A humble bed wherein was laid"
  1078. DATA "The wondrous little Stranger."
  1079. DATA "Hosanna, hosanna, hosanna to His name!"
  1080. DATA "And still is found, the world around,"
  1081. DATA "The old and hallowed story,"
  1082. DATA "And still is sung in every tongue"
  1083. DATA "The angels' song of glory:"
  1084. DATA "Hosanna, hosanna, hosanna to His name!"
  1085. DATA "The heavenly star its rays afar"
  1086. DATA "On every land is throwing,"
  1087. DATA "And shall not cease till holy peace"
  1088. DATA "In all the earth is growing."
  1089. DATA "Hosanna, hosanna, hosanna to His name!"
  1090. DATA "EOD"
  1091.  

Less than 30 songs here, but the format should be simple enough that anyone can add the lyrics to whatever they like to this listing without any problems.  View them on your screen, or print them to a file to carry on your phone/ipad as you go and serenade your neighbors for X-Mas.  :D
https://github.com/SteveMcNeill/Steve64 — A github collection of all things Steve!

Offline Dav

  • Forum Resident
  • Posts: 792
    • View Profile
Re: 🎄🎁✨ Holiday Season - are you ready to code?
« Reply #35 on: December 10, 2020, 01:19:11 pm »
There's some really cool stuff posted here. It made me throw something together.  Here's an old school animated Christmas card.  A little snow, a little tree, a little present, a little Santa, a little music.  Merry Christmas!

- Dav

Code: QB64: [Select]
  1. '=================
  2. 'CHRISTMAS2020.bas
  3. '=================
  4. 'Christmas card to the QB64 community.
  5. 'Coded by Dav, DEC/2020
  6.  
  7. 'Shows a liite snow, santa, tree, present, animation, music.
  8. 'Merry Christmas.
  9.  
  10. SCREEN _NEWIMAGE(868, 540, 32)
  11.  
  12. DIM SHARED wht& 'subs use this...
  13. wht& = _RGB(255, 255, 255) 'white color
  14.  
  15. ON TIMER(.5) GOSUB ANIMATE
  16.  
  17.  
  18.  
  19. '======  draw white color outlines first ...
  20.  
  21. 'Draw tree star
  22. CLINE ("199129209145214126234126219113232095211101201083196102176102192117180134199129")
  23.  
  24. 'Draw the tree
  25. CLINE ("199129175168190168156210168210142237160237129276141276110312132312102348120348")
  26. CLINE ("120348093385108394136399172402242402283399316393327387300348312348284311309311")
  27. CLINE ("309311276275289275258236272236246209259209224168239168214126")
  28. CLINE ("173402181435234435242402")
  29.  
  30. 'Draw fireplace
  31. CLINE ("613328613275618272618268613269613215607209612206613199")
  32. CLINE ("467345489346493206529188582188627204627344649344")
  33. CLINE ("507327506276503274506270505216514207513196")
  34. CLINE ("448340418358417364692364692359669342")
  35. CLINE ("490345508328613328626345")
  36. LINE (422, 105)-(697, 166), wht&, B: LINE (449, 166)-(466, 344), wht&, B
  37. LINE (648, 166)-(669, 345), wht&, B: LINE (481, 0)-(481, 104), wht&
  38. LINE (631, 0)-(631, 104), wht&
  39.  
  40. 'draw santa
  41. CLINE ("514208540214560217583215603211611207613199")
  42. CLINE ("524210524252539257561218580254594251598230595213")
  43. CLINE ("582254591271591275589275590280593284599282598278606278613274")
  44. CLINE ("539258529275529278531280530283523284522280514282506276")
  45. CLINE ("529189556195569194587190")
  46. CLINE ("594251598270613269")
  47. CLINE ("526253523272506270")
  48.  
  49. 'draw window
  50. CLINE ("000104157104157000"): CLINE ("000093146093146000")
  51. CLINE ("035093035028146028"): CLINE ("028093028028000028")
  52. CLINE ("000022028022028000"): CLINE ("035000035022146022")
  53.  
  54. 'draw present
  55. CLINE ("412428388416375425383446402446425434459438452407422425421422412428")
  56. CLINE ("377432353433352451421470488451487435420448403446391446")
  57. CLINE ("419448422469420515359492358452"): CLINE ("420437447444470439459438")
  58. CLINE ("470439469456454460455442"): CLINE ("386433395430404433")
  59. CLINE ("458433487436467440")
  60. LINE (412, 428)-(416, 438), wht&: LINE (421, 424)-(424, 434), wht&
  61. LINE (427, 430)-(443, 423), wht&: LINE (352, 434)-(380, 440), wht&
  62. LINE (373, 440)-(372, 456), wht&: LINE (392, 446)-(392, 461), wht&
  63. LINE (450, 461)-(450, 504), wht&: LINE (463, 458)-(463, 499), wht&
  64. LINE (420, 516)-(482, 491), wht&: LINE (482, 491)-(481, 452), wht&
  65. LINE (378, 458)-(378, 500), wht&: LINE (395, 462)-(394, 505), wht&
  66.  
  67. 'draw walls (left side)
  68. LINE (0, 190)-(173, 190), wht&: LINE (244, 190)-(449, 190), wht&
  69. LINE (0, 206)-(159, 206), wht&: LINE (257, 206)-(449, 206), wht&
  70. LINE (0, 338)-(109, 338), wht&: LINE (305, 338)-(449, 338), wht&
  71.  
  72. 'draw walls (right side)
  73. CLINE ("669192805192867229"): CLINE ("669209805209867244")
  74. CLINE ("669341806341867390"): LINE (805, 0)-(805, 341), wht&
  75.  
  76.  
  77. '======= Paint in the colors....
  78.  
  79. CPAINT ("371435362445366469424443407455408491441454438484371435466436478446473471"), _RGB(31, 255, 31)
  80. CPAINT ("400436420430440430380450446440460450385475455475"), _RGB(255, 0, 0)
  81. CPAINT ("750260380240060240660222543118455183"), _RGB(76, 109, 138)
  82. CPAINT ("525056638214600345153019033026"), _RGB(40, 57, 72)
  83. CPAINT ("707075499209620246297077"), _RGB(67, 87, 123)
  84. CPAINT ("569192537226582236"), _RGB(205, 4, 23)
  85. CPAINT ("515235557278603253"), _RGB(80, 120, 153)
  86. CPAINT ("786202092198322199"), _RGB(83, 120, 153)
  87. CPAINT ("827217842226"), _RGB(74, 107, 136)
  88. PAINT (207, 417), _RGB(176, 65, 13), wht&
  89. PAINT (204, 113), _RGB(255, 255, 69), wht&
  90. PAINT (204, 239), _RGB(0, 94, 0), wht&
  91. PAINT (650, 470), _RGB(28, 40, 50), wht&
  92. PAINT (840, 120), _RGB(56, 80, 102), wht&
  93. PAINT (842, 285), _RGB(62, 89, 114), wht&
  94. PAINT (567, 206), wht&, wht&
  95.  
  96. 'draw santas thought box
  97. LINE (657, 20)-(790, 70), wht&, BF
  98. LINE (637, 100)-(680, 70), wht&
  99. LINE (637, 100)-(734, 70), wht&
  100. PAINT (680, 77), wht&, wht&
  101. COLOR _RGB(0, 0, 0)
  102. _PRINTSTRING (662, 27), "I KNEW I ate"
  103. _PRINTSTRING (662, 45), "too much turkey"
  104.  
  105. '=====================================================
  106.  
  107.  
  108.  
  109. 'Play We wish you a Merry Christmas song...
  110. Music$ = "mbt160o2g4o3c4c8d8c8o2b8a4a4a4o3d4d8e8d8c8o2b4g4g4o3e4e8f8"
  111. Music$ = Music$ + "e8d8c4o2a4g8g8a4o3d4o2b4o3c2o2g4o3c4c4c4o2b2b4o3"
  112. Music$ = Music$ + "c4o2b4a4g2o3d4e4d4c4o3g4o2g4g8g8a4o3d4o2b4o3c2"
  113. Music$ = Music$ + "o2g4o3c4c8d8c8o2b8a4a4a4o3d4d8e8d8c8o2b4g4g4"
  114. Music$ = Music$ + "o3e4e8f8e8d8c4o2a4g8g8a4o3d4o2b4o3c2"
  115. PLAY Music$
  116.  
  117. 'Show until keypress
  118.  
  119.  
  120.  
  121. '======================================================================
  122.  
  123.  
  124.  
  125. '======
  126. ANIMATE:
  127. '======
  128.  
  129. 'show a little snow in window frames
  130. SNOW 0, 0, 27, 20 'top left frame
  131. SNOW 36, 0, 145, 20 'top right frame
  132. SNOW 0, 29, 27, 90 'bottom left
  133. SNOW 36, 29, 145, 91 'bottom right
  134.  
  135. 'Draw/color ornaments
  136. CCIRCLE ("198157051981871123019805191224062302230717126011")
  137. CCIRCLE ("217250082562550515430209195295122282900425427806")
  138. CCIRCLE ("256303051493390718033008209321092433451528032906")
  139. CCIRCLE ("1543751319136804230383062863630927838707")
  140.  
  141. 'blink a message
  142. IF INT(RND * 2) + 1 = 1 THEN COLOR _RGB(0, 0, 0) ELSE COLOR _RGB(255, 255, 255)
  143.  
  144. _PRINTSTRING (450, 128), "M E R R Y  C H R I S T M A S"
  145.  
  146.  
  147.  
  148. '==========================================================================
  149.  
  150. SUB CLINE (a$)
  151.     'draws continuious white line based on string of x/y cordinates
  152.     '(yes, I could have used DRAW instead, but wanted to roll my own...)
  153.     'set first line draw position
  154.     LINE (VAL(MID$(a$, 1, 3)), VAL(MID$(a$, 4, 3)))-(VAL(MID$(a$, 7, 3)), VAL(MID$(a$, 10, 3))), wht&
  155.     'continue based on last line position
  156.     FOR d = 13 TO LEN(a$) STEP 6
  157.         LINE -(VAL(MID$(a$, d, 3)), VAL(MID$(a$, d + 3, 3))), wht&
  158.     NEXT
  159.  
  160. SUB CPAINT (a$, clr&)
  161.     'paints string of cordinates with color, stops at wht& color
  162.     FOR t = 1 TO LEN(a$) STEP 6
  163.         PAINT (VAL(MID$(a$, t, 3)), VAL(MID$(a$, t + 3, 3))), clr&, wht&
  164.     NEXT
  165.  
  166. SUB CCIRCLE (a$)
  167.     'Draw circles based on string of x/y/r data, colors it too
  168.     FOR t = 1 TO LEN(a$) STEP 8
  169.         CIRCLE (VAL(MID$(a$, t, 3)), VAL(MID$(a$, t + 3, 3))), VAL(MID$(a$, t + 6, 2)), wht&
  170.         clr& = INT(RND * 5) + 1 'pick from 5 random colors
  171.         IF clr& = 1 THEN clr& = _RGB(128, 255, 255) 'almost white
  172.         IF clr& = 2 THEN clr& = _RGB(255, 255, 69) 'yellow
  173.         IF clr& = 3 THEN clr& = _RGB(205, 4, 23) 'red
  174.         IF clr& = 4 THEN clr& = _RGB(31, 255, 32) 'green
  175.         IF clr& = 5 THEN clr& = _RGB(0, 31, 221) 'blue
  176.         PAINT (VAL(MID$(a$, t, 3)), VAL(MID$(a$, t + 3, 3))), clr&, wht&
  177.     NEXT
  178.  
  179. SUB SNOW (x1, y1, x2, y2)
  180.     'random snow pattern in given window
  181.     LINE (x1, y1)-(x2, y2), _RGB(0, 0, 0), BF 'snow plow
  182.     FOR x = x1 TO x2
  183.         FOR y = y1 TO y2
  184.             IF INT(RND * 200) = 1 THEN PSET (x, y), wht&
  185.         NEXT
  186.     NEXT
  187.  
« Last Edit: December 10, 2020, 02:43:09 pm by Dav »

Offline bplus

  • Global Moderator
  • Forum Resident
  • Posts: 8053
  • b = b + ...
    • View Profile
Re: 🎄🎁✨ Holiday Season - are you ready to code?
« Reply #36 on: December 10, 2020, 01:44:30 pm »
Ahh-ha! That's cute Dav!

Offline SierraKen

  • Forum Resident
  • Posts: 1454
    • View Profile
Re: 🎄🎁✨ Holiday Season - are you ready to code?
« Reply #37 on: December 10, 2020, 02:28:55 pm »
Awesome idea Steve, another way to make QB64 into a useful tool. :)

Dav, that's just incredible. You must have spent hours on that. Good job!

Offline Dav

  • Forum Resident
  • Posts: 792
    • View Profile
Re: 🎄🎁✨ Holiday Season - are you ready to code?
« Reply #38 on: December 10, 2020, 02:44:57 pm »
Thanks, ya'll.  Yep, I did spend too much time on it. 

I just edited the code to add a Santa's thought box.  Forgot to add it.  Run it again to read what santa says.

- Dav
« Last Edit: December 10, 2020, 03:38:37 pm by Dav »

Offline SierraKen

  • Forum Resident
  • Posts: 1454
    • View Profile
Re: 🎄🎁✨ Holiday Season - are you ready to code?
« Reply #39 on: December 10, 2020, 04:34:52 pm »
LOL good one. :)

Offline Petr

  • Forum Resident
  • Posts: 1720
  • The best code is the DNA of the hops.
    • View Profile
Re: 🎄🎁✨ Holiday Season - are you ready to code?
« Reply #40 on: December 10, 2020, 04:47:55 pm »
Very nice work, Dav!

Offline SierraKen

  • Forum Resident
  • Posts: 1454
    • View Profile
Re: 🎄🎁✨ Holiday Season - are you ready to code?
« Reply #41 on: December 10, 2020, 07:09:08 pm »
I worked on the Christmas Tree Ornaments one again for most of the day today and made it much better. I learned a little bit from B+'s mod. Making many of them was easier than I thought. :) I got caught in a minor snag when the different shapes of them slowed and sped up the lyrics on the title bar a fraction so I changed it completely to TIMER. On my last one I was using the number of rotation degree on the ornament for the lyrics as well and it just doesn't work with many of them. Plus TIMER is a lot better for different types of computers. I also have it change to new ornaments every couple of seconds with completely different colors. :) The program ends when the song finishes. I also found out some more things about the PLAY command in that you only need one "MB" command in the string as well as any other command, which you put at the start of your list of PLAY commands. I changed the octave of the song to a bit more bass also. I'm pretty happy about this one. Tell me what you think, thanks.

Edit: I just remembered this this won't work right before midnight because of the TIMER, which counts up from midnight. So I made it so the program stops if it's a few seconds before midnight or less. When it ends, it tells you to please run it after midnight because of the TIMER. This certain code probably won't be tested because I very rarely stay up past midnight. But I believe it works. 

Code: QB64: [Select]
  1. 'Musical Christmas Tree Ornaments
  2. 'Made on December 10, 2020.
  3. 'by SierraKen
  4. 'Music Notes and Lyrics found here: https://www.piano-keyboard-guide.com/how-to-play-jingle-bells-easy-piano-keyboard-tutorial-for-beginners/
  5.  
  6. DIM orn AS LONG
  7. DIM ornx(30), orny(30), size(30)
  8. DIM image AS LONG, scale AS SINGLE, rotation AS SINGLE
  9.  
  10. JingleBells
  11. start:
  12. READ lyrics$
  13. IF lyrics$ = "done" THEN END
  14. _TITLE lyrics$
  15. IF orn& <> 0 THEN _FREEIMAGE orn&
  16. t = 1
  17. i& = _NEWIMAGE(800, 600, 32)
  18. ornament
  19. orn& = _COPYIMAGE(0)
  20. FOR o = 1 TO 30
  21.     ornx(o) = RND * _WIDTH
  22.     orny(o) = RND * _HEIGHT
  23.     size(o) = RND
  24.     x = ornx(o)
  25.     y = orny(o)
  26.     scale = size(o)
  27.     rotation = turn
  28.     image = orn&
  29.     RotoZoom x, y, image, scale, rotation
  30. oldt = TIMER
  31. IF oldt > 86327 THEN CLS: PRINT "Please run this program after midnight.": PRINT "It won't work right before midnight because of the TIMER it uses.": END
  32.     _LIMIT 60
  33.     FOR oo = 1 TO 30
  34.         x = ornx(oo)
  35.         y = orny(oo)
  36.         scale = size(oo)
  37.         rotation = turn
  38.         image = orn&
  39.         RotoZoom x, y, image, scale, rotation
  40.     NEXT oo
  41.     _DELAY .01
  42.     _DISPLAY
  43.     CLS
  44.     a$ = INKEY$
  45.     IF a$ = CHR$(27) THEN END
  46.     turn = turn + 1
  47.     t = TIMER - oldt
  48.     IF t > 2.37 THEN GOTO start:
  49.  
  50. song:
  51. DATA "Jingle bells, jingle bells."
  52. DATA "Jingle all the way"
  53. DATA "Oh, what fun it is to ride"
  54. DATA "In a one horse open sleigh hey"
  55. DATA "Jingle bells, jingle bells"
  56. DATA "Jingle all the way"
  57. DATA "Oh, what fun it is to ride"
  58. DATA "In a one horse open sleigh"
  59. DATA "Dashing through the snow"
  60. DATA "On a one horse open sleigh"
  61. DATA "O'er the fields we go,"
  62. DATA "Laughing all the way"
  63. DATA "Bells on bob tail ring,"
  64. DATA "making spirits bright"
  65. DATA "What fun it is to laugh and sing"
  66. DATA "A sleighing song tonight, Oh"
  67. DATA "Jingle bells, jingle bells"
  68. DATA "Jingle all the way"
  69. DATA "Oh, what fun it is to ride"
  70. DATA "In a one horse open sleigh hey"
  71. DATA "Jingle bells, jingle bells"
  72. DATA "Jingle all the way"
  73. DATA "Oh, what fun it is to ride"
  74. DATA "In a one horse open sleigh"
  75. DATA "done"
  76.  
  77. SUB JingleBells
  78.     PLAY "MB O3 L5 E E E E E E"
  79.     PLAY "E G C D E"
  80.     PLAY "F F F F F E E"
  81.     PLAY "E E E D D E D G"
  82.     PLAY "E E E E E E"
  83.     PLAY "E G C D E"
  84.     PLAY "F F F F F E E"
  85.     PLAY "E E G G F D C"
  86.  
  87.     PLAY "G E D C G"
  88.     PLAY "G G G E D C A"
  89.     PLAY "A F E D B"
  90.     PLAY "A G F D E"
  91.     PLAY "G E D C G"
  92.     PLAY "G E D C A"
  93.     PLAY "A A F E D G G G"
  94.     PLAY "G A G F D C G"
  95.  
  96.     PLAY "E E E E E E"
  97.     PLAY "E G C D E"
  98.     PLAY "F F F F F E E"
  99.     PLAY "E E E D D E D G"
  100.     PLAY "E E E E E E"
  101.     PLAY "E G C D E"
  102.     PLAY "F F F F F E E"
  103.     PLAY "E E G G F D C"
  104.  
  105. SUB ornament
  106.     c1 = INT(RND * 155) + 100
  107.     c2 = INT(RND * 155) + 100
  108.     c3 = INT(RND * 155) + 100
  109.     shade = 0
  110.     FOR cir = .01 TO 130 STEP .1
  111.         shade = shade - .1
  112.         CIRCLE (400, 300), cir, _RGB32(c1 + shade, c2 + shade, c3 + shade)
  113.     NEXT cir
  114.     yy = 300
  115.     c4 = INT(RND * 155) + 100
  116.     c5 = INT(RND * 155) + 100
  117.     c6 = INT(RND * 155) + 100
  118.     CIRCLE (400, yy), 130, _RGB32(c4, c5, c6), 2 * _PI, _PI, .5
  119.     yy = yy - 40.5
  120.     CIRCLE (400, yy), 124, _RGB32(c4, c5, c6), 2 * _PI, _PI, .4
  121.     yy = yy - 30.5
  122.     CIRCLE (400, yy), 105, _RGB32(c4, c5, c6), 2 * _PI, _PI, .39
  123.     yy = 300
  124.     yy = yy + 22.5
  125.     CIRCLE (400, yy), 130, _RGB32(c4, c5, c6), 2 * _PI, _PI, .5
  126.     yy = yy + 22.5
  127.     CIRCLE (400, yy), 125, _RGB32(c4, c5, c6), 2 * _PI, _PI, .5
  128.     yy = yy + 22.5
  129.     CIRCLE (400, yy), 110, _RGB32(c4, c5, c6), 2 * _PI, _PI, .5
  130.     yy = yy + 22.5
  131.     CIRCLE (400, yy), 75, _RGB32(c4, c5, c6), , , .5
  132.     yy = yy + 22.5
  133.     CIRCLE (400, yy), 15, _RGB32(c4, c5, c6), , , .5
  134.  
  135. SUB RotoZoom (X AS LONG, Y AS LONG, Image AS LONG, Scale AS SINGLE, Rotation AS SINGLE)
  136.     DIM px(3) AS SINGLE: DIM py(3) AS SINGLE
  137.     W& = _WIDTH(Image&): H& = _HEIGHT(Image&)
  138.     px(0) = -W& / 2: py(0) = -H& / 2: px(1) = -W& / 2: py(1) = H& / 2
  139.     px(2) = W& / 2: py(2) = H& / 2: px(3) = W& / 2: py(3) = -H& / 2
  140.     sinr! = SIN(-Rotation / 57.2957795131): cosr! = COS(-Rotation / 57.2957795131)
  141.     FOR i& = 0 TO 3
  142.         x2& = (px(i&) * cosr! + sinr! * py(i&)) * Scale + X: y2& = (py(i&) * cosr! - px(i&) * sinr!) * Scale + Y
  143.         px(i&) = x2&: py(i&) = y2&
  144.     NEXT
  145.     _MAPTRIANGLE (0, 0)-(0, H& - 1)-(W& - 1, H& - 1), Image& TO(px(0), py(0))-(px(1), py(1))-(px(2), py(2))
  146.     _MAPTRIANGLE (0, 0)-(W& - 1, 0)-(W& - 1, H& - 1), Image& TO(px(0), py(0))-(px(3), py(3))-(px(2), py(2))
  147.  
« Last Edit: December 10, 2020, 08:06:42 pm by SierraKen »

Offline OldMoses

  • Seasoned Forum Regular
  • Posts: 469
    • View Profile
Re: 🎄🎁✨ Holiday Season - are you ready to code?
« Reply #42 on: December 10, 2020, 07:28:21 pm »
A simple little tree topper. I wasn't expecting the gold effect.

Code: QB64: [Select]
  1.  
  2. SCREEN _NEWIMAGE(600, 600, 32)
  3.  
  4. a = _PI * 2 / 5: b = a / 2: r = _PI * 2 / 360
  5. c1& = &HFFFF0000: c2& = &HFF00FF00
  6.  
  7. FOR x = 0 TO 4
  8.     o(x) = x * a
  9.     i(x) = x * a - b
  10.  
  11. x = 0: d = 1
  12.     CLS
  13.     FOR k = 0 TO 100 STEP 5
  14.         FOR j = 0 TO 4
  15.             LINE (SIN(o(j) + (x * r)) * (200 - k) + 300, COS(o(j) + (x * r)) * (200 - k) + 300)-_
  16.                 (SIN(i(j) + (x * r)) * (80 - k) + 300, COS(i(j) + (x * r)) * (80 - k) + 300), c1&
  17.             LINE (SIN(o(j) + (x * r)) * (200 - k) + 300, COS(o(j) + (x * r)) * (200 - k) + 300)-_
  18.                 (SIN(i(j) + a + (x * r)) * (80 - k) + 300, COS(i(j) + a + (x * r)) * (80 - k) + 300), c1&
  19.         NEXT j
  20.         SWAP c1&, c2&
  21.     NEXT k
  22.     IF x MOD 72 = 0 THEN
  23.         d = -d: SWAP c1&, c2&
  24.     END IF
  25.     x = x + d
  26.     _LIMIT 100
  27.     _DISPLAY

Offline SierraKen

  • Forum Resident
  • Posts: 1454
    • View Profile
Re: 🎄🎁✨ Holiday Season - are you ready to code?
« Reply #43 on: December 10, 2020, 08:08:20 pm »
I just updated my last code above because of the TIMER before midnight problem. TIMER counts up from midnight and the program wouldn't work if you started it right before midnight. So I added code that ends the program if it's near midnight, and explains why.

Offline SierraKen

  • Forum Resident
  • Posts: 1454
    • View Profile
Re: 🎄🎁✨ Holiday Season - are you ready to code?
« Reply #44 on: December 10, 2020, 08:09:56 pm »
OldMoses that's really cool looking!