-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathampel.m
More file actions
executable file
·53 lines (49 loc) · 1.91 KB
/
ampel.m
File metadata and controls
executable file
·53 lines (49 loc) · 1.91 KB
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
48
49
50
51
52
53
#! xbigforth
\ automatic generated code
\ do not edit
also editor also minos also forth
component class ampel
public:
canvas ptr ampel-status
( [varstart] ) 1 var g#
1 var gy#
1 var y#
1 var o# ( [varend] )
how:
: params DF[ 0 ]DF X" Ampel Einstellung" ;
class;
ampel implements
( [methodstart] ) ( [methodend] )
: widget ( [dumpstart] )
CV[ $FF 0 0 rgb> backcolor clear ]CV ( MINOS ) ^^ CK[ ( x y b n -- ) 2drop 2drop ]CK ( MINOS ) $28 $1 *hfil $1 $1 *vfil canvas new
vrtsizer new
CV[ $FF $80 0 rgb> backcolor clear
h @ outer with o# c! ampel-status draw endwith ]CV ( MINOS ) ^^ CK[ ( x y b n -- ) 2drop 2drop ]CK ( MINOS ) $10 $1 *hfil $1 $1 *vfil canvas new
#2 vasbox new
vrtsizer new
CV[ $FF $FF 0 rgb> backcolor clear
h @ outer with y# c! ampel-status draw endwith ]CV ( MINOS ) ^^ CK[ ( x y b n -- ) 2drop 2drop ]CK ( MINOS ) $10 $1 *hfil $1 $1 *vfil canvas new
#2 vasbox new
vrtsizer new
CV[ $80 $FF 0 rgb> backcolor clear
h @ outer with gy# c! ampel-status draw endwith ]CV ( MINOS ) ^^ CK[ ( x y b n -- ) 2drop 2drop ]CK ( MINOS ) $10 $1 *hfil $1 $1 *vfil canvas new
#2 vasbox new
vrtsizer new
CV[ 0 $FF 0 rgb> backcolor clear
h @ outer with g# c! ampel-status draw endwith ]CV ( MINOS ) ^^ CK[ ( x y b n -- ) 2drop 2drop ]CK ( MINOS ) $10 $1 *hfil $1 $1 *vfil canvas new
#2 vasbox new
#5 vabox new
CV[ 2 284 steps decimal
0 outer with o# c@ y# c@ gy# c@ g# c@ endwith
3 backcolor clear 0 1 textpos
4 0 DO 4 I - 7 * swap >r 0 swap 254 + r@ - home!
r@ 0 <# #S #> text r> + LOOP
drop ]CV ( MINOS ) ^^ CK[ ( x y b n -- ) 2drop 2drop ]CK ( MINOS ) $20 $0 *hpix $11C $0 *vpix canvas new ^^bind ampel-status
#2 habox new panel
( [dumpend] ) ;
class;
: main
ampel open-app
event-loop bye ;
script? [IF] main [THEN]
previous previous previous