MCPcopy Create free account
hub / github.com/5ocworkshop/bgraph / gradient_mode

Method gradient_mode

src/classes/cls_graph.rs:126–129  ·  view source on GitHub ↗

Set the gradient coloring mode - `GradientMode::Value` (default): Color based on data value at each position. More information-dense as color encodes actual values. - `GradientMode::Position`: Color based on vertical row position (btop-style). Top rows get "hot" colors, bottom rows get "cool" colors. More intuitive as "higher = hotter" physically matches the graph.

(mut self, mode: GradientMode)

Source from the content-addressed store, hash-verified

124 /// Top rows get "hot" colors, bottom rows get "cool" colors.
125 /// More intuitive as "higher = hotter" physically matches the graph.
126 pub fn gradient_mode(mut self, mode: GradientMode) -> Self {
127 self.gradient_mode = mode;
128 self
129 }
130
131 /// Invert the Y-axis fill direction (fill from top down instead of bottom up)
132 ///

Callers 4

renderFunction · 0.45
renderFunction · 0.45
render_mem_boxFunction · 0.45

Calls

no outgoing calls