Jump to content

imagecolorallocate Function choosgin my Own color


GTROCKSTAR

Recommended Posts

$white = imagecolorallocate($image_p, 255, 255, 255);

 

It shows white but i dont want white.

 

I want this hex color:

 

#111A22

 

How do i Allocate that hex so it works for that $white variable,

 

Thank you,

 

Just use a hex->RGB converter if you're unsure:

$white = imagecolorallocate($image_p, 12, 26, 34);

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.