Retro Background

Post Reply
DrChip
Posts: 167
Joined: Wed Oct 22, 2014 3:26 pm
My devices: iPhone 4 to 6+,iPad mini to iPad air 2

Retro Background

Post by DrChip »

Code: Select all

REM retro background
REM just a simple retro game background for fun.
REM enjoy...

GRAPHICS
res = 20
speed=.009

main:
GRAPHICS CLEAR 0,0,0
REFRESH OFF
GOSUB background
REFRESH 
GOTO main

background:
mm=mm+.speed
b=1000*SIN(mm)
g=1000*SIN(mm/2)
r=1000*SIN(mm/3)

FOR a=1 TO SCREEN_HEIGHT() STEP res
    FILL COLOR (r+a)/1000,(g+a)/1000,(b+a)/1000
    FILL RECT 0,a TO SCREEN_WIDTH(),a+res
NEXT a

RETURN
Attachments
IMG_3354.PNG
IMG_3354.PNG (385.13 KiB) Viewed 1841 times
IMG_3353.PNG
IMG_3353.PNG (385.07 KiB) Viewed 1841 times
IMG_3352.PNG
IMG_3352.PNG (388.27 KiB) Viewed 1841 times
IMG_3351.PNG
IMG_3351.PNG (389.32 KiB) Viewed 1841 times
IMG_3350.PNG
IMG_3350.PNG (385.08 KiB) Viewed 1841 times
IMG_3349.PNG
IMG_3349.PNG (385.04 KiB) Viewed 1841 times
IMG_3348.PNG
IMG_3348.PNG (388.82 KiB) Viewed 1841 times
IMG_3347.PNG
IMG_3347.PNG (389.39 KiB) Viewed 1841 times

User avatar
rbytes
Posts: 1338
Joined: Sun May 31, 2015 12:11 am
My devices: iPhone 11 Pro Max
iPad Pro 11
MacBook
Dell Inspiron laptop
CHUWI Plus 10 convertible Windows/Android tablet
Location: Calgary, Canada
Flag: Canada
Contact:

Re: Retro Background

Post by rbytes »

This will be very useful for creating program backdrops. Thanks? :D
The only thing that gets me down is gravity...

Post Reply