But I would like to know how to set the background color of the graph to mycolor.
Please note I’m not talking about the graph/function itself or the grid, just the background color which currently is always white.
I’ve tried googling this specific question but haven’t found anything related to background color. It seems one can easily change the color of any component in Desmos except for the background color.
Welcome! The background sink is actually to pull graph calculator and/or sketch states from other components. There’s not a specific parameter for the background color. It’s a bit hacky since polygons will cover the grid, but you can set a polygon with your color in a hidden graph, and use that as the background for another (or more than one) graph.
@Mike_Gleeson There’s still the issue of the inequality overlaying the graph (try it at 100% fill). I believe polygon is doing less work than an inequality which is doing evaluations over a list essentially.
@desmosnewbie You can set (and lock) the graph bounds in the wrench menu. Or you can define variables and use the bounds: sink in the CL. I updated the above example to include CL defined bounds.
@Mike_Gleeson Coming back to this after something popping up in my notifications. Generally it’s not going to matter too much, but if there are concerns about performance, polygons are less of a strain than inequalities.
Inequality:
Interesting. But I think it depends on a great number of variables that have nothing to do with the method itself. For example, here’s what I got when I tried it:
More pertinently though is what happens when the graphs are rendered in an Actiivty. Here’s Chrome Dev Tools showing the Waterfall under Network Activity:
This happened consistently over many iterations. I think what’s likely happening is that becauase the background polygon method paints two graphs, it slows things down.
At any rate, having two components to do the job of one doesn’t seem great in general, but especially since the dummy graph’s background acts as a pseudo-element and can’t be inherited to other graphs should the need arise.