Scenic.Primitive.Sector (Scenic v0.10.3) View Source

Draw an sector on the screen.

An sector is a shape that looks like a piece of pie.

Data

{radius, start, finish}

The data for a sector is a three-tuple.

  • radius - the radius of the arc
  • start - the starting angle in radians
  • finish - end ending angle in radians

Styles

This primitive recognizes the following styles

  • hidden - show or hide the primitive
  • fill - fill in the area of the primitive
  • stroke - stroke the outline of the primitive. In this case, only the curvy part.

Usage

You should add/modify primitives via the helper functions in Scenic.Primitives

Link to this section Summary

Functions

Returns a list of styles recognized by this primitive.

Link to this section Functions

Specs

valid_styles() :: [:fill | :hidden | :stroke, ...]

Returns a list of styles recognized by this primitive.