DiagonalCellOpts sets options on the cells that contain the diagonal segment. Cell options on a braille canvas can only be set on the entire cell, not per pixel.
(cOpts ...cell.Option)
| 383 | // Cell options on a braille canvas can only be set on the entire cell, not per |
| 384 | // pixel. |
| 385 | func DiagonalCellOpts(cOpts ...cell.Option) DiagonalOption { |
| 386 | return diagonalOption(func(opts *diagonalOptions) { |
| 387 | opts.cellOpts = cOpts |
| 388 | }) |
| 389 | } |
| 390 | |
| 391 | // Diagonal draws a diagonal segment of the specified width filling the area. |
| 392 | func Diagonal(bc *braille.Canvas, ar image.Rectangle, width int, dt DiagonalType, opts ...DiagonalOption) error { |