CRset_render_color: Sets color for render drawing.

View source: R/CRset_render_color.R

CRset_render_colorR Documentation

Sets color for render drawing.

Description

Sets render drawing color. This is the color used by subsequent calls to the drawing functions: CRdraw_rect, CRdraw_lines, CRfill_rect, CRfill_circle, etc.

Usage

    CRset_render_color(graphics_list, color_list, status = NULL)

Arguments

graphics_list

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

color_list

List specifying color to be used (must contain r, g, b, and optionally a). Effect of a is determined by blend-mode, see CRset_blend_mode.

status

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

Examples

    red <- list(r = 200, g = 0, b = 0)
    
    CRset_render_color(gs, red)
    
    CRrender_clear(gs)
    
    CRrender_present(gs)

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