-
Notifications
You must be signed in to change notification settings - Fork 61
/
getput.html
48 lines (40 loc) · 1.13 KB
/
getput.html
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
37
38
39
40
41
42
43
44
45
46
47
<!--
Copyright 2018 Google LLC
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
https://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<script src="../wwwbasic.js"></script>
<script type="text/basic">
DIM IM%(10000)
SCREEN 1
LINE (10,20)-(30,50),2
LINE (30,50)-(0,30),1
LINE (0,30)-(10,20),3
GET (0,0)-(50,50),IM%
FOR I=1 to 100
PUT (INT(RND*320)-10, INT(RND*200)), IM%
NEXT I
WHILE INKEY$="": WEND
SCREEN 18
red# = &hff0000
yellow# = &hffff00
blue# = &h0000ff
LINE (10,20)-(30,50),red#
LINE (30,50)-(0,30),yellow#
LINE (0,30)-(10,20),blue#
GET (0,0)-(50,50),IM%
FOR I=1 to 100
PUT (INT(RND*320)-50, INT(RND*200)-50), IM%
NEXT I
FOR I=1 to 100
PUT (INT(RND*320)+400, INT(RND*200)+200), IM%
NEXT I
</script>