php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Doc Bug #79116 imagecolorclosesthwb parameters copy/pasta
Submitted: 2020-01-14 20:51 UTC Modified: 2020-01-14 21:39 UTC
From: moo at cowdontwantnospam dot co Assigned:
Status: Not a bug Package: GD related
PHP Version: Irrelevant OS:
Private report: No CVE-ID: None
 [2020-01-14 20:51 UTC] moo at cowdontwantnospam dot co
Description:
------------
---
From manual page: https://php.net/function.imagecolorclosesthwb
---

Based on the name and description, these parameters should be $hue, $white, $blackness or something similar, not RGB.


Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2020-01-14 21:39 UTC] requinix@php.net
-Status: Open +Status: Not a bug -Package: Documentation problem +Package: GD related
 [2020-01-14 21:39 UTC] requinix@php.net
Actually no, they are indeed supposed to be RGB.

cf. https://libgd.github.io/manuals/2.2.5/files/gd-c.html#gdImageColorClosestHWB
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Mon Apr 29 05:01:28 2024 UTC