-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcolours.py
More file actions
20 lines (18 loc) · 726 Bytes
/
colours.py
File metadata and controls
20 lines (18 loc) · 726 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
from __future__ import print_function
#---------------------------------------------------------------------
# Colour test
#
# This script demonstrates the usage of background colours.
#
# Author: Gergely Erdelyi <[email protected]>
#---------------------------------------------------------------------
# Set the colour of the current segment to BLUE
set_color(here(), CIC_SEGM, 0xc02020)
# Set the colour of the current function to GREEN
set_color(here(), CIC_FUNC, 0x208020)
# Set the colour of the current item to RED
set_color(here(), CIC_ITEM, 0x2020c0)
# Print the colours just set
print("%x" % get_color(here(), CIC_SEGM))
print("%x" % get_color(here(), CIC_FUNC))
print("%x" % get_color(here(), CIC_ITEM))