seems like a better option here would be to just cast the `substr` return values directly to a `float`. Something like

```PHP
$colorToPaint = imagecolorallocatealpha( $new_image, (float) substr( $colors['top'], 0, 3 ), (float) substr( $colors['top'], 3, 3 ), (float) substr( $colors['top'], 6, 3 ), (float) substr( $colors['left'], 9, 3 ) );
```