DrawLineTrait.php in Image Effects 8
File
src/Plugin/ImageToolkit/Operation/DrawLineTrait.php
View source
<?php
namespace Drupal\image_effects\Plugin\ImageToolkit\Operation;
trait DrawLineTrait {
protected function arguments() {
return [
'x1' => [
'description' => 'x-coordinate for first point.',
],
'y1' => [
'description' => 'y-coordinate for first point.',
],
'x2' => [
'description' => 'x-coordinate for second point.',
],
'y2' => [
'description' => 'y-coordinate for second point.',
],
'color' => [
'description' => 'The line color, in RGBA format.',
],
];
}
}