CRfill_rect | R Documentation |
Draws a filled rectangle defined in rect_list to rendering target.
CRfill_rect(graphics_list, rect_list, status = NULL)
graphics_list |
List containing pointers to window, renderer etc. created with |
rect_list |
List defining a rectangle, containing elements x, y, w and h. |
status |
Optional list |
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))
rect_list <- list(x = 50, y = 50, w = 100, h = 50)
CRfill_rect(gs, rect_list)
CRrender_present(gs)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.