Exponent v2.7.2

modifier.contrast.php

Table of Contents

smarty_modifier_contrast()  : string
Smarty {contrast} modifier plugin

Functions

smarty_modifier_contrast()

Smarty {contrast} modifier plugin

smarty_modifier_contrast(string $hexcolor[, string $dark = '000000' ][, string $light = 'FFFFFF' ][, bool $yiq = false ]) : string

Type: modifier
Name: contrast
Purpose: Calculate a contrasting/complementary color from the one passed using either the default 50% rule or YIQ

Parameters
$hexcolor : string
$dark : string = '000000'
$light : string = 'FFFFFF'
$yiq : bool = false
Tags
subpackage

Modifier

Return values
string

Search results