You are here

DrawEllipseTrait.php in Image Effects 8.3

File

src/Plugin/ImageToolkit/Operation/DrawEllipseTrait.php
View source
<?php

namespace Drupal\image_effects\Plugin\ImageToolkit\Operation;


/**
 * Base trait for image_effects DrawEllipse operations.
 */
trait DrawEllipseTrait {

  /**
   * {@inheritdoc}
   */
  protected function arguments() {
    return [
      'cx' => [
        'description' => 'x-coordinate of the center.',
      ],
      'cy' => [
        'description' => 'y-coordinate of the center.',
      ],
      'width' => [
        'description' => 'The ellipse width.',
      ],
      'height' => [
        'description' => 'The ellipse height.',
      ],
      'color' => [
        'description' => 'The fill color, in RGBA format.',
      ],
    ];
  }

}

Traits

Namesort descending Description
DrawEllipseTrait Base trait for image_effects DrawEllipse operations.