Object function reference

display

A reference entry for display

Object function · Colour

display() ⇒ Colour | boolean

Opens a small native window filled with the colour. The window title is the colour's hexadecimal code, including an alpha component when the colour is translucent. Returns the Colour object when the preview is opened, or false when native UI support is unavailable.

Availability: ZPE 1.14.11.

Example

YASS
$colour = new Colour("#f60")
$colour->display()