pub struct HalfBlockCanvas { /* private fields */ }Expand description
A canvas with 1x2 sub-cells (upper and lower half of each cell).
The most compatible sub-cell mode: ▀ and ▄ are Unicode Block Elements, supported in
essentially every monospace terminal font. Doubles vertical resolution, which is exactly what
a character grid is short of, given cells are already about twice as tall as they are wide:
net effect, square pixels.
Implementations§
Source§impl HalfBlockCanvas
impl HalfBlockCanvas
Sourcepub fn new(cols: u16, rows: u16, clear: Color) -> Self
pub fn new(cols: u16, rows: u16, clear: Color) -> Self
A canvas covering cols x rows cells, i.e. cols x rows * 2 plottable points.
Trait Implementations§
Source§impl Clone for HalfBlockCanvas
impl Clone for HalfBlockCanvas
Source§fn clone(&self) -> HalfBlockCanvas
fn clone(&self) -> HalfBlockCanvas
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for HalfBlockCanvas
impl RefUnwindSafe for HalfBlockCanvas
impl Send for HalfBlockCanvas
impl Sync for HalfBlockCanvas
impl Unpin for HalfBlockCanvas
impl UnsafeUnpin for HalfBlockCanvas
impl UnwindSafe for HalfBlockCanvas
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more