FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
smallbasic.github.io/samples/node/106.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
/
106.bas
Copy path
More file actions
More file actions
Latest commit
History
History
History
36 lines (32 loc) · 1008 Bytes
Breadcrumbs
smallbasic.github.io
/
samples
/
node
/
106.bas
Copy path
File metadata and controls
36 lines (32 loc) · 1008 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
30
31
32
33
34
35
36
'
''**********************************************
'' choose color nro
''by keijo Koskinen 20.08,2004
locate
1
,
1
?
"********* COLOUR CHART BY VALUE ***********"
label
looppi
n=
0
k=inkey
''note: all values have to be negative
if
k=
"e"
then
r=r+
1
:
if
r>
0
then
r=
0
''red less
if
k=
"r"
then
r=r-
1
:
if
r<-
255
then
r=-
255
''red more
if
k=
"f"
then
g=g+
1
:
if
g>
0
then
g=
0
''green less
if
k=
"g"
then
g=g-
1
:
if
g<-
255
then
g=-
255
''green more
if
k=
"v"
then
b=b+
1
:
if
b>
0
then
b=
0
''blue less
if
k=
"b"
then
b=b-
1
:
if
b<-
255
then
b=-
255
''blue more
rect
10
,
20
,
300
,
100
color
b+(
256
*g)+(
256
*
256
*r)
filled
locate
10
,
1
:?
"e/r=red"
locate
10
,
11
:?
"f/g=green"
locate
10
,
22
:?
"v/b=blue"
locate
10
,
33
:?
"color ="
locate
11
,
1
?
"0-(-256) 0-(-256) 0-(-256) 0-(16777215)"
locate
12
,
1
?
" "
locate
12
,
1
:?r
locate
12
,
11
:?g
locate
12
,
22
:?b
locate
12
,
33
:?r+(
256
*g)+(
256
*
256
*b)
if
asc(k)<>
27
:
goto
looppi
endif
end
'
Back
|
FazBrowse Home
|
New Git URL