'RANDOMIZE TIMER
'sky
CircleFill
0, 500, i
, _RGB32(0, 0, 100, 10)
'big star glow
EllipseFill
600, i
, map
(i
, 200, 280, 80, 100), 150, _RGB32(0, 0, 100, 15)
'big star
'mountain range
LINE (i
, 480 + COS(_D2R(i
)) * 5)-(i
+ _WIDTH / 3, _HEIGHT), _RGB32(0, 0, 40, map
(i
, -_WIDTH, _WIDTH, 0, 20))
'snow
'trees
h2
= h1
- (50 + RND * 50) m = 30
LINE (x
, i
)-(x
+ COS(_D2R(j
)) * RND * map
(i
, h1
, h2
, RND * m
, 1), i
+ SIN(_D2R(j
)) * RND * map
(i
, h1
, h2
, m
, 1)), _RGB32(0, RND * m
, 0, RND * 100)
m = m + 30
LINE (x
, i
)-(x
+ COS(_D2R(j
)) * RND * map
(i
, h1
, h2
, RND * m
, 1), i
+ SIN(_D2R(j
)) * RND * map
(i
, h1
, h2
, m
, 1)), _RGB32(0, RND * m
, 0, RND * 100)
'create stars
IF stars
(i
).x
- stars
(i
).size
<= 0 THEN stars
(i
).x
= stars
(i
).x
+ stars
(i
).size
IF stars
(i
).x
+ stars
(i
).size
>= _WIDTH THEN stars
(i
).x
= stars
(i
).x
- stars
(i
).size
stars
(i
).maxlife
= 20 + RND * 180 stars(i).lifeStep = 1
logo$ = "internal/source/qb64icon32.png"
CircleFill stars
(i
).x
, stars
(i
).y
, stars
(i
).size
, _RGB32(map
(stars
(i
).life
, 0, stars
(i
).maxlife
, 0, 255), map
(stars
(i
).life
, 0, stars
(i
).maxlife
, 0, 80)) stars(i).life = stars(i).life + stars(i).lifeStep
IF stars
(i
).life
> stars
(i
).maxlife
OR stars
(i
).life
< 0 THEN stars(i).lifeStep = stars(i).lifeStep * -1
startpause = 0
oops:
setMsg:
msg$ = "B C4294967295 M43,260 M43,261 M43,261 M44,261 M44,261 M46,260 M46,260 M60,249"
msg$ = msg$ + "M60,249 M62,247 M62,247 M63,245 M64,242 M65,240 M65,240 M68,232 M68,232 M68,231"
msg$ = msg$ + "M68,231 M69,229 M69,229 M69,231 M69,231 M69,234 M69,234 M69,236 M69,236 M71,245"
msg$ = msg$ + "M71,245 M71,250 M71,250 M71,251 M71,251 M71,253 M71,254 M72,258 M72,258 M72,261"
msg$ = msg$ + "M72,261 M72,264 M72,264 M74,274 M74,274 M74,275 M74,276 M75,280 M75,280 M75,282"
msg$ = msg$ + "M75,283 M76,289 M76,289 M76,293 M76,293 M77,293 M77,293 M77,292 M77,292 M80,286"
msg$ = msg$ + "M80,286 M82,282 M82,282 M84,277 M84,277 M86,272 M86,272 M88,265 M88,265 M90,259"
msg$ = msg$ + "M90,259 M91,256 M92,251 M93,246 M93,246 M95,232 M95,232 M97,222 M97,222 M97,221"
msg$ = msg$ + "M97,221 M97,220 M97,220 M97,217 M97,217 M97,216 M97,216 M98,221 M98,221 M98,224"
msg$ = msg$ + "M98,228 M100,240 M100,240 M100,242 M100,242 M104,260 M104,260 M105,266 M105,266"
msg$ = msg$ + "M105,269 M105,269 M107,276 M107,276 M108,274 M108,274 M110,273 M110,273 M114,267"
msg$ = msg$ + " M115,265 M116,262 M116,262 M122,246 M122,246 M123,241 M123,241 M123,239 M123,"
msg$ = msg$ + "239 M124,225 M124,225 M124,222 M124,222 M124,219 M124,219 M124,217 M124,217 M125"
msg$ = msg$ + ",213 M125,213 M125,208 M125,208 M126,205 M126,205 M126,202 M126,202 M126,200"
msg$ = msg$ + "M126,200 M127,201 M127,201 M127,204 M127,208 M127,212 M127,212 M129,227 M129,227"
msg$ = msg$ + " M129,229 M129,233 M130,234 M130,234 M131,242 M131,242 M132,251 M132,251 M133,"
msg$ = msg$ + "251 M133,251 M135,255 M135,255 M137,258 M137,258 M138,258 M138,258 M141,259 M141"
msg$ = msg$ + ",259 M142,260 M142,260 M148,260 M148,260 M156,258 M156,258 M159,257 M159,257"
msg$ = msg$ + "M161,255 M161,255 M170,247 M170,247 M171,244 M171,244 M173,240 M173,240 M173,238"
msg$ = msg$ + " M173,238 M175,229 M175,229 M175,228 M175,228 M175,227 M175,227 M173,224 M173,"
msg$ = msg$ + "224 M171,222 M171,222 M170,222 M170,222 M169,223 M169,223 M168,227 M168,227 M168"
msg$ = msg$ + ",228 M168,228 M170,234 M170,234 M170,235 M171,238 M172,241 M172,241 M175,245"
msg$ = msg$ + "M175,245 M177,248 M177,248 M178,248 M178,248 M183,249 M183,249 M189,245 M190,244"
msg$ = msg$ + " M192,240 M192,240 M194,226 M194,226 M194,221 M194,221 M192,216 M192,216 M191,"
msg$ = msg$ + "214 M191,214 M190,213 M190,213 M194,212 M194,212 M197,212 M197,212 M199,211 M199"
msg$ = msg$ + ",211 M199,212 M199,212 M198,215 M198,215 M198,217 M198,217 M198,221 M198,221"
msg$ = msg$ + "M198,222 M198,222 M198,225 M198,225 M199,228 M199,228 M199,229 M199,229 M202,234"
msg$ = msg$ + " M202,234 M205,236 M205,236 M208,238 M208,238 M214,237 M214,237 M217,235 M217,"
msg$ = msg$ + "235 M220,231 M220,231 M220,225 M220,225 M219,216 M219,216 M216,208 M216,208 M212"
msg$ = msg$ + ",201 M212,201 M205,197 M205,197 M203,196 M203,196 M204,198 M204,198 M205,198"
msg$ = msg$ + "M208,198 M215,199 M215,199 M218,199 M218,199 M222,199 M222,199 M223,203 M223,203"
msg$ = msg$ + " M223,205 M223,205 M224,211 M224,211 M227,218 M227,218 M228,218 M228,218 M234,"
msg$ = msg$ + "221 M235,221 M236,221 M236,221 M240,216 M240,216 M242,208 M242,205 M243,202 M243"
msg$ = msg$ + ",202 M242,190 M242,190 M242,189 M242,189 M242,188 M242,188 M242,190 M242,190"
msg$ = msg$ + "M243,196 M243,196 M247,212 M247,212 M250,216 M250,216 M256,211 M256,211 M262,203"
msg$ = msg$ + " M262,203 M263,173 M263,173 M262,171 M262,171 M262,170 M262,170 M262,172 M262,"
msg$ = msg$ + "172 M263,181 M263,181 M268,202 M268,202 M273,219 M273,219 M278,235 M278,235 M284"
msg$ = msg$ + ",266 M284,266 M283,272 M283,272 M280,277 M280,277 M279,277 M279,277 M272,264"
msg$ = msg$ + "M272,264 M271,257 M271,257 M271,250 M271,250 M274,240 M275,237 M287,217 M287,217"
msg$ = msg$ + " M294,208 M294,208 M302,200 M302,200 M310,192 M310,192 M319,182 M321,180 M333,"
msg$ = msg$ + "161 M333,161 M335,153 M335,153 M335,150 M335,150 M335,149 M335,149 M335,148 M335"
msg$ = msg$ + ",148 B M151,330 M151,331 M151,331 M155,346 M155,346 M163,360 M163,360 M174,367"
msg$ = msg$ + "M174,367 M199,366 M199,366 M210,362 M210,362 M213,360 M213,360 M214,358 B M175,"
msg$ = msg$ + "285 M178,303 M178,303 M181,340 M181,340 M176,408 M176,408 M177,437 M177,437 M177"
msg$ = msg$ + ",438 M177,438 B M211,333 M222,326 M222,326 M227,322 M227,322 M230,320 B M242,292"
msg$ = msg$ + " M243,299 M243,299 M249,316 M249,316 M252,327 M252,327 M253,330 M253,330 M254,"
msg$ = msg$ + "332 M254,332 M254,334 M254,334 M262,322 M263,321 M264,316 M264,316 M268,303 M268"
msg$ = msg$ + ",303 M270,295 M270,295 M272,288 M273,288 M273,286 M273,286 M274,286 M274,286"
msg$ = msg$ + "M275,292 M275,292 M280,308 M280,308 M284,313 M284,313 M285,313 M285,313 M289,303"
msg$ = msg$ + " M289,303 M291,292 M292,289 M293,278 M293,278 M296,269 M296,269 M301,263 M301,"
msg$ = msg$ + "263 M302,261 M302,261 M302,260 M302,260 M303,263 M303,263 M303,274 M303,274 M305"
msg$ = msg$ + ",284 M305,284 M306,290 M306,290 M308,294 M308,294 M313,298 M313,298 M316,298"
msg$ = msg$ + "M316,298 M332,289 M332,289 M337,280 M337,280 M338,280 B M362,236 M362,235 M362,"
msg$ = msg$ + "235 M361,233 M361,232 M360,228 M360,228 M358,227 M358,227 M351,227 M351,227 M342"
msg$ = msg$ + ",231 M342,231 M341,232 M341,232 M338,238 M338,238 M338,239 M338,239 M335,252"
msg$ = msg$ + "M335,252 M336,261 M336,261 M337,265 M337,265 M338,266 M338,266 M339,268 M339,268"
msg$ = msg$ + " M340,269 M340,269 M342,270 M342,270 M343,271 M343,271 M346,270 M346,270 M349,"
msg$ = msg$ + "268 M349,268 M353,264 M353,264 M355,260 M355,260 M358,251 M358,251 M359,246 M359"
msg$ = msg$ + ",246 M361,241 M361,241 M362,238 M362,238 M363,233 M363,233 M363,234 M363,234"
msg$ = msg$ + "M361,239 M361,240 M360,244 M360,244 M362,256 M362,256 M364,258 M364,258 M367,258"
msg$ = msg$ + " M367,258 M373,256 M373,256 M377,253 M377,253 M383,244 M383,244 M384,240 M384,"
msg$ = msg$ + "240 M385,239 M385,239 B M380,231 M383,224 M383,224 M386,218 M386,218 M392,204"
msg$ = msg$ + "M392,204 M395,192 M395,192 M396,186 M396,186 M396,185 M396,185 M396,187 M396,187"
msg$ = msg$ + " M398,193 M398,193 M401,198 M401,198 M403,199 M403,199 M414,196 M414,196 M418,"
msg$ = msg$ + "194 M418,194 M418,195 M418,195 M418,204 M418,204 M418,213 M418,213 M416,220 M416"
msg$ = msg$ + ",220 M415,223 M414,224 M413,227 M413,227 M406,233 M406,233 M403,234 M403,234"
msg$ = msg$ + "M402,234 M402,234 M401,231 M401,231 M400,229 M400,229 M400,225 M400,225 M404,216"
msg$ = msg$ + " M404,216 M407,212 M407,211 M408,207 M408,207 M408,206 M408,206 B M429,100 M430,"
msg$ = msg$ + "101 M430,101 M430,102 M430,102 M430,130 M430,130 M430,132 M430,132 M429,166 M429"
msg$ = msg$ + ",171 M430,182 M430,182 M431,188 M431,188 M431,195 M431,195 M431,200 M431,200"
msg$ = msg$ + "M431,205 M431,205 M431,206 M431,206 M433,206 B M442,219 M441,219 M441,219 M439,"
msg$ = msg$ + "220 M439,220 M437,221 M437,221 M435,224 M435,224 M434,226 M434,226 M434,227 M434"
msg$ = msg$ + ",227 M435,227 M435,227 M439,227 M439,227 M441,227 M441,227 M443,226 M443,226"
msg$ = msg$ + "M444,225 M444,225 M445,223 M445,223 M445,222 M445,222 M444,222 M444,222 M443,222"
msg$ = msg$ + " M443,222 M440,222 M440,222 M439,222 M439,222 M437,223 B M216,441 M266,394 M266,"
msg$ = msg$ + "394 M359,329 M359,329 M385,320 M387,319 M388,318 M388,318 M381,327 M381,327 M303"
msg$ = msg$ + ",406 M303,406 M263,459 M263,459 M261,479 M261,479 M329,430 M329,430 M394,382"
msg$ = msg$ + "M394,382 M424,371 M424,371 M424,372 M424,372 M333,454 M333,454 M408,478 M408,478"
msg$ = msg$ + " M416,494 M415,497 M411,527"
FUNCTION map!
(value!
, minRange!
, maxRange!
, newMinRange!
, newMaxRange!
) map! = ((value! - minRange!) / (maxRange! - minRange!)) * (newMaxRange! - newMinRange!) + newMinRange!
' CX = center x coordinate
' CY = center y coordinate
' R = radius
' C = fill color
RadiusError = -Radius
X = Radius
Y = 0
LINE (CX
- X
, CY
)-(CX
+ X
, CY
), C
, BF
RadiusError = RadiusError + Y * 2 + 1
LINE (CX
- Y
, CY
- X
)-(CX
+ Y
, CY
- X
), C
, BF
LINE (CX
- Y
, CY
+ X
)-(CX
+ Y
, CY
+ X
), C
, BF
X = X - 1
RadiusError = RadiusError - X * 2
Y = Y + 1
LINE (CX
- X
, CY
- Y
)-(CX
+ X
, CY
- Y
), C
, BF
LINE (CX
- X
, CY
+ Y
)-(CX
+ X
, CY
+ Y
), C
, BF
' CX = center x coordinate
' CY = center y coordinate
' a = semimajor axis
' b = semiminor axis
' C = fill color
w2 = a * a
h2 = b * b
h2w2 = h2 * w2
LINE (CX
- a
, CY
)-(CX
+ a
, CY
), C
, BF
y = y + 1
x
= SQR((h2w2
- y
* y
* w2
) \ h2
) LINE (CX
- x
, CY
+ y
)-(CX
+ x
, CY
+ y
), C
, BF
LINE (CX
- x
, CY
- y
)-(CX
+ x
, CY
- y
), C
, BF