ninoslavjaric / map-pin-generator
This is cool
0.1.0
2016-12-29 23:59 UTC
Requires
- php: >=5.3.0
This package is auto-updated.
Last update: 2025-04-22 03:35:36 UTC
README
The first version of this library generates striped pins that point location of something represented by that pin.
How to get dependency
By composer.
composer require ninoslavjaric/map-pin-generator
Implementation
require_once "vendor/autoload.php";
use Logic\PinGenerator;
header("Content-type: image/png");
$pin = PinGenerator::getStripedPin("image.jpg",[
"rgb(100,100,100)",
"rgb(200,200,200)",
]);
echo $pin;
PinGenerator
Method | Static | Parameters | Description |
---|---|---|---|
getStripedPin | true | imageUrl, Array colors, pinWidth = null | Gets striped pin blob content according to rgb color expressions. |