# colour

## Synopsis

    color <color>
    colour <color>

## Description

Specifies the colour that iDefrag should use to display extents of files that match the class in question.

Tip

You don’t need to write a class set just to change the colours of files. Instead, you can alter them in iDefrag itself by clicking on the colour chips in the key.

Colours overridden in the user interface apply to any class of the same name in any class set. User overrides are not saved back into the class set file.

Colour specifications may be given in any of the following forms:

#rgb | The colour with red, green and blue values given by the hexadecimal values r, g, and b (e.g. `#333` would be a dark grey, while `#ff0` is bright yellow). As with CSS, `#550` is equivalent to `#555500`, and so on.
“#rgb”
“0xrgb”
#rrggbb | The colour with red, green and blue values given by the hexadecimal values rr, gg, and bb (e.g. `#333333` would be a dark grey, while `#ffff00` is bright yellow.
“#rrggbb”
“0xrrggbb”
“colorlist:name” | The color name from the system colour list colorlist (e.g. `"Crayons:Cantaloupe"` is a pale orange).

## Example

    // Match the kernel image

    class "Kernel" {
      match files where name = "/mach_kernel"
      color "#00ff00"
    }

    // Match the swap file(s)

    class "Swapfile" {
      match files where name ~= "^swapfile[0-9]+" and file is within "/private/var/vm"
      color "Crayons:Blueberry"
    }

## See also

class, display class