2008-06-27 23:21:38 +02:00
|
|
|
#---------------------------------------------------------------------
|
|
|
|
# Colour test
|
|
|
|
#
|
|
|
|
# This script demonstrates the usage of background colours.
|
|
|
|
#
|
2010-04-26 22:13:11 +02:00
|
|
|
# Author: Gergely Erdelyi <gergely.erdelyi@d-dome.net>
|
2008-06-27 23:21:38 +02:00
|
|
|
#---------------------------------------------------------------------
|
|
|
|
|
|
|
|
# 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)
|