File: testsuite_slice_include.kbs

package info (click to toggle)
basic256 2.0.99.10-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,888 kB
  • sloc: cpp: 17,185; yacc: 4,025; lex: 1,466; java: 1,091; sh: 39; xml: 33; makefile: 20
file content (38 lines) | stat: -rw-r--r-- 739 bytes parent folder | download | duplicates (2)
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
# testsuite_slice_include section for BASIC256

# Modification History
# date		programmer	description
# 20200403	j.m.reneau	created

currentsuite = "slice"


graphsize 150,150
clg
color green
rect 0,0,10,15
color blue
circle(5,5,5)
refresh
call q("little circle with green under")

s = getslice(0,0,10,15)

call n("slice width correct",s[?,],10)
call n("slice height correct",s[,?],15)

clg

for t = 0 to 90 step 10
putslice t,t,{{red,red,red,red,red},{red,clear,clear,clear,red},{red,clear,clear,clear,red},{red,clear,clear,clear,red},{red,red,red,red,red}}
next t
refresh
call q("diagonal row of tiny red boxes")


for t = 0 to 90 step 10
	putslice t+25,t,s[]
	putslice t+50,t,s
next t
refresh
call q("2 diagonal rows of little circles")