[ Index ]

PHP Cross Reference of Drupal 6 (yi-drupal)

title

Body

[close]

/modules/color/ -> color.module (summary)

(no description)

File Size: 685 lines (24 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 21 functions

  color_help()
  color_theme()
  color_form_alter()
  _color_page_alter()
  color_get_info()
  color_get_palette()
  color_scheme_form()
  theme_color_scheme_form()
  color_scheme_form_validate()
  color_scheme_form_submit()
  _color_rewrite_stylesheet()
  _color_save_stylesheet()
  _color_render_images()
  _color_shift()
  _color_gd()
  _color_blend()
  _color_unpack()
  _color_pack()
  _color_hsl2rgb()
  _color_hue2rgb()
  _color_rgb2hsl()

Functions
Functions that are not part of a class:

color_help($path, $arg)   X-Ref
Implementation of hook_help().


color_theme()   X-Ref
Implementation of hook_theme().


color_form_alter(&$form, $form_state, $form_id)   X-Ref
Implementation of hook_form_alter().


_color_page_alter(&$vars)   X-Ref
Callback for the theme to alter the resources used.


color_get_info($theme)   X-Ref
Retrieve the color.module info for a particular theme.


color_get_palette($theme, $default = false)   X-Ref
Helper function to retrieve the color palette for a particular theme.


color_scheme_form(&$form_state, $theme)   X-Ref
Form callback. Returns the configuration form.


theme_color_scheme_form($form)   X-Ref
Theme color form.


color_scheme_form_validate($form, &$form_state)   X-Ref
Validation handler for color change form.


color_scheme_form_submit($form, &$form_state)   X-Ref
Submit handler for color change form.


_color_rewrite_stylesheet($theme, &$info, &$paths, $palette, $style)   X-Ref
Rewrite the stylesheet to match the colors in the palette.


_color_save_stylesheet($file, $style, &$paths)   X-Ref
Save the rewritten stylesheet to disk.


_color_render_images($theme, &$info, &$paths, $palette)   X-Ref
Render images that match a given palette.


_color_shift($given, $ref1, $ref2, $target)   X-Ref
Shift a given color, using a reference pair and a target blend color.

Note: this function is significantly different from the JS version, as it
is written to match the blended images perfectly.

Constraint: if (ref2 == target + (ref1 - target) * delta) for some fraction delta
then (return == target + (given - target) * delta)

Loose constraint: Preserve relative positions in saturation and luminance
space.

_color_gd($img, $hex)   X-Ref
Convert a hex triplet into a GD color.


_color_blend($img, $hex1, $hex2, $alpha)   X-Ref
Blend two hex colors and return the GD color.


_color_unpack($hex, $normalize = false)   X-Ref
Convert a hex color into an RGB triplet.


_color_pack($rgb, $normalize = false)   X-Ref
Convert an RGB triplet to a hex color.


_color_hsl2rgb($hsl)   X-Ref
Convert a HSL triplet into RGB


_color_hue2rgb($m1, $m2, $h)   X-Ref
Helper function for _color_hsl2rgb().


_color_rgb2hsl($rgb)   X-Ref
Convert an RGB triplet to HSL.




Generated: Mon Jul 9 18:01:44 2012 Cross-referenced by PHPXref 0.7