Getbackground Function Example

Details

Action

A function that returns the RGB color (list #3) currently used as background color of the selected graph2D.

make rgb getbackground();

background(list(first(rgb), first(rest(rgb)), remainder(first(rest(rest(rgb)))+100,256)));

Sets the background to the next color in the cycle.