CRdraw_points: Draws multiple points.

View source: R/CRdraw_points.R

CRdraw_pointsR Documentation

Draws multiple points.

Description

Draws multiple pixel-sized points in point_list to rendering target.

Usage

CRdraw_points(graphics_list, point_list, status = NULL)

Arguments

graphics_list

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

point_list

List defining multiple points, containing vector 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))
    
    points <- list(x = c(100, 50, 150), y = c(50, 100, 100))
    
    CRdraw_points(gs, points)
    
    CRrender_present(gs)

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