StrokeStyle

smile.pictures.StrokeStyle
See theStrokeStyle companion class
object StrokeStyle

The cap and join styles of a stroke, and the miter limit that every backend uses.

Attributes

Companion
class
Source
style.scala
Graph
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

enum Cap

How the start and end of stroked lines and paths are drawn.

How the start and end of stroked lines and paths are drawn.

Attributes

Source
style.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
enum Join

How the connection between two line segments of a stroke is drawn.

How the connection between two line segments of a stroke is drawn.

The join applies to shapes. The outlines of a smile.pictures.Text's glyphs are always stroked with round joins, whatever its style says, so that the text's bounds can reserve one stroke radius around its glyphs.

Attributes

Source
style.scala
Supertypes
trait Enum
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Inherited and Abstract types

The names of the product elements.

The names of the product elements.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

The name of the type.

The name of the type.

Attributes

Inherited from:
Mirror
Source
Mirror.scala

Value members

Concrete fields

How long a miter join may get before it is cut off into a bevel, as a multiple of the stroke's width. Java2D, the HTML canvas, and SVG all measure the miter limit this way. A miter's length is the stroke's width divided by the sine of half the corner's angle, so the limit of 10 bevels corners sharper than about 11.5 degrees. Every backend is set to this one value, and the boundaries count on it. SVG's own default is 4.

How long a miter join may get before it is cut off into a bevel, as a multiple of the stroke's width. Java2D, the HTML canvas, and SVG all measure the miter limit this way. A miter's length is the stroke's width divided by the sine of half the corner's angle, so the limit of 10 bevels corners sharper than about 11.5 degrees. Every backend is set to this one value, and the boundaries count on it. SVG's own default is 4.

Attributes

Source
style.scala

Givens

Givens