[ Index ]

PHP Cross Reference of phpBB-3.2.8-deutsch

title

Body

[close]

/phpbb/captcha/ -> colour_manager.php (summary)

This file is part of the phpBB Forum Software package.

Copyright: (c) phpBB Limited
License: GNU General Public License, version 2 (GPL-2.0)
File Size: 527 lines (10 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

colour_manager:: (14 methods):
  __construct()
  get_resource()
  name_colour()
  allocate_named()
  allocate()
  random_colour()
  colour_scheme()
  mono_range()
  model_convert()
  hsv2rgb()
  rgb2hsv()
  normalize_hue()
  ah2h()
  h2ah()


Class: colour_manager  - X-Ref

__construct($img, $background = false, $mode = 'ahsv')   X-Ref
Create the colour manager, link it to the image resource


get_resource($named_colour)   X-Ref
Lookup a named colour resource


name_colour($name, $resource)   X-Ref
Assign a name to a colour resource


allocate_named($name, $colour, $mode = false)   X-Ref
names and allocates a colour resource


allocate($colour, $mode = false)   X-Ref
allocates a specified colour into the image


random_colour($params = array()   X-Ref
randomly generates a colour, with optional params


colour_scheme($resource, $include_original = true)   X-Ref
No description

mono_range($resource, $count = 5, $include_original = true)   X-Ref
No description

model_convert($colour, $from_model, $to_model)   X-Ref
Convert from one colour model to another


hsv2rgb($hsv)   X-Ref
Slightly altered from wikipedia's algorithm


rgb2hsv($rgb)   X-Ref
(more than) Slightly altered from wikipedia's algorithm


normalize_hue(&$hue)   X-Ref
No description

ah2h($ahue)   X-Ref
Alternate hue to hue


h2ah($hue)   X-Ref
hue to Alternate hue




Generated: Tue Apr 7 19:42:26 2020 Cross-referenced by PHPXref 0.7.1