View source: R/CRset_render_color.R
CRset_render_color | R Documentation |
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.
CRset_render_color(graphics_list, color_list, status = NULL)
graphics_list |
List containing pointers to window, renderer etc. created with |
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 |
status |
Optional list |
red <- list(r = 200, g = 0, b = 0)
CRset_render_color(gs, red)
CRrender_clear(gs)
CRrender_present(gs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.