MCPcopy Create free account
hub / github.com/dcharatan/flowmap / ColorFunction

Class ColorFunction

flowmap/visualization/drawing/rendering.py:10–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8
9@runtime_checkable
10class ColorFunction(Protocol):
11 def __call__(
12 self,
13 xy: Float[Tensor, "point 2"],
14 ) -> Float[Tensor, "point 4"]: # RGBA color
15 pass
16
17
18def generate_sample_grid(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected