From a8f66766232357d7cd8637c9cfb442c33df4b763 Mon Sep 17 00:00:00 2001 From: "gergely.erdelyi" Date: Fri, 27 Jun 2008 21:21:38 +0000 Subject: [PATCH] Added small test scripts for colours. --- examples/colours.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 examples/colours.py diff --git a/examples/colours.py b/examples/colours.py new file mode 100644 index 0000000..9fa1688 --- /dev/null +++ b/examples/colours.py @@ -0,0 +1,19 @@ +#--------------------------------------------------------------------- +# Colour test +# +# This script demonstrates the usage of background colours. +# +# Author: Gergely Erdelyi +#--------------------------------------------------------------------- + +# Set the colour of the current segment to BLUE +SetColor(here(), CIC_SEGM, 0xc02020) +# Set the colour of the current function to GREEN +SetColor(here(), CIC_FUNC, 0x208020) +# Set the colour of the current item to RED +SetColor(here(), CIC_ITEM, 0x2020c0) + +# Print the colours just set +print "%x" % GetColor(here(), CIC_SEGM) +print "%x" % GetColor(here(), CIC_FUNC) +print "%x" % GetColor(here(), CIC_ITEM)