CRdraw_point: Draws point.

View source: R/CRdraw_point.R

CRdraw_pointR Documentation

Draws point.

Description

Draws a single point of pixel size to rendering target.

Usage

CRdraw_point(graphics_list, point_list, status = NULL)

Arguments

graphics_list

List containing pointers to window, renderer etc. created with CRopen.

point_list

List defining single point, containing elements x and y.

status

Optional list status with elements value and message to retrieve warnings and error messages.

Examples

    CRset_render_color(gs, list(r = 0, g = 0, b = 0))
    
    CRrender_clear(gs)
    
    CRset_render_color(gs, list(r = 100, g = 0, b = 0))
    
    point <- list(x = 50, y = 50)
    
    CRdraw_point(gs, point)
    
    CRrender_present(gs)

lorweiuk/CREx documentation built on March 16, 2024, 3:04 a.m.