FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
smallbasic.github.io/samples/node/1263.bas at master · smallbasic/smallbasic.github.io · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
smallbasic
/
smallbasic.github.io
Public
Notifications
You must be signed in to change notification settings
Fork
4
Star
4
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
smallbasic.github.io
/
samples
/
node
/
1263.bas
Copy path
More file actions
More file actions
Latest commit
History
History
History
29 lines (27 loc) · 584 Bytes
Breadcrumbs
smallbasic.github.io
/
samples
/
node
/
1263.bas
Copy path
File metadata and controls
29 lines (27 loc) · 584 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
'current file title: mouse circle sounds.bas
'original title squeaky mouse.bas SmallBASIC 2015-04-27 B+
'old on-line title: circles
'now more sound effects, color contrast, c=cls screen option
randomize
while
1
locate
0
,
0
?
"press c to clear screen clutter"
if
inkey=
"c"
then
cls
delay
60
pen
on
x=pen(
10
)
y=pen(
11
)
delay
10
pen
off
r=rnd*
100
rd=(x/xmax)*
255
if
rd>
255
then
rd=
255
if
rd<
0
then
rd=
0
gr=
255
-(y/ymax)*
255
if
gr>
255
then
gr=
255
if
gr<
0
then
gr=
0
sound
150
+y/ymax*
5000
,x/xmax*
1500
circle
x,y,r,
1
,rgb(rd,gr,
0
)
showpage
delay
10
wend
Back
|
FazBrowse Home
|
New Git URL