PHP 8.5.0 Alpha 4 available for testing

Voting

: three minus zero?
(Example: nine)

The Note You're Voting On

Anonymous
20 years ago
When you are using truecolor images, you can also use bitwise operations to generate the color:
<?php
$color
= ($r << 16) | ($g << 8) | $b; // 2261213
?>
This is identical to the imagecolorallocate() function, in truecolor images!

<< Back to user notes page

To Top