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

Function rounded_rect

experiments/human_eval/draw_model_eval_numberline.py:118–126  ·  view source on GitHub ↗
(
    draw: ImageDraw.ImageDraw,
    box: tuple[float, float, float, float],
    radius: int,
    fill: tuple[int, int, int],
    outline: tuple[int, int, int] | None = None,
    width: int = 1,
)

Source from the content-addressed store, hash-verified

116
117
118def rounded_rect(
119 draw: ImageDraw.ImageDraw,
120 box: tuple[float, float, float, float],
121 radius: int,
122 fill: tuple[int, int, int],
123 outline: tuple[int, int, int] | None = None,
124 width: int = 1,
125) -> None:
126 draw.rounded_rectangle(box, radius=radius, fill=fill, outline=outline, width=width)
127
128
129def draw_legend(draw: ImageDraw.ImageDraw) -> None:

Callers 3

draw_legendFunction · 0.85
draw_group_chipFunction · 0.85
draw_plotFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected