HomeManualTopicsTypesSymbols

std_types::screen/std::plot

plots a half character block

Parameters

screen
the screen or terminal onto which to plot
x
the x-cordinate of the *half block*
y
the y-coordinate of the *half block*

Results

None

Description

Draws a lower or upper half block on the specified position.

Attention: The y-coordinate is measured in half lines.

Example

get_terminal_size! STDIN_FILENO $terminal_width $terminal_height create_terminal $terminal terminal_width terminal_height $r 24 $cy 25 $width 60 from_to !terminal 1 width : (x) $y cy+to_integer(sin(x*2*PI/width)*r) plot &terminal x y next -> terminal update_terminal! &terminal $output print! output

Topic

Terminal

Implements

std::plot

See also

std::plot_line