MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / rgb

Function rgb

experiments/human_eval/draw_model_eval_ggbench_labeled.py:222–223  ·  view source on GitHub ↗
(color: tuple[int, int, int])

Source from the content-addressed store, hash-verified

220 y1, y2 = slope * x1 + intercept, slope * x2 + intercept
221
222 def rgb(color: tuple[int, int, int]) -> str:
223 return f"rgb({color[0]},{color[1]},{color[2]})"
224
225 parts = [
226 f'<svg xmlns="http://www.w3.org/2000/svg" width="{W}" height="{H}" viewBox="0 0 {W} {H}">',

Callers 1

write_svgFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected