Skip to content

Call C draw_lines directly from _draw_dashed_line - #2

Merged
radarhere merged 3 commits into
Krishnachaitanyakc:add-dashed-line-supportfrom
radarhere:add-dashed-line-support
May 22, 2026
Merged

Call C draw_lines directly from _draw_dashed_line#2
radarhere merged 3 commits into
Krishnachaitanyakc:add-dashed-line-supportfrom
radarhere:add-dashed-line-support

Conversation

@radarhere

@radarhere radarhere commented May 2, 2026

Copy link
Copy Markdown

Suggestions for python-pillow#9490

I found that doubling the pattern length doesn't have any effect - dash is only accessed with modulo indexes.

current_dash_length = dash[dash_index % len(dash)]

@radarhere
radarhere force-pushed the add-dashed-line-support branch from 8c82767 to 83d0d56 Compare May 7, 2026 10:54
@radarhere
radarhere force-pushed the add-dashed-line-support branch from 83d0d56 to b0cf48f Compare May 13, 2026 00:08
@radarhere
radarhere merged commit b0cf48f into Krishnachaitanyakc:add-dashed-line-support May 22, 2026
@radarhere
radarhere deleted the add-dashed-line-support branch May 22, 2026 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant