| [ Index ] |
|
Code source de Drupal 5.3 |
[Code source] [Imprimer] [Statistiques]
(pas de description)
| Poids: | 581 lignes (20 kb) |
| Inclus ou requis: | 0 fois |
| Référencé: | 0 fois |
| Nécessite: | 0 fichiers |
| color_help($section) X-Ref |
| Implementation of hook_help |
| color_form_alter($form_id, &$form) 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($theme) X-Ref |
| Form callback. Returns the configuration form. |
| theme_color_scheme_form($form) X-Ref |
| Theme color form. |
| color_scheme_form_submit($form_id, $values) X-Ref |
| Submit handler for color change form. |
| _color_rewrite_stylesheet($theme, &$info, &$paths, $palette) X-Ref |
| Rewrite the stylesheet to match the colors in the palette. |
| _color_import_stylesheet($matches) X-Ref |
| Helper function for _color_rewrite_stylesheet. |
| _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. |
| Généré le : Fri Nov 30 16:20:15 2007 | par Balluche grâce à PHPXref 0.7 |
|