Line

smile.pictures.Line
object Line

Straight lines.

import smile.colors.PresetColor.*
import smile.modeling.*

val line = Line(Pos(0, 40), Pos(120, 0), lineWith(Crimson, 8, round = true).get)

A thick diagonal line with round ends

Attributes

Source
Shapes.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Line.type

Members list

Value members

Concrete methods

def apply(startX: Double, startY: Double, endX: Double, endY: Double, stroke: StrokeStyle): Shape

A line from (startX, startY) to (endX, endY).

A line from (startX, startY) to (endX, endY).

Attributes

Source
Shapes.scala
def apply(start: Pos, end: Pos, stroke: StrokeStyle): Shape

A line from start to end, its anchor halfway between them.

A line from start to end, its anchor halfway between them.

Attributes

Source
Shapes.scala