Struct drawille::Canvas [] [src]

pub struct Canvas { /* fields omitted */ }

A canvas object that can be used to draw to the terminal using Braille characters.

Methods

impl Canvas
[src]

Creates a new Canvas with the given width and height.

Note that the Canvas can still draw outside the given dimensions (expanding the canvas) if a pixel is set outside the dimensions.

Clears the canvas.

Sets a pixel at the specified coordinates.

Deletes a pixel at the specified coordinates.

Toggles a pixel at the specified coordinates.

Detects whether the pixel at the given coordinates is set.

Returns a Vec of each row of the Canvas.

Note that each row is actually four pixels high due to the fact that a single Braille character spans two by four pixels.

Draws the canvas to a String and returns it.

Draws a line from (x1, y1) to (x2, y2) onto the Canvas.

Trait Implementations

impl Clone for Canvas
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Canvas
[src]

Formats the value using the given formatter.

impl PartialEq for Canvas
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Canvas
[src]