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

Method gradient

src/classes/cls_mini_graph.rs:73–76  ·  view source on GitHub ↗

Set the color gradient for per-character coloring.

(mut self, gradient: ColorGradient)

Source from the content-addressed store, hash-verified

71
72 /// Set the color gradient for per-character coloring.
73 pub fn gradient(mut self, gradient: ColorGradient) -> Self {
74 self.gradient = Some(gradient);
75 self
76 }
77
78 /// Set the fallback style (used when no gradient is set).
79 pub fn style(mut self, style: Style) -> Self {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected