Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ This generates an image based on the following variables:
```php
$image = imagecreatefrompng('images/countdown.png');
$font = array(
'size'=>23, // Font size, in pts usually.
'size'=>18, // Font size, in pts usually.
'angle'=>0, // Angle of the text
'x-offset'=>7, // The larger the number the further the distance from the left hand side, 0 to align to the left.
'y-offset'=>30, // The vertical alignment, trial and error between 20 and 60.
'file'=>'./GillSans.ttc', // Font path
'file'=>'./Futura.ttc', // Font path
'color'=>imagecolorallocate($image, 55, 160, 130), // RGB Colour of the text
);
```
Expand Down