MCPcopy
hub / github.com/mum4k/termdash / MustDiagonal

Function MustDiagonal

private/segdisp/segment/testsegment/testsegment.go:34–38  ·  view source on GitHub ↗

MustDiagonal draws the segment or panics.

(bc *braille.Canvas, ar image.Rectangle, width int, dt segment.DiagonalType, opts ...segment.DiagonalOption)

Source from the content-addressed store, hash-verified

32
33// MustDiagonal draws the segment or panics.
34func MustDiagonal(bc *braille.Canvas, ar image.Rectangle, width int, dt segment.DiagonalType, opts ...segment.DiagonalOption) {
35 if err := segment.Diagonal(bc, ar, width, dt, opts...); err != nil {
36 panic(fmt.Sprintf("segment.Diagonal => unexpected error: %v", err))
37 }
38}

Callers 1

TestDrawFunction · 0.92

Calls 1

DiagonalFunction · 0.92

Tested by 1

TestDrawFunction · 0.74