h6. [[OS SWI Calls]] h6(. » OS_SetColour h2. OS_SetColour h5. (SWI &61) |_<^{width:4em}. Entry | | |<^. R0 |<^. [[OS_SetColour Flags|Flag word]] | |/2<^. R1 |<^. Pointer to ECF pattern (if R0 bit5 is set), or | |<^. Colour number (if R0 bit5 clear)| |_<^{width:4em}. Exit | | |<^. - |<^. - | h4. Use The purpose of this call is to set or read the text and graphics colours. h4. Notes When writing colours, graphics colours may be set using a pattern block, text colours must be specified as a colour number. When reading the colours, text colours are returned as a colour number in R1, but you must supply a pattern block to read the graphics colours. h4. See also * [[ColourTrans_ReturnColourNumber]] * [[OS_SetColour Flags]]