;
; colours.sh
;
; Colour handling for Sculptrix
;
;  1995-1998 Straylight
;

;----- Licensing note -------------------------------------------------------
;
; This file is part of Straylight's Sculptrix.
;
; Sculptrix is free software; you can redistribute it and/or modify
; it under the terms of the GNU General Public License as published by
; the Free Software Foundation; either version 2, or (at your option)
; any later version.
;
; Sculptrix is distributed in the hope that it will be useful,
; but WITHOUT ANY WARRANTY; without even the implied warranty of
; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
; GNU General Public License for more details.
;
; You should have received a copy of the GNU General Public License
; along with Sculptrix.  If not, write to the Free Software Foundation,
; 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.

;----- Overview -------------------------------------------------------------
;
; Functions provided:
;
;  colours_read
;  colours_set

		[	:LNOT::DEF:colours__dfn
		GBLL	colours__dfn

; --- colours_read ---
;
; On entry:	R1 == pointer to icon block
;
; On exit:	R0 == foreground in bits 0-3, background in bits 4-7
;		CS if colours in validation string, and
;		  R14 == address of colours in there, or 0
;
; Use:		Works out colours of an icon.

		IMPORT	colours_read

; --- colours_set ---
;
; On entry:	R1 == pointer to icon /state/ block
;		R2 == new background colour
;
; On exit:	R2 == old background colour
;
; Use:		Changes the background colour of an icon.

		IMPORT	colours_set

		]

;----- That's all, folks ----------------------------------------------------

		END
