chiark / gitweb /
Create readable text `.bas' for each tokenized BASIC `,ffb' file.
[ssr] / StraySrc / Sculptrix / sculptrix / sh / colours
1 ;
2 ; colours.sh
3 ;
4 ; Colour handling for Sculptrix
5 ;
6 ; © 1995-1998 Straylight
7 ;
8
9 ;----- Licensing note -------------------------------------------------------
10 ;
11 ; This file is part of Straylight's Sculptrix.
12 ;
13 ; Sculptrix is free software; you can redistribute it and/or modify
14 ; it under the terms of the GNU General Public License as published by
15 ; the Free Software Foundation; either version 2, or (at your option)
16 ; any later version.
17 ;
18 ; Sculptrix is distributed in the hope that it will be useful,
19 ; but WITHOUT ANY WARRANTY; without even the implied warranty of
20 ; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
21 ; GNU General Public License for more details.
22 ;
23 ; You should have received a copy of the GNU General Public License
24 ; along with Sculptrix.  If not, write to the Free Software Foundation,
25 ; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26
27 ;----- Overview -------------------------------------------------------------
28 ;
29 ; Functions provided:
30 ;
31 ;  colours_read
32 ;  colours_set
33
34                 [       :LNOT::DEF:colours__dfn
35                 GBLL    colours__dfn
36
37 ; --- colours_read ---
38 ;
39 ; On entry:     R1 == pointer to icon block
40 ;
41 ; On exit:      R0 == foreground in bits 0-3, background in bits 4-7
42 ;               CS if colours in validation string, and
43 ;                 R14 == address of colours in there, or 0
44 ;
45 ; Use:          Works out colours of an icon.
46
47                 IMPORT  colours_read
48
49 ; --- colours_set ---
50 ;
51 ; On entry:     R1 == pointer to icon /state/ block
52 ;               R2 == new background colour
53 ;
54 ; On exit:      R2 == old background colour
55 ;
56 ; Use:          Changes the background colour of an icon.
57
58                 IMPORT  colours_set
59
60                 ]
61
62 ;----- That's all, folks ----------------------------------------------------
63
64                 END